我想在我的ARM部署模型中使用链接模板。我读过的每一篇文章都提到链接模板需要位于可访问的位置(如blob存储)。
如果我手动将文件上载到存储,这是正常的,但我正在寻找一种机制,将模板上载到存储,作为构建或部署过程的一部分。
我希望使用 工件存储帐户 选项,但仅在部署基础结构时它不可用。
工件存储帐户
是否有内置方法来实现这一点,或者是否需要额外的步骤(如PowerShell脚本或VSTS生成步骤)?
在我的手臂展开模型中。我读过的每一篇文章都提到链接模板需要位于可访问的位置(比如blob存储)。
如果我手动将文件上载到存储,这是正常的,但是我正在寻找一种机制,将模板上载到存储,作为构建或部署过程的一部分。
我希望使用 Artifact Storage Account 选项,但仅在部署基础结构时不可用。
Artifact Storage Account
这个 项目存储帐户 只要将两个参数(artifactslocation和artifactslocationsastoken)引入到部署中,选项就变得可用。
"parameters": { "_artifactsLocation": { "type": "string", "metadata": { "description": "Auto-generated container in staging storage account to receive post-build staging folder upload" } }, "_artifactsLocationSasToken": { "type": "securestring", "metadata": { "description": "Auto-generated token to access _artifactsLocation" } } }