Reputation: 2432
I would like to use Azure Automation to delete all the staging deployments in my cloud services. I would like to run a Powershell script once a day to do so.
Is there any predefined script out there to do so? Any examples?
Upvotes: 2
Views: 586
Reputation: 432
the following Powershell cmdlet can be used to delete deployment slots on a website.You can either loop thru the list of deployment slots or do one by one.
Remove-AzureWebsite -Name webappslotstest -Slot staging
There's three ways to do this;
Hope this helps
Upvotes: 4