gpt4 book ai didi

azure - 如何使用 Azure 资源管理器模板获取 Azure Maps 帐户的主键

转载 作者:行者123 更新时间:2023-12-03 01:03:19 25 4
gpt4 key购买 nike

对于我的部署,我需要向我的前端提供 Azure Maps 帐户的主 key 。部署是使用 azure 资源管理器模板完成的。

key 应写入 ARM 模板的输出中。

最佳答案

这可以通过以下代码来实现:

"outputs": {
"mapKey": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.Maps/accounts', variables('mapName')), providers('Microsoft.Maps', 'accounts').apiVersions[0]).primaryKey]",
"metadata": {
"description": "primary key for azure map"
}
}
}

关于azure - 如何使用 Azure 资源管理器模板获取 Azure Maps 帐户的主键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55744052/

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