microsoft / vscode-azuretools

Common packages for building Azure extensions for VS Code
MIT License
106 stars 67 forks source link

Using 'Redeploy' command doesn't work, results in 'Failed to get status of deployment' message #1728

Open bengrah-miller opened 6 months ago

bengrah-miller commented 6 months ago

Hi there,

In the Deployments section of our service, you can see a list of deployments that have been done previously as well as the one that is active. If you right click on one of these items, you can Redploy that commit, I'm assuming meaning that you make that commit live as opposed to the latest commit that you've deployed.

However, when I try this, I get the following message:

2:48:39 PM MyApp-dev: Redeploying commit "bab3bd768e2f4b0ba27ffd1110058e86" to "MyApp-dev"...
12:49:44 PM: Error: Failed to get status of deployment.

Any ideas why this would be?

nturinski commented 6 months ago

Hi @bengrah-miller

Do you know what your app's deployment configuration is? Redeploy only works if it's a git based deployment.

Also, could you let us know what kind of app this is? The azuretools team is responsible for both app service and functions, so I can't really tell which extension this is.

bengrah-miller commented 6 months ago

Hi @nturinski - I hadn't realised it was a Git project related function, I thought it was used to redeploy an earlier commit. Basically we're using the VSCode extensions Azure Resources and Azure App Services. I was using the Re-deploy functionality thinking I could redeploy an earlier update if required:

image

The project we're getting this issue on isn't a Git-integrated project, it's just an app service.

Thanks.