ServiceFabric - ApplicationManifest.xml - 使用 ACR 服务连接的 RepositoryCredentials

问题描述

我有一个 Service Fabric 应用程序,可从 Azure ACR 存储库下载映像。 ACR repo 的认证来自 ApplicationManifest.xml

 <RepositoryCredentials AccountName="{AccountName}" Password="{Password}" PasswordEncrypted="false" />

想知道是否有任何可能的方式在 "RepositoryCredentials ..." 中使用 Azure DevOps ACR 服务连接

根据 Microsoft document,我们可以使用帐户名和密码(或)令牌注册表凭据下载 ACR 映像

解决方法

Azure DevOps 服务连接用于 azure devops 管道任务。它旨在允许您连接到 azure devops 管道中的外部和远程服务。

恐怕它不能在 Service Fabric 的 ApplicationManifest.xml 的 RepositoryCredentials 中使用。

有关 azure devops 服务连接的详细信息,请参阅 document