We are using this resource (tableRoleAssignments and tableRoleDefinitions) in our infrastructure as code pipelines. Starting today deployments fail on this resource because the resource provider cannot find the version. We did not see any warning this version was about to be removed.
Currently there is only a preview version available. How come this non-preview version is silently removed? Is this by accident or are we now forced to update our code to use a preview version?
This is our current usage:
resource cosmosDbAccount 'Microsoft.DocumentDB/databaseAccounts@2023-04-15' existing = {
name: cosmosDbAccountName
}
resource tableRoleDefinition 'Microsoft.DocumentDB/databaseAccounts/tableRoleDefinitions@2023-04-15' existing = {
parent: cosmosDbAccount
name: role.id
}
resource tableRoleAssignment 'Microsoft.DocumentDB/databaseAccounts/tableRoleAssignments@2023-04-15' = {
parent: cosmosDbAccount
name: guid(principalId, cosmosDbAccount.id, tableRoleDefinition.id)
properties: {
principalId: principalId
principalType: principalType
roleDefinitionId: tableRoleDefinition.id
scope: cosmosDbAccount.id
}
}