microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

Unable to see Azure Registry or use Build Image in Azure with recent versions #4269

Closed IcyCooldrink closed 1 month ago

IcyCooldrink commented 3 months ago

Just recently picked up a project that has been on the backburner for quite a while. When trying to right click my Dockerfile and 'Build Image in Azure...', I'm unable to complete the process.

I rolled back several versions to 1.26.1 and expected functionality is restored.

There may have been a change in process or some other requirement, but I'd like to understand what has changed and how to resolve using the current verison.

bwateratmsft commented 3 months ago

Do you have the Microsoft Account built-in extension enabled? We changed from using Azure Account to using the builtin authentication in IIRC 1.27.0. This is probably related to that.

image

IcyCooldrink commented 3 months ago

I was unaware of that one. I can see it in the list, and it's not disabled. I assume that means enabled.

From there ... well ... I'm not sure what to do with it TBH. Where can I see if I'm authenticated, etc?

bwateratmsft commented 3 months ago

I think I might know what's going on. Can you try installing the Azure Resources extension if you don't already have it, and run the command "Azure: Sign in to Directory..."? If my hunch is correct it'll list the tenant containing the Azure subscription you are trying to use. Once you've signed in to that tenant, it should begin showing up in the Azure Container Registry listing (after refreshing) and when building the image in Azure.

IcyCooldrink commented 3 months ago

I had Azure Resources extension installed, and funnily enough I did blunder my way into 'Azure: Sign In', but not 'Azure: Sign in to Directory'.

The first one didn't work, and in a weird twist, I've just today left Azure Container Registry for GitLab, so I can no longer test this. I'll try to grab some time tomorrow to quickly set it up again to test, given I raised the issue.

bwateratmsft commented 1 month ago

This issue has been closed because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!