You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Terraform配置Azure API Management客户端凭据授权

问题:Terraform配置Azure API Management授权的疑问

我希望通过Terraform为Azure API Management添加授权,但未找到对应的Terraform资源。最接近的是azurerm_api_management_authorization_server,但不确定它是否支持Grant type(授权类型)、**Resource URL(资源URL)和Authorization Name(授权名称)**这些属性。

resource "azurerm_api_management_authorization_server" "this" {
  count                        = length(var.apim_kv_secret_keys)
  name                         = "${var.api_management_name}-${lower(var.apim_kv_secret_keys[count.index])}"
  resource_group_name          = var.resource_group_name
  api_management_name          = var.api_management_name
  display_name                 = "${var.api_management_name}-${lower(var.apim_kv_secret_keys[count.index])}"

  grant_types = [
    "clientCredentials",
  ]
  authorization_methods = [
    "GET",
  ]
}

(附相关配置界面截图)

更新:6月26日
我尝试了建议的解决方案,遇到以下情况(附截图):界面仍为英文,需要将其翻译成中文。


内容的提问来源于stack exchange,提问作者One Developer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.18 07:52:03