Get-AzCosmosDBLocation
Répertoriez les emplacements Azure Cosmos DB et leurs propriétés. Obtenir les propriétés d’emplacement Azure Cosmos DB pour un emplacement spécifique.
Syntaxe
Get-AzCosmosDBLocation
[-Location <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Répertoriez les emplacements Azure Cosmos DB avec leurs propriétés d’emplacement. Il inclut Location Id, Name, Type, SupportsAvailabilityZone, IsResidencyRestricted, BackupStorageRedundancies, IsSubscriptionRegionAccessAllowedForRegular, IsSubscriptionRegular, IsSubscriptionRegionAccessAllowedForAz et Status.
Exemples
Exemple 1 : Obtenir les propriétés d’emplacement du compte Azure Cosmos DB pour un emplacement donné
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"
}
}
Exemple 2 : Répertorier les emplacements de compte Azure Cosmos DB et leurs propriétés
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"
}
}
]
Paramètres
-DefaultProfile
Informations d’identification, compte, locataire et abonnement utilisés pour la communication avec Azure.
Type: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Valeur par défaut: | None |
Obligatoire: | False |
Accepter l'entrée de pipeline: | False |
Accepter les caractères génériques: | False |
-Location
-Nom de l’emplacement dans la chaîne.
Type: | String |
Position: | Named |
Valeur par défaut: | None |
Obligatoire: | False |
Accepter l'entrée de pipeline: | False |
Accepter les caractères génériques: | False |
Entrées
None