将ARM模板上传到存储的机制

编程入门 行业动态 更新时间:2024-10-08 03:39:21
本文介绍了将ARM模板上传到存储的机制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想使用已链接我的ARM部署模型中的模板.我读过的每一篇文章都提到,链接的模板必须位于可访问的位置(例如blob存储).

I want to use linked templates in my ARM deployment model. Every article I've read mentions that the linked template needs to be in an accessible location (such as blob storage).

如果我手动将文件上传到存储,但是在构建或部署过程中正在寻找一种将模板上传到存储的机制,则此方法正常.

This works OK if I manually upload the files to storage but I'm looking for a mechanism to upload a template to Storage as part of the build or Deployment process.

我希望使用Artifact Storage Account选项,但仅在部署基础结构时不可用.

I'd hoped to use the Artifact Storage Account option but it is unavailable when deploying infrastructure only.

是否有内置方法来实现这一目标,或者它需要诸如Powershell脚本或VSTS构建步骤之类的额外步骤?

Is there a built-in method to achieve this or would it require either an extra step such as powershell script or VSTS build step?

推荐答案

在您将两个参数_artifactsLocation和_artifactsLocationSasToken引入部署中后,工件存储帐户选项将立即可用.

The Artifact Storage Account option becomes available as soon as you introduce the two parameters _artifactsLocation and _artifactsLocationSasToken into your deployment.

"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" } } }

更多推荐

将ARM模板上传到存储的机制

本文发布于:2023-11-26 18:47:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634752.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:机制   模板   ARM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!