gpt4 book ai didi

azure - "az ad app permission add ..."的地形等效项是什么?

转载 作者:行者123 更新时间:2023-12-03 02:43:14 28 4
gpt4 key购买 nike

我有以下 az cli 代码:

az ad app permission add --api '00000002-0000-0000-c000-000000000000' --id $app.appId --api-permissions `
"311a71cc-e848-46a1-bdf8-97ff7156d8e6=Scope" `
"824c81eb-e3f8-4ee6-8f6d-de7f50d565b7=Role"
az ad app permission grant --api 00000002-0000-0000-c000-000000000000 --id $app.appId

我正在寻找 terraform 的等效项,但找不到它。有人吗?

最佳答案

根据 docs ,您需要在同一命令中,

resource "azuread_application" "example" {
name = "example"
homepage = "https://homepage"
identifier_uris = ["https://uri"]
reply_urls = ["https://replyurl"]
available_to_other_tenants = false
oauth2_allow_implicit_flow = true
type = "webapp/api"

required_resource_access {
resource_app_id = "00000003-0000-0000-c000-000000000000"

resource_access {
id = "..."
type = "Role"
}

resource_access {
id = "..."
type = "Scope"
}

resource_access {
id = "..."
type = "Scope"
}
}

required_resource_access {
resource_app_id = "00000002-0000-0000-c000-000000000000"

resource_access {
id = "..."
type = "Scope"
}
}

app_role {
allowed_member_types = [
"User",
"Application",
]

description = "Admins can manage roles and perform all task actions"
display_name = "Admin"
is_enabled = true
value = "Admin"
}
}

关于azure - "az ad app permission add ..."的地形等效项是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60023145/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com