Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/CosmosDB/CosmosDB.Test/ScenarioTests/AccountTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ function Test-CosmosDBLocations {
Assert-NotNull $locationProperty.Properties.SupportsAvailabilityZone
Assert-NotNull $locationProperty.Properties.IsResidencyRestricted
Assert-NotNull $locationProperty.Properties.BackupStorageRedundancies
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForRegular
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForAz
Assert-NotNull $locationProperty.Properties.Status
}

$locationProperties = Get-AzCosmosDBLocation -Location $locationName
Expand All @@ -352,4 +355,7 @@ function Test-CosmosDBLocations {
Assert-NotNull $locationProperties.Properties.SupportsAvailabilityZone
Assert-NotNull $locationProperties.Properties.IsResidencyRestricted
Assert-NotNull $locationProperties.Properties.BackupStorageRedundancies
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForRegular
Assert-NotNull $locationProperty.Properties.IsSubscriptionRegionAccessAllowedForAz
Assert-NotNull $locationProperty.Properties.Status
}
4 changes: 2 additions & 2 deletions src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ function Test-TableBackupInformationCmdLets {

function Test-UpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets {
$rgName = "PSCosmosDBResourceGroup20"
$location = "Central US"
$location = "East US"
$cosmosDBAccountName = "ps-cosmosdb-1220"
$apiKind = "Sql"
$consistencyLevel = "Session"
Expand Down Expand Up @@ -682,7 +682,7 @@ function Test-UpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets {

function Test-UpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets {
$rgName = "PSCosmosDBResourceGroup50"
$location = "Central US"
$location = "East US"
$cosmosDBAccountName = "ps-cosmosdb-1250"
$apiKind = "Sql"
$consistencyLevel = "Session"
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/CosmosDB/CosmosDB/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Locations show response now includes status, isSubscriptionRegionAccessAllowedForRegular and isSubscriptionRegionAccessAllowedForAz properties

## Version 1.11.0
* Added support for Continuous 7 Days backup mode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public PSLocationProperties(LocationProperties locationProperties)
SupportsAvailabilityZone = locationProperties.SupportsAvailabilityZone;
IsResidencyRestricted = locationProperties.IsResidencyRestricted;
BackupStorageRedundancies = locationProperties.BackupStorageRedundancies;
IsSubscriptionRegionAccessAllowedForRegular = locationProperties.IsSubscriptionRegionAccessAllowedForRegular;
IsSubscriptionRegionAccessAllowedForAz = locationProperties.IsSubscriptionRegionAccessAllowedForAz;
Status = locationProperties.Status;
}

/// <summary>
Expand All @@ -49,5 +52,24 @@ public PSLocationProperties(LocationProperties locationProperties)
/// Gets the properties of available backup storage redundancies.
/// </summary>
public IList<string> BackupStorageRedundancies { get; set; }

/// <summary>
/// Gets flag indicating whether the subscription have access in region
/// for Non-Availability Zones.
/// </summary>
public bool? IsSubscriptionRegionAccessAllowedForRegular { get; set; }

/// <summary>
/// Gets flag indicating whether the subscription have access in region
/// for Availability Zones(Az).
/// </summary>
public bool? IsSubscriptionRegionAccessAllowedForAz { get; set; }

/// <summary>
/// Gets enum to indicate current buildout status of the region.
/// Possible values include: 'Uninitialized', 'Initializing',
/// 'InternallyReady', 'Online', 'Deleting'
/// </summary>
public string Status { get; set; }
}
}
22 changes: 17 additions & 5 deletions src/CosmosDB/CosmosDB/help/Get-AzCosmosDBLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get-AzCosmosDBLocation [-Location <String>] [-DefaultProfile <IAzureContextConta
```

## DESCRIPTION
List Azure Cosmos DB locations with their location properties. It includes Location Id, Name, Type, SupportsAvailabilityZone, IsResidencyRestricted and BackupStorageRedundancies.
List Azure Cosmos DB locations with their location properties. It includes Location Id, Name, Type, SupportsAvailabilityZone, IsResidencyRestricted, BackupStorageRedundancies, IsSubscriptionRegionAccessAllowedForRegular, IsSubscriptionRegionAccessAllowedForAz and Status.

## EXAMPLES

Expand All @@ -44,7 +44,10 @@ Get-AzCosmosDBLocation -Location "Central US" | ConvertTo-Json
"Geo",
"Zone",
"Local"
]
],
"IsSubscriptionRegionAccessAllowedForRegular": true,
"IsSubscriptionRegionAccessAllowedForAz": false,
"Status": "Online"
}
}
```
Expand All @@ -70,7 +73,10 @@ Get-AzCosmosDBLocation | ConvertTo-Json
"Properties": {
"SupportsAvailabilityZone": true,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": "Geo Local"
"BackupStorageRedundancies": "Geo Local",
"IsSubscriptionRegionAccessAllowedForRegular": true,
"IsSubscriptionRegionAccessAllowedForAz": false,
"Status": "Online"
}
},
{
Expand All @@ -80,7 +86,10 @@ Get-AzCosmosDBLocation | ConvertTo-Json
"Properties": {
"SupportsAvailabilityZone": true,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": "Geo Zone Local"
"BackupStorageRedundancies": "Geo Zone Local",
"IsSubscriptionRegionAccessAllowedForRegular": false,
"IsSubscriptionRegionAccessAllowedForAz": true,
"Status": "Online"
}
},
{
Expand All @@ -90,7 +99,10 @@ Get-AzCosmosDBLocation | ConvertTo-Json
"Properties": {
"SupportsAvailabilityZone": false,
"IsResidencyRestricted": false,
"BackupStorageRedundancies": "Geo Local"
"BackupStorageRedundancies": "Geo Local",
"IsSubscriptionRegionAccessAllowedForRegular": true,
"IsSubscriptionRegionAccessAllowedForAz": true,
"Status": "Online"
}
}
]
Expand Down