- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个通过二头肌脚本使用默认公共(public)图像构建的容器应用程序。我将系统管理的身份分配给容器应用程序。我已将 AcrPull 角色分配给 ACR 私有(private)注册表 上的身份
ACR 私有(private)注册表已禁用管理员凭据,因此我在 containerApp 中使用托管身份。
我尝试使用此命令通过 azure shell 使用来自 ACR 的图像更新 containerApp
az containerapp up -n mycontainerapp -g my-rg -i myregistry.azurecr.io/mybranch-dev:latest --ingress external --target-port 5173
Failed to retrieve credentials for container registry. Please provide the registry username and password.
有人可以帮忙吗?谢谢
最佳答案
我已按照以下步骤使用托管身份在 ACR 和 ACA 之间建立连接来拉取图像,如下所示。请检查您是否可以按照以下步骤解决该问题。
为了重现该问题,我配置了容器应用程序和容器注册表。转到 Azure 容器应用并启用系统分配的托管标识(如下所示)并添加 AcrPull 角色。
将 AcrPull 角色添加到 ACA 后,我将示例镜像推送到容器注册表,如下所示。
编辑:
现在,在从 ACR 更新容器应用程序中的镜像之前,您必须编辑修订版本,因为现有修订版本是使用公共(public)存储库创建的。要编辑修订版本,请转到 ACA 中的容器,然后单击“编辑并部署”。
单击保存并创建新修订。您还可以在revisions中使用验证.
现在我使用 az containerapp update
来更新图像
az containerapp update -n <container-app-name> -g <rg-name> -i acrvjyps.azurecr.io/nginx:v5
关于azure - 无法使用 az up 命令更新 containerApp 的镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76610215/
我正在尝试使用 Azure cli 从以下命令中仅获取 IP 地址。但它总是带有额外的“”。 az network nic ip-config list --resource-group "RG_TE
我在 Windows 10 计算机上运行 powershell 运行 AZ REST 方法时出现问题。该脚本可以工作,甚至可以与用户帐户一起使用,但现在失败了,我不知道为什么。这是进行 AZ REST
我设计了一个 PowerShell 脚本,它能够正确配置函数应用的各种设置(包括 CORS)。Function App 可以运行并且可以从 Api 管理服务调用。 当需要配置Azure AD时,我使用
我在 Windows 10 计算机上运行 powershell 运行 AZ REST 方法时出现问题。该脚本可以工作,甚至可以与用户帐户一起使用,但现在失败了,我不知道为什么。这是进行 AZ REST
我设计了一个 PowerShell 脚本,它能够正确配置函数应用的各种设置(包括 CORS)。Function App 可以运行并且可以从 Api 管理服务调用。 当需要配置Azure AD时,我使用
我已开始使用 Azure Pipelines 和 GitHub 支持的帐户并创建了我的第一个组织。我在该组织中没有任何项目。我在 portal.azure.com 上也没有任何订阅。我想使用 Azur
我在 Windows 10 的 Powershell 中安装 Az 模块时遇到错误消息。有什么想法吗? 使用的命令: Install-Module Az -AllowClobber 错误消息: Pac
如果我运行命令 Get-AzPolicyState -PolicyAssignmentName "xxxxxxxxxxxxxxxxxxxxx" -Filter "ResourceType eq 'Mi
我想使用 CLI 启用版本控制、更改 Azure 存储帐户中的源。我从 Microsoft 文档 https://learn.microsoft.com/en-us/cli/azure/storage
powershell 中的 az 命令等价于什么 az ad sp create-for-rbac --query "{ client_id: appId, client_secret: passwo
powershell 中的 az 命令等价于什么 az ad sp create-for-rbac --query "{ client_id: appId, client_secret: passwo
我正在执行以下教程说明。我使用集成在 azure 门户中的 CLI 2.0。不是我笔记本电脑上的版本。 https://learn.microsoft.com/en-us/azure/app-serv
我必须检查某些计算机上是否安装了 Az 或 AzureRM 模块。 但是我遇到了一个问题,所有 Az 命令都可以从 PowerShell 运行,但是当我执行 Get-InstalledModule -
我正在寻找一种 'az' --query 语法,它只列出 json 字段而不是它们的值。 这将打印一个表格: az account list --query [*] -o --table Name
我正在尝试将 az cmdlet 安装到 Kudu 上以用于我的 Azure Function。我目前正在遵循本指南: How to install a PowerShell module in an
我正在寻找一种 'az' --query 语法,它只列出 json 字段而不是它们的值。 这将打印一个表格: az account list --query [*] -o --table Name
我正在尝试使用 Kubernetes,并且正在使用 AKS 和 Docker Hub。我通过 Docker Compose 设置了一个 REST 应用程序,该应用程序由九个相互通信的不同微服务组成。现
概括 Amazon RDS 有两种主要不同类型的副本,多可用区副本和只读副本,很容易找到它们的区别。 但是,只读副本已于 2018 年 1 月支持多可用区部署。 “多可用区部署”和“只读副本版本多可用
每当我运行 az acr login -n 时,我都会收到以下消息: 来自守护程序的错误响应:获取“https://acrau*****.azurecr.io/v2/”:net/http:WAITIN
请求 Cloud Shell。已成功。连接终端... Import-Module: /opt/microsoft/powershell/7/profile.ps1:13 Line | 13 |
我是一名优秀的程序员,十分优秀!