简体   繁体   English

Azure 容器实例:在 ARM 模板中使用基于客户端证书的服务主体向私有 ACR 进行身份验证

[英]Azure Container Instances: authenticate to private ACR with client certificate based service principal in ARM template

The Azure Container Instances ARM template schema exposes the below fields to authenticate to pull an image from a private ACR using a service principal: Azure 容器实例 ARM 模板模式公开了以下字段以进行身份验证,以使用服务主体从私有 ACR 中提取图像:

"imageRegistryCredentials": [
      {
        "server": "myacrserver.azurecr.io",
        "username": "00000-000-000-00",  // Service principal application ID
        "password": "servicePrincipalClientSecret"
      }
    ],

Using an ARM template based deployment, is it possible to use a service principal with a client certificate based login, instead of a client secret?使用基于 ARM 模板的部署,是否可以将服务主体与基于客户端证书的登录一起使用,而不是使用客户端密码? Can I specify the "password" field to be the base64 encoding of the private key of the certificate that can be used to access the relevant service principal?我可以将“密码”字段指定为可用于访问相关服务主体的证书私钥的 base64 编码吗?

I'm afraid it's impossible.恐怕是不可能的。 ARM template does not have the property to set the credential with a certificate instead of the secret. ARM 模板没有使用证书而不是秘密设置凭据的属性。 Maybe it's possible in the future, but not it does not support it.也许以后可以,但不是不支持。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 Azure 容器应用服务使用 Azure ACR 进行身份验证 - How to authenticate with Azure ACR from Azure container app service Azure KeyVault客户端证书和服务主体续订 - Azure KeyVault Client Certificate and Service Principal renewal 如何使用基于证书的服务主体对 azure 容器注册表进行身份验证 - How to authenticate with azure container registry using cert-based service principal 将服务主要客户ID和密码传递给ARM模板 - Pass Service Principal Client Id and Secret to ARM Template 有没有办法使用 ARM 模板来创建 Azure 服务主体? - Is there a way to use ARM Template to create an Azure Service Principal? 没有使用 Azure 容器注册表 (ACR) 使用 ARM 模板创建 Azure AKS 集群的选项 - No option to Create Azure AKS cluster with Azure container registry (ACR) using ARM template 使用证书在蔚蓝中创建服务主体 - creating service principal in azure with certificate 使用ARM模板使用服务主体身份验证为Azure Data Factory创建API连接 - Create API Connection for Azure Data Factory with service principal authentication using ARM Template 通过服务主体向 Azure HTTP 函数进行身份验证 - client_credentials 流没有返回“identity_token” - Authenticate via Service Principal to Azure HTTP Function - No "identity_token" returned with client_credentials flow Azure 容器实例 - 连接到不公开访问的 ACR - Azure Container Instances - Connection to ACR that does not public access
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM