Get-AzLocation

Hiermee haalt u alle locaties en de ondersteunde resourceproviders voor elke locatie op.

Syntax

Get-AzLocation
   [-ExtendedLocation <Boolean>]
   [-ApiVersion <String>]
   [-Pre]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

De cmdlet Get-AzLocation haalt alle locaties en de ondersteunde resourceproviders voor elke locatie op.

Voorbeelden

Voorbeeld 1: Alle locaties en de ondersteunde resourceproviders ophalen

Get-AzLocation

Met deze opdracht worden alle locaties en de ondersteunde resourceproviders voor elke locatie opgeslagen.

Voorbeeld 2: Alle locaties ophalen die de resourceprovider Microsoft.AppConfiguration ondersteunen

Get-AzLocation | Where-Object {$_.Providers -contains "Microsoft.AppConfiguration"}

Location    : eastasia
DisplayName : East Asia
Providers   : {Microsoft.Devices, Microsoft.Cache, Microsoft.AppConfiguration, microsoft.insights…}

Location    : southeastasia
DisplayName : Southeast Asia
Providers   : {Microsoft.Devices, Microsoft.Cache, Microsoft.AppConfiguration, microsoft.insights…}

Location    : centralus
DisplayName : Central US
Providers   : {Microsoft.Devices, Microsoft.Cache, Microsoft.AppConfiguration, microsoft.insights…}
...

In dit voorbeeld worden alle locaties opgehaald die ondersteuning bieden voor resourceprovider 'Microsoft.AppConfiguration'.

Parameters

-ApiVersion

Hiermee geeft u de API-versie op die wordt ondersteund door de resourceprovider. U kunt een andere versie opgeven dan de standaardversie.

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

-DefaultProfile

De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExtendedLocation

Of u uitgebreide locaties wilt opnemen.

Type:Nullable<T>[Boolean]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Pre

Hiermee wordt aangegeven dat deze cmdlet api-versies van de voorlopige versie beschouwt wanneer deze automatisch bepaalt welke versie moet worden gebruikt.

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

Invoerwaarden

None

Uitvoerwaarden

PSResourceProviderLocation