简体   繁体   English

有没有办法使用 Powershell 更改 Azure 容器注册表管理员密码?

[英]Is there a way to change Azure Container Registry admin passwords using Powershell?

I'm trying to automate a process to change the Azure Container Registry Admin password(s) using Powershell.我正在尝试使用 Powershell 自动化更改 Azure 容器注册表管理员密码的过程。 I know you can do it using the Azure CLI with the following:我知道您可以使用 Azure CLI 执行以下操作:

az acr credential renew --name <registryname> --password-name password

I just can't locate the equivalent Powershell commands.我只是找不到等效的 Powershell 命令。

You need to use Update-AzureRmContainerRegistryCredential您需要使用Update-AzureRmContainerRegistryCredential

Update-AzureRmContainerRegistryCredential
      [-ResourceGroupName] <String>
      [-Name] <String>
      -PasswordName <PasswordName>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

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

相关问题 Powershell + Azure 应用服务 + Azure 容器注册表 - Powershell + Azure App Service + Azure Container Registry 如何将内容信任策略分配给容器注册表资源 azure powershell - How to assign content trust policy to container registry resource azure powershell 使用 CLI 将 Azure Web 应用程序(容器)连接到 Azure 容器注册表 - Connecting an Azure Web app (container) to an Azure container registry using the CLI 使用 Terraform 的 Azure 容器注册表权限 - Azure Container Registry Permissions Using Terraform 将 Docker 客户端与 Azure 容器注册表一起使用 - Using Docker Client with Azure Container Registry Azure 容器注册表权限 - Azure Container Registry Permissions 有没有办法防止覆盖 Azure 容器注册表中的现有标签/图像? - Is there a way to prevent overwriting existing tags/images in Azure Container Registry? 使用 Azure PowerShell 列出容器上的现有 SASToken - List existing SASTokens on a container using Azure powershell 使用 oras push 将 vhd 推送到 Azure 容器注册表时失败 - Failure while pushing vhd to Azure container registry using oras push 如何使用 terraform 将 docker 映像推送到 Azure 容器注册表? - How to push a docker image to Azure container registry using terraform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM