Getting stuck on deployment after hitting ctrl c on an azd deploy

Jacob Culbertson 0 Reputation points
2024-06-07T21:05:51.9366667+00:00

I hit ctrl c after running azd deploy that was taking a long time. Ever since I used ctrl c, I can't run azd deploy anymore, it will just get stuck for long periods of time and wont finish the deployment. Looking for some live help resources if available. Thank you

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,154 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinud 1,890 Reputation points Microsoft Vendor
    2024-06-12T08:54:03.9633333+00:00

    Hi Jacob Culbertson,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    Please ensure that your network connection is stable. If the network is unstable, the process may take some time to exit after running Ctrl+C.

    To rerun azd deploy, manually delete the resources that were partially created during the interrupted deployment. This includes the App Service Plan, App Service, and any other related resources. Ensure that the resource group itself is clean and does not contain remnants of the failed deployment.

    If you are attempting this from your local machine, sometimes local state or cache can cause issues. [For example] Try deleting the .azure and .azuredevops directories in your project folder using the following commands (make sure you are in the project directory):

    rm -rf .azure

    rm -rf .azuredevops

    After performing the above steps, restart your machine and retry the deployment, as this can sometimes resolve issues. If you are using the Azure portal CLI terminal, log out and log back into the Azure CLI to refresh your session tokens with the following commands:

    az logout

    az login

    If the information provided is helpful, kindly accept the answer by clicking "Accept Answer and Upvote" on the post.

    0 comments No comments