azure - 如何在 ARM 模板中为自动化帐户设置模块?
问题描述
我从门户中导出了我的 ARM 模板,除了我在部署 Azure 自动化帐户时拥有的模块之外,一切都运行良好。
{
"type": "Microsoft.Automation/automationAccounts/modules",
"apiVersion": "2020-01-13-preview",
"name": "[concat(parameters('automationAccountsName'), '/Azure.Storage')]",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', parameters('automationAccountsName'))]"
],
"properties": {
"contentLink": {"uri": "https://www.powershellgallery.com/api/v2/package/Azure.Storage"}
}
},
我收到一个错误:
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'."
}
我尝试提供uri,"contentLink": {"uri": "[concat('https://www.powershellgallery.com/api/v2/package/', 'Azure.Storage')]"}
但也失败了。
如何在我的 ARM 模板中为 Azure 自动化帐户设置模块?
解决方案
推荐阅读
- php - 为什么在清理 URL 时删除了一些波斯语字符?
- c# - 如何在 .Net Core 中使用 ServiceExtensions?
- java - Java数据输出“日期”和“月份”
- r - 如何检查日期是否在 R 的区间列表内?
- javascript - 检查一个数组中的元素是否存在于另一个数组中
- html - 协助创建简单的导航栏。
- android - Android studio kotlin 文件显示为来自不同包和 XML 文件的 R 类
- javascript - 包含“this”关键字的方法在另一个方法中调用与分配给局部变量时的工作方式不同
- dart - 遗传算法在 Dart/Flutter 中吐出奇怪的结果
- c# - F# 按多个值分组并聚合