diff --git a/src/CosmosDB/CosmosDB/ChangeLog.md b/src/CosmosDB/CosmosDB/ChangeLog.md index 01bf0a504d31..891a1072678d 100644 --- a/src/CosmosDB/CosmosDB/ChangeLog.md +++ b/src/CosmosDB/CosmosDB/ChangeLog.md @@ -21,6 +21,9 @@ ## Upcoming Release * Fixed bug related to Update-AzCosmosDBSqlContainer command on containers with Client Encryption Policy. +## Version 1.9.0 +* Fixed the optional Location paramater of New-AzCosmosDBAccount cmdlet. + ## Version 1.8.0 * Introduced support for creating containers with Client Encryption Policy. The current supported version of Client Encryption Policy is 1. diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs index 1c65f0bf7283..af74d3501ae1 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs @@ -118,12 +118,6 @@ public override void ExecuteCmdlet() } } - if (string.IsNullOrEmpty(writeLocation)) - { - WriteWarning("Cannot create Account without a Write Location."); - return; - } - Dictionary tags = new Dictionary(); if (Tag != null) {