Microsoft.DocumentDB/databaseAccounts: sqlEndpoint property removal
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 44
- Avg merge
- 18h 53m
- Merged PRs (30d)
- 29
Description
### Resource Type
Microsoft.DocumentDB/databaseAccounts
### Api Version
2024-02-15-preview
### Issue Type
Property(s) should be marked as read-only/write-only
### Other Notes
without
```bicep
sqlEndpoint: 'https://${name}.documents.azure.com:443/'
```
I get this change when executing the template
```bash
~ Microsoft.DocumentDB/databaseAccounts/cosmos--prod [2022-05-15]
- properties.sqlEndpoint: "https://-support-staff-prod.documents.azure.com:443/"
```
### Bicep Repro
```bicep
@description('Cosmos DB account name, max length 44 characters, lowercase')
param name string
@description('Location for the Cosmos DB account.')
param location string = resourceGroup().location
@description('The primary region for the Cosmos DB account.')
param primaryRegion string
resource account 'Microsoft.DocumentDB/databaseAccounts@2024-02-15-preview' = {
name: toLower(name)
kind: 'GlobalDocumentDB'
location: location
tags: tags
properties: {
consistencyPolicy: {
defaultConsistencyLevel: 'Session'
}
locations: locations
databaseAccountOfferType: 'Standard'
enableAutomaticFailover: false
minimalTlsVersion: 'Tls12'
defaultPriorityLevel: 'High'
diagnosticLogSettings: {
enableFullTextQuery: 'None'
}
enableBurstCapacity: false
enableMaterializedViews: false
enablePerRegionPerPartitionAutoscale: false
enablePriorityBasedExecution: false // Suppress diff
sqlEndpoint: 'https://${name}.documents.azure.com:443/'
analyticalStorageConfiguration: {
schemaType: 'WellDefined'
}
capabilities: [
{
name: 'EnableServerless'
}
]
capacity: {
totalThroughputLimit: maxThroughput
}
defaultIdentity: 'FirstPartyIdentity'
}
}
```
### Confirm
- [X] I have read the troubleshooting guide and looked for duplicates.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the Microsoft.DocumentDB/databaseAccounts type definition for API version 2024-02-15-preview and trace how sqlEndpoint is represented. Reproduce the reported deployment with the supplied Bicep template, then verify that the property no longer produces the shown change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100