-
Notifications
You must be signed in to change notification settings - Fork 536
how do i deploy a docker image on visual studio code to an app service on azure. I am getting the following errors when i try. Please advice #1702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how do i deploy a docker image on visual studio code to an app service on azure. I am getting the following errors when i try. Please advice #1702
Comments
@EricJizbaMSFT The |
It's a generic error thrown when showTreeItemPicker doesn't find a matching item. Ravi did some work related to that here for other Docker scenarios: #1565 |
@tobioge1 Due to a bug it is necessary to add the Azure registry provider, so that it appears in the Docker explorer tab. Run command |
@EricJizbaMSFT I found one possible fix, I wanted to run it past you. The bug is occurring because of this line, combined with the temp AzureAccountTreeItem created by the command: https://github.com/microsoft/vscode-azuretools/blob/5cac7faf9bf24b7c911dee4aa49e8e74fbcffd9f/ui/src/treeDataProvider/AzureAccountTreeItemBase.ts#L139 The command creates its own AzureAccountTreeItem, because the Azure provider may have been disconnected, but refers to the RegistriesTreeItem as its parent. The line above tells the RegistriesTreeItem to choose a child Azure SubscriptionTreeItem...but since the temporary AzureAccountTreeItem is not an actual child of RegistriesTreeItem, it fails. So, one fix would be to call Another option would be to first walk them through the process of getting that Azure provider connected if it isn't. I haven't looked yet; I assume this would be a bit more complicated but should work. Arguably it's more "correct" since, if you're deploying to Azure App Service, you should probably have the provider connected anyway. Do you have a preference? |
|
Yes, that works as well. I like your idea better. 😄 |
Created microsoft/vscode-azuretools#667. |
Wasn't meant to auto-close yet. |
Does this occur consistently?
Repro steps:
Action: vscode-docker.registries.deployImageToAzure
Error type: NoResouceFoundError
Error Message: No matching resources found.
Version: 0.10.0
OS: win32
OS Release: 10.0.18362
Product: Visual Studio Code
Product Version: 1.42.1
Language: en
Call Stack
The text was updated successfully, but these errors were encountered: