Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Sup!?

Venura Athukorala venura9

:octocat:
Sup!?
View GitHub Profile
@venura9
venura9 / get_all_resources_to_csv.ps1
Last active Dec 1, 2019
Get all the resources in a subscription to CSV
View get_all_resources_to_csv.ps1
#connect to the teanant
Connect-AzAccount -t 'tenant_id_guid'
#get the guids of the subscriptions
Get-AzSubscription
#use one of the guids from the previous command
Select-AzSubscription -SubscriptionId 'subscriptio_id_guid' -TenantId 'tenant_id_guid'
#export the everything as CSV
You can’t perform that action at this time.