Skip to content

Commit

Permalink
Update AzuriteExplorer.ps1
Browse files Browse the repository at this point in the history
Added a file (azure-cmdb) and dump all resources in a simple form to it
  • Loading branch information
asksven authored Dec 11, 2016
1 parent 45a9295 commit b5b809e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AzuriteExplorer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ Email: apostolis.mastoris[at]mwrinfosecurity.com
[System.IO.File]::W‌​riteAllLines($azureSubscriptionConfigurationFilePath, $azureSubscriptionConfigurationContent, $Utf8NoBomEncoding)
#>

# finally create a json file with all resources (as not all resource types are handled in a greater level of detail)
Get-AzureRmResource | ConvertTo-Json -Depth 10 | Out-File $(".\azure-cmdb_" + $subscriptionId + "_" + $context.Account + ".json") -Encoding UTF8

# Present information/statistics about the Azure subscription.
Write-Host "[*] Azure Subscription Information - Subscription Id $subscriptionId"
Write-Host " [-] Resource Groups: $($resourceGroups.Count)"
Expand Down

0 comments on commit b5b809e

Please sign in to comment.