Open doubleyouvdb opened 2 years ago
+1
Adding @markjbrown to help triage the swagger inconsistency.
This is caused because createMode is defined as required in our swagger here.
This is a preview version and as noted the GA version of this does not produce the same error.
@doubleyouvdb -- can you confirm if the deployment works with this api version if createMode
is not included in the resource properties?
@doubleyouvdb -- can you confirm if the deployment works with this api version if
createMode
is not included in the resource properties?
Yes, I can confirm this works.
Bicep version Bicep CLI version 0.4.1 (e2387595c9) Bicep Visual Studio Code Plugin: v0.4.1008 Preview
Describe the bug Bicep linting warning in Visual Studio Code: The specified "object" declaration is missing the following required properties: "createMode".BCP035
To Reproduce Create a cosmosDB object in Visual Studio Code using api version Microsoft.DocumentDB/databaseAccounts@2021-07-01-preview without the createMode property:
To workaround add the property: createMode: 'Default' OR use api version Microsoft.DocumentDB/databaseAccounts@2021-06-15 for the same cosmosDB object.