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.
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 :