Skip to content

Instantly share code, notes, and snippets.

View kinzakanwal's full-sized avatar
:octocat:
Focusing

Kinza Kanwal kinzakanwal

:octocat:
Focusing
View GitHub Profile
@kinzakanwal
kinzakanwal / count_resouces.ps1
Last active May 25, 2023 11:52
This gist referrers to the PowerShell script that is used to extract the count of azure resources across all the subscriptions in one tenant and then send the results via email.
workflow count_resource
{
inlineScript
{
#------------------- LOGIN TO AZURE -------------------#
try
{
"Logging in to Azure..."
Connect-AzAccount -Identity
}