Your organization uses an Azure Virtual Machine to run continuous deployment tasks. You need to configure the VM to push a locally built container image named `webapp:v1` to an Azure Container Registry (ACR) named `corpacr`.
To comply with security guidelines, you must not use admin credentials or service principal keys. Instead, you have configured the following:
- A system-assigned managed identity on the VM, which has only the `Reader` role on the resource group containing the ACR.
- A user-assigned managed identity named `cicd-identity` (Client ID: `11111111-2222-3333-4444-555555555555`), which has the `AcrPush` role on `corpacr`.
Which of the following command sequences should you execute on the Azure Virtual Machine to successfully authenticate and push the image to the registry?
- az login --identity --username 11111111-2222-3333-4444-555555555555
az acr login --name corpacr
docker tag webapp:v1 corpacr.azurecr.io/webapp:v1
docker push corpacr.azurecr.io/webapp:v1Answer - Baz login --identity
az acr login --name corpacr
docker tag webapp:v1 corpacr.azurecr.io/webapp:v1
docker push corpacr.azurecr.io/webapp:v1 - Caz login --identity --username 11111111-2222-3333-4444-555555555555
docker login corpacr.azurecr.io
docker tag webapp:v1 corpacr.azurecr.io/webapp:v1
docker push corpacr.azurecr.io/webapp:v1 - Daz acr login --name corpacr --username 11111111-2222-3333-4444-555555555555
docker tag webapp:v1 corpacr.azurecr.io/webapp:v1
docker push corpacr.azurecr.io/webapp:v1