【问题标题】:Azure Policy alias for redis cache not found - terraform azure devops未找到 redis 缓存的 Azure Policy 别名 - terraform azure devops
【发布时间】:2021-05-06 02:49:56
【问题描述】:

由于某种原因,get-azpolicyalias 将这些别名报告为可用,但 Azure 策略无法识别它们:

Microsoft.Cache/redis/privateEndpointConnections/privateEndpoint
Microsoft.Cache/redis/privateEndpointConnections/privateEndpoint.id
Microsoft.Cache/redis/privateEndpointConnections/privateLinkServiceConnectionState
Microsoft.Cache/redis/privateEndpointConnections/privateLinkServiceConnectionState.status                        Microsoft.Cache/redis/privateEndpointConnections/privateLinkServiceConnectionState.description                         Microsoft.Cache/redis/privateEndpointConnections/privateLinkServiceConnectionState.actionsRequired
Microsoft.Cache/redis/privateEndpointConnections/provisioningStateas 

因此,当我运行我的代码时,我收到一条错误消息,指出别名不存在:

策略规则的“字段”属性“Microsoft.Cache/redis/privateEndpointConnections[]”在提供程序“Microsoft.Cache”和资源类型下不作为别名存在'redis'。*

policy_rule: >
    {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Cache/redis"
          },
          {
            "count": {
                "field": "Microsoft.Cache/redis/privateEndpointConnections[*]"

            },
            "equals": 0
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    }`

【问题讨论】:

    标签: azure caching redis azure-devops terraform


    【解决方案1】:

    找不到 redis 缓存的 Azure Policy 别名 - terraform azure devops

    据我所知,Azure Cache for Redis 处于此功能的“私人预览版”中:

    Azure Cache for Redis with Azure Private Link (Public Preview)

    并且私有终结点不适用于 Azure Redis 缓存。您可以查看普遍可用的服务列表:

    Announcing Azure Private Link GA for Azure Services

    • Azure 存储
    • Azure Data Lake Storage Gen 2
    • Azure SQL 数据库
    • Azure Cosmos DB
    • Azure Synapse Analytics(SQL 数据仓库)
    • Azure 密钥库
    • Azure Database for MySQL
    • Azure Database for PostgreSQL
    • Azure Database for MariaDB
    • Azure Kubernetes 服务 -> Kubernetes API

    此外,私人链接现在可用于以下服务的预览:

    • 应用服务
    • Azure 认知搜索
    • 活动中心
    • 服务总线
    • Azure 中继
    • Azure 备份
    • Azure 容器注册表
    • 事件网格 -> 主题
    • 事件网格 -> 域

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-01
      • 2014-07-09
      • 1970-01-01
      • 2019-03-14
      • 2015-11-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多