Edit

Share via


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

List (Default)

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

Get

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

GetViaIdentity

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Identity Parameter

Parameter properties

Type:IImportExportIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:LocationName

Parameter sets

Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

IImportExportIdentity

Outputs

ILocation