Skip to content

Latest commit

 

History

History
 
 

azure-function

Az Subcription Cleaner

Version: Azure Function

Azure Subscription Cleaner

The Simple way to keep your Azure Subscription "clean". This Azure Function will Automatically delete all "expired" resources inside your Azure Subscription, and nothing else.

A Resource is "expired" when it has a tag expireOn older then the current date.

How to deploy

To deploy all the resources in your Azure subscription, just click on the Deploy to Azure button.

This will open the Azure Portal in a deployment form. You will need to give it a name and select the location where you would like to deploy it.

Once the deployment is completed, from the Azure Portal select the subcription. First from the left menu select All Services and type "Subscription" in the search bar. Click on Subscriptions to see the list of available subscriptions. Click on the subscription where you just deployed AzSubscriptionCleaner.

"Select Subscription"

From the option at the left select Access control (IAM). Click Add and select Add role assignment. From the new panel on the left, Select Contributor as Role and enter the name of your resource (ex: azsubcleaner) in the Select textbox.

"Assign Role"

Select the Select blue button, and your are done!

Video Tutorial - The cleaning Power of Azure Function at your service

Or Read the blog post Use Azure Function to Clean-up your Mess, Automatically