Get-AzCosmosDBLocation
Azure Cosmos DB の場所とそのプロパティを一覧表示します。 特定の場所の Azure Cosmos DB の場所のプロパティを取得します。
構文
Get-AzCosmosDBLocation
[-Location <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
Azure Cosmos DB の場所とその場所のプロパティを一覧表示します。 場所 ID、名前、種類、SupportsAvailabilityZone、IsResidencyRestricted、BackupStorageRedundancies、IsSubscriptionRegionAccessAllowedForRegular、IsSubscriptionRegionAccessAllowedForAz、Status が含まれます。
例
例 1: 特定の場所の Azure Cosmos DB アカウントの場所のプロパティを取得する
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"
}
}
例 2: Azure Cosmos DB アカウントの場所とそのプロパティを一覧表示する
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"
}
}
]
パラメーター
-DefaultProfile
Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。
型: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-Location
-文字列内の場所の名前。
型: | String |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
入力
None