Skip to content

Commit d40078c

Browse files
{CosmosDB} | Getting location from the Resource Group Name (#18449)
* {CosmosDB} | Getting location from the Resource Group Name Fixes #17978. Though we say location parameter is optional we still expect it to be provided https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbaccount?view=azps-8.0.0. This change will fix that issue. * {CosmosDB} | adding missing semicolon adding missing semicolon * {CosmosDB} | Location is not required and can be null Fixes #17978 * {CosmosDB} | Update change log Though we say location parameter is optional we still expect it to be provided https://docs.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbaccount?view=azps-8.0.0. This change will fix that issue.
1 parent a193ffa commit d40078c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/CosmosDB/CosmosDB/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
## Upcoming Release
2222
* Fixed bug related to Update-AzCosmosDBSqlContainer command on containers with Client Encryption Policy.
2323

24+
## Version 1.9.0
25+
* Fixed the optional Location paramater of New-AzCosmosDBAccount cmdlet.
26+
2427
## Version 1.8.0
2528
* Introduced support for creating containers with Client Encryption Policy. The current supported version of Client Encryption Policy is 1.
2629

src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ public override void ExecuteCmdlet()
118118
}
119119
}
120120

121-
if (string.IsNullOrEmpty(writeLocation))
122-
{
123-
WriteWarning("Cannot create Account without a Write Location.");
124-
return;
125-
}
126-
127121
Dictionary<string, string> tags = new Dictionary<string, string>();
128122
if (Tag != null)
129123
{

0 commit comments

Comments
 (0)