[BUG] Microsoft.DocumentDB - lack of property autoscaleSettings in GET of mongodbDatabases #31085
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2024-08-15/cosmos-db.json
API Spec version
2024-08-15, 2024-02-15-preview
Describe the bug
In a ARM template (Bicep) of Microsoft.DocumentDB/databaseAccounts/mongodbDatabases
points out that
CreateUpdateOptionsOrMongoDBDatabaseGetPropertiesOptions
is a part of the template, so in GET request it may be in a response, but inaz rest
andaz cosmosdb mongodb database show
response is not.Example CosmosDBMongoDBDatabaseGet.json has a response with main properties of the resource without
CreateUpdateOptionsOrMongoDBDatabaseGetPropertiesOptions
. In Cosmos DB REST API - Get a Database it's the same.In my case I struggle with What-If operation response showing me lack of
autoscaleSettings.maxThroughput
in Azure, where it's set and valid. I assume arm-template-whatif receives information from Azure REST API and compares it with my generated ARM template (Bicep).Should
CreateUpdateOptionsOrMongoDBDatabaseGetPropertiesOptions
be a part of GET mongoDB database? Or could you guide me to the root cause?I know that there is a separate
Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings
extension resource with adequate example CosmosDBMongoDBCollectionThroughputGet.json. In my case I tried use it, but without good result.Expected behavior
Actual behavior
Reproduction Steps
||
az rest --method get --header "Accept=application/json" --url 'https://management.azure.com/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmos-account/mongodbDatabases/my-mongo-db?api-version=2024-08-15'
||
GET
https://management.azure.com/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmos-account/mongodbDatabases/my-mongo-db?api-version=2024-08-15
Environment
No response
The text was updated successfully, but these errors were encountered: