Get-AzCosmosDBLocation
Geef Azure Cosmos DB locaties en de bijbehorende eigenschappen weer. Haal Azure Cosmos DB locatie-eigenschappen op voor een specifieke locatie.
Syntax
Default (Standaard)
Get-AzCosmosDBLocation
[-Location <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Geef Azure Cosmos DB locaties weer met hun locatie-eigenschappen. Het bevat locatie-id, naam, type, supportsAvailabilityZone, IsResidencyRestricted, BackupStorageRedundancies, IsSubscriptionRegionAccessAllowedForRegular, IsSubscriptionRegionAccessAllowedForAz en status.
Voorbeelden
Voorbeeld 1: Eigenschappen van Azure Cosmos DB accountlocatie voor bepaalde locatie ophalen
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"
}
}
Voorbeeld 2: Lijst Azure Cosmos DB accountlocaties en de bijbehorende eigenschappen
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"
}
}
]
Parameters
-DefaultProfile
De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.
Parametereigenschappen
| Type: | IAzureContextContainer |
| Default value: | None |
| Ondersteunt jokertekens: | False |
| DontShow: | False |
| Aliassen: | AzContext, AzureRmContext, AzureCredential |
Parametersets
(All)
| Position: | Named |
| Verplicht: | False |
| Waarde uit pijplijn: | False |
| Waarde uit pijplijn op eigenschapsnaam: | False |
| Waarde van resterende argumenten: | False |
-Location
-Naam van de locatie in tekenreeks.
Parametereigenschappen
| Type: | String |
| Default value: | None |
| Ondersteunt jokertekens: | False |
| DontShow: | False |
Parametersets
(All)
| Position: | Named |
| Verplicht: | False |
| Waarde uit pijplijn: | False |
| Waarde uit pijplijn op eigenschapsnaam: | False |
| Waarde van resterende argumenten: | False |
CommonParameters
Deze cmdlet ondersteunt de algemene parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction en -WarningVariable. Zie about_CommonParametersvoor meer informatie.