最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure - Why is Microsoft.DocumentDBdatabaseAccountstableRoleAssignments@2023-04-15 version removed? - Stack Overflow

programmeradmin5浏览0评论

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
  }
}
发布评论

评论列表(0)

  1. 暂无评论