Hi @Pampua84 ,
This issue happens because Visual Studio can’t find the credentials it needs to push your Docker image to Azure Container Registry (ACR). This is often due to missing Docker Desktop or not being authenticated with Azure CLI.
Steps to resolve:
1. Authenticate with Azure CLI:
Open Command Prompt or PowerShell and run:
az login
This will prompt you to sign in to your Azure account.
2. Log in to your Azure Container Registry:
Run:
az acr login --name <your-registry-name>
Replace <your-registry-name> with your actual registry name (not the full URL).
3. Enable Admin User (if needed):
In the Azure Portal, go to your Container Registry, then to “Access keys.” Make sure the Admin user is enabled. If not, enable it temporarily and use the provided username and password in Visual Studio’s publish settings.
4. Restart Visual Studio:
After completing the above steps, restart Visual Studio to ensure it recognizes the updated credentials.
Hope this helps!