Search code examples
azureazure-devopsazure-web-app-serviceazure-cliazure-deployment

Disconnect or disable deployment option from azure webapp


I am running auto deployment pipeline connected with azure webapp. I want to disable deployment by pipeline for a certain period and enable again after finishing pipeline. I couldn't found any azure CLI regarding this task. Is there any azure pipeline task or azure CLI for performing this task.enter image description here


Solution

  • You can disconnect to your deployment source by using the below command:

    az webapp deployment source delete --resource-group {your-resource-group} --name {your-app-service-name}
    

    For more information you can refer :

    Similar Microsoft Q & A Thread

    Microsoft Documentation for Webapp Deployment Source