*** WARNING: This will delete any resources with the tag AutoDeleteOn equal to todays date WITHOUT prompting for confirmation ***
Click the blue "Deploy to Azure" button
Or if you prefer commandline;
- Clone the repository
git clone https://github.com/ans-cloud/auto-delete-resource-automation-azure.git
- Ensure you have az cli installed
- Run
az login
- Switch to the correct subscription
az account set -s "YOUR_SUBSCRIPTION_ID"
- Create a resource group (optional)
az group create \
--name "name-for-resource-group" \
--location "uksouth or another region of your choice"
- Update the values in example.parameters.json (Optional)
- Run the following command to deploy the ARM template
az deployment group create \
--name "deploy-auto-delete-resource-automation-azure" \
--resource-group "name-of-existing-resource-group" \
--template-file "azure-deploy.json" \
--parameters "example.parameters.json"
This ARM (Azure Resource Manager) template will deploy a logicapp, upon creation you can choose whether to use an existing or new resource group
- Navigate to your root management group (or each subscription manually)
- Assign
Contributor
rights to the logicapp's managed identity