Azure / Azure/azure-powershell
[Feature]: New-AzCosmosDBAccount should support creating serverless capacity mode
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### 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_
Contributor guide
Research direction
Start in src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs around lines 162-170, then compare the New-AzCosmosDBAccount documentation with Get-AzCosmosDBAccount's Serverless capability handling. Done means the New cmdlet accepts the serverless capacity mode and can create a serverless Cosmos DB account consistently with the capability exposed by Get.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, powershell
- Domain
- cli, cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 63/100