Get-AzImportExportLocation

Returns the details about a location to which you can ship the disks associated with an import or export job. A location is an Azure region.

Syntax

Get-AzImportExportLocation
   [-AcceptLanguage <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzImportExportLocation
   -Name <String>
   [-AcceptLanguage <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzImportExportLocation
   -InputObject <IImportExportIdentity>
   [-AcceptLanguage <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Returns the details about a location to which you can ship the disks associated with an import or export job. A location is an Azure region.

Examples

Example 1: Get all Azure region location details with default context

Get-AzImportExportLocation

Name                 Type
----                 ----
Australia East       Microsoft.ImportExport/locations
Australia Southeast  Microsoft.ImportExport/locations
Brazil South         Microsoft.ImportExport/locations
Canada Central       Microsoft.ImportExport/locations
Canada East          Microsoft.ImportExport/locations
...
West Central US      Microsoft.ImportExport/locations
West Europe          Microsoft.ImportExport/locations
West India           Microsoft.ImportExport/locations
West US              Microsoft.ImportExport/locations
West US 2            Microsoft.ImportExport/locations

This cmdlet gets all Azure region location details with default context.

Example 2: Get Azure region location details by location name

Get-AzImportExportLocation -Name eastus

Name    Type
----    ----
East US Microsoft.ImportExport/locations

This cmdlet gets Azure region location details by location name.

Example 3: Get Azure region location details by identity

$Id = "/providers/Microsoft.ImportExport/locations/eastus"
Get-AzImportExportLocation -InputObject $Id

Name    Type
----    ----
East US Microsoft.ImportExport/locations

This cmdlet lists gets Azure region location details by identity.

Parameters

-AcceptLanguage

Specifies the preferred language for the response.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IImportExportIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The name of the location. For example, West US or westus.

Type:String
Aliases:LocationName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IImportExportIdentity

Outputs

ILocation

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <IImportExportIdentity>: Identity Parameter

  • [Id <String>]: Resource identity path
  • [JobName <String>]: The name of the import/export job.
  • [LocationName <String>]: The name of the location. For example, West US or westus.
  • [ResourceGroupName <String>]: The resource group name uniquely identifies the resource group within the user subscription.
  • [SubscriptionId <String>]: The subscription ID for the Azure user.