-
GitHub management for AzSubscription Cleaner
Summary
In this session, Frank is restructuring the GitHub project to have two solutions. One using Azure Automation, and the other one using Azure Function. @Lanwalker2 join mid-stream and suggested to do some test/ to understand with the Function is throwing errors. An chill and relax stream.
Replay
Read more...
-
Working on AzCleanerSubscription - Adding Identity in Azure Function
Summary
In this session, Frank is investigating a bug in an PowerShell Azure Function related to Identity. The Azure Function executes commands that required to have access to the Azure Subscription and we are getting errors…
Replay
Read more...
-
Keep Subcription Clean SetUp
Summary
In this session, Frank is fixing some bug into the Azure Function for AzSubscriptionCleaner. Adding the Az.ResourceGraph module. Chatting with the community about some improvements related to the stream setup.
Replay
Read more...
-
Creating a Tool to keep our Azure Subscription Clean
Summary
In this session, Frank is converting Azure Subscription Cleaner (AzSubscriptionCleaner) to serverless using the Azure Function. Things are going pretty smoothly.
Replay
Read more...
-
Creating a Tool to keep our Azure Subscription Clean
Summary
In this session, Frank is creating an Azure Automation for one of the Azure Power Tool. The one that automatically deletes “expired” resources inside our Azure Subscription. Once fully created and functional, he will export the ARM template to look at what kind of resources he will need in the deployment of that solution.
Replay
- Twitch(for 60 days)
- Youtube (soon)
Segments
- 00:00:01 - Bonjour, Hi!
- 00:00:44 - Recap the project.
- 00:09:42 - Create the Automation RunBook.
- 01:30:36 - Add code in the script to delete empty Resources Group
- 01:48:17 - Export ARM Template
Goals
- List expired resources
- List empty Resource Groupes
- delete expired resources
- Sent notification with list of expired resources
- capture any errors that might happen
ToDos
- Create an easy way to add tags
- Create an ARM template to deploy
- Clean-up/Structure the GitHub to make sens of the 3 “tools”
New Subscribers
- @CopperBeardy subscribed for 2 months!
Cheers
- @CopperBeardy: played Applause for 10 Bits
Streams Notes/ Snipets/ Shared urls
This query return the resources that are expired
-
az graph query -q ‘where todatetime(tags.expireOn) > now() project name, type, expireOn=tostring(tags.expireOn) limit 5’ - We need to add module
- Az.Accounts
- Az.ResourceGraph
References
-
GitHub Project: https://github.com/FBoucher/AzurePowerTools
-
https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/datetime
subscribe via RSS