通过传递凭据来验证ARM模板

编程入门 行业动态 更新时间:2024-10-26 00:31:51
本文介绍了通过传递凭据来验证ARM模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的ARM模板运行正常. 我需要通过传递凭据来认证我的ARM模板. 查看日志后,我可以看到以下条目

My ARM template is running fine. I need to authenticate my ARM template by passing credentials. When I have gone through logs I can see below entries

[debug] 00000-000000-00000-00000-000000000 auth param serviceprincipalid = ******** [debug] 00000-000000-00000-00000-000000000 auth param serviceprincipalkey = ********

[debug]00000-000000-00000-00000-000000000 auth param serviceprincipalid = ******** [debug]00000-000000-00000-00000-000000000 auth param serviceprincipalkey = ********

此服务主体ID和服务主体密钥是什么? 我没有在ARM模板中传递这些值. 我试图弄清楚这些值是从哪里获取的,这些值在加密时是什么.

What is this Service Principal Id and Service Principal Key? I am not passing these values in ARM template. I am trying to figure out where these values are fetched and what is these values as values are encrypted.

我们可以显式传递这些值并验证ARM模板吗?

Can we explicitly pass these values and validate ARM template.

推荐答案

服务主体ID来自Azure Active Directory中保存的应用程序此文档很好地为您提供了有关如何创建其中一个的简单概述.

The service principal id comes from applications held within your Azure Active Directory this documentation from Octopus Deploy is good at giving you a simple overview of how to create one of these.

此外,请注意该文章底部的部分,该部分向您展示如何设置此权限.这一点非常重要,因为您的服务负责人需要访问您的Azure CRUD资源订阅.

Also, note the section at the bottom of that article which shows you how to set this permissions. This bit is really important as your Service Principal needs access to your Azure subscription to CRUD resources.

关于利用依赖于所使用的CI/CD平台的服务主体.本质上,部署手臂模板的步骤需要作为服务主体运行.大多数平台都有记录到文档的连接到Azure的方式

As for utilising the service principal that depends on which CI/CD platform you are using. Essentially the step which deploys the arm template needs run as the service principal. Most platforms will have a documented way of connecting to Azure

希望有帮助.

更多推荐

通过传递凭据来验证ARM模板

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

发布评论

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

>www.elefans.com

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