Get-AzCosmosDBLocation
Auflisten von Azure Cosmos DB-Speicherorten und deren Eigenschaften. Abrufen von Azure Cosmos DB-Standorteigenschaften für einen bestimmten Standort.
Syntax
Get-AzCosmosDBLocation
[-Location <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Beschreibung
Auflisten von Azure Cosmos DB-Speicherorten mit ihren Standorteigenschaften. Es umfasst Standort-ID, Name, Typ, SupportsAvailabilityZone, IsResidencyRestricted, BackupStorageRedundancies, IsSubscriptionRegionAccessAllowedForRegular, IsSubscriptionRegionAccessAllowedForAz und Status.
Beispiele
Beispiel 1: Abrufen der Azure Cosmos DB-Kontospeicherorteigenschaften für einen bestimmten Standort
Get-AzCosmosDBLocation -Location "Central US"
Id Name Type Properties
-- ---- ---- ----------
subscriptionId/subscriptionId/providers/Microsoft.DocumentDB/locations/centralus/ Central US Microsoft.DocumentDB/locations Microsoft.Azure.Commands.CosmosDB.Models.PSLocationP...
Get-AzCosmosDBLocation -Location "Central US" | ConvertTo-Json
{
"Id": "subscriptionId/<subscriptionId>/providers/Microsoft.DocumentDB/locations/centralus/",
"Name": "Central US",
"Type": "Microsoft.DocumentDB/locations",
"Properties": {
"SupportsAvailabilityZone": true,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": [
"Geo",
"Zone",
"Local"
],
"IsSubscriptionRegionAccessAllowedForRegular": true,
"IsSubscriptionRegionAccessAllowedForAz": false,
"Status": "Online"
}
}
Beispiel 2: Auflisten von Azure Cosmos DB-Kontospeicherorten und deren Eigenschaften
Get-AzCosmosDBLocation
Id Name Type Properties
-- ---- ---- ----------
subscriptionId/<subscriptionId>/providers/Microsoft.DocumentDB/locations/brazilsoutheast/ Brazil Southeast Microsoft.DocumentDB/locations Microsoft.Azure.Commands.CosmosDB...
subscriptionId/<subscriptionId>/providers/Microsoft.DocumentDB/locations/centralus/ Central US Microsoft.DocumentDB/locations Microsoft.Azure.Commands.CosmosDB...
....
Get-AzCosmosDBLocation | ConvertTo-Json
[
{
"Id": "subscriptionId/<subscriptionId>/providers/Microsoft.DocumentDB/locations/brazilsoutheast/",
"Name": "Brazil Southeast",
"Type": "Microsoft.DocumentDB/locations",
"Properties": {
"SupportsAvailabilityZone": true,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": "Geo Local",
"IsSubscriptionRegionAccessAllowedForRegular": true,
"IsSubscriptionRegionAccessAllowedForAz": false,
"Status": "Online"
}
},
{
"Id": "subscriptionId/<subscriptionId>/providers/Microsoft.DocumentDB/locations/centralus/",
"Name": "Central US",
"Type": "Microsoft.DocumentDB/locations",
"Properties": {
"SupportsAvailabilityZone": true,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": "Geo Zone Local",
"IsSubscriptionRegionAccessAllowedForRegular": false,
"IsSubscriptionRegionAccessAllowedForAz": true,
"Status": "Online"
}
},
{
"Id": "subscriptionId/<subscriptionId>/providers/Microsoft.DocumentDB/locations/australiasoutheast/",
"Name": "Australia Southeast",
"Type": "Microsoft.DocumentDB/locations",
"Properties": {
"SupportsAvailabilityZone": false,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": "Geo Local",
"IsSubscriptionRegionAccessAllowedForRegular": true,
"IsSubscriptionRegionAccessAllowedForAz": true,
"Status": "Online"
}
}
]
Parameter
-DefaultProfile
Die Anmeldeinformationen, Konten, Mandanten und Abonnements, die für die Kommunikation mit Azure verwendet werden.
Typ: | IAzureContextContainer |
Aliase: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
-Location
-Name des Speicherorts in Zeichenfolge.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
Eingaben
None
Ausgaben
Azure PowerShell