Open chshihMSFT opened 1 year ago
What about New-AzCosmosDBAccount -Capabilities 'EnableServerless'
? That parameter is an array but you pass it with {EnableServerless}
.
Thanks @ArmaanMcleod, you are correct. The parameter "-Capabilities" is a String array indeed. But check our doc again, the parameter seems not the correct parameter for enabling Serverless capacity mode. (And this is ambiguous with -Location parameter) ref : https://learn.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbaccount?view=azps-9.3.0
Capabilities: Add a location to the Cosmos DB database account. Array of strings, ordered by failover priority Location: Add a location to the Cosmos DB database account. Array of strings, ordered by failover priority.
In addition, I searched for a few keywords (ex. "EnableServerless", "cosmos serverless") in this repo, but no results found. Seems we have no PowerShell cmdlet implementation of creating Cosmos DB account with Serverless capacity mode, so created this issue to track.
Also tested with the mentioned format, it creates a "Provisioned Throughput" account instead of "Serverless" capacity mode.
Thanks for contacting us. Let me involve the correct team.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pjohari-ms, @kushagraThapar, @simplynaveen20.
Author: | chshihMSFT |
---|---|
Assignees: | - |
Labels: | `feature-request`, `Cosmos`, `Service Attention` |
Milestone: | - |
adding related discussion here for some reference. https://github.com/MicrosoftDocs/azure-docs/issues/90922#issuecomment-1090939841
Description of the new feature
New-AzCosmosDBAccount should support creating serverless capacity mode It's possible now to Get-AzCosmosDBAccount and parse its Serverless property from Capabilities but seems not able to specify the same Capabilities then create a Serverless account. Can you review such a use case and add supportability of creating serverless account via Powershell? Thanks! ref : https://github.com/Azure/azure-powershell/blob/master/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs#L162-L170 https://learn.microsoft.com/en-us/powershell/module/az.cosmosdb/new-azcosmosdbaccount
Get-AzCosmosDBAccount
New-AzCosmosDBAccount
Proposed implementation details (optional)
No response