Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/microsoft/ARI
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Merola committed Nov 6, 2023
2 parents 845424b + cfe0b86 commit fa9f747
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Automation/ARI_Automation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://github.com/microsoft/ARI/Automation/ARI_Automation.ps1
This powershell Script is part of Azure Resource Inventory (ARI)
.NOTES
Version: 3.1.4
Version: 3.1.6
First Release Date: 19th November, 2020
Authors: Claudio Merola
Expand Down Expand Up @@ -47,7 +47,7 @@ $RunDebug = $false

<######################################################### SCRIPT ######################################################################>

Clear-AzContext -Force
#Clear-AzContext -Force

Connect-AzAccount -Identity

Expand Down Expand Up @@ -94,7 +94,7 @@ Write-Output 'Extracting Advisories'
}


$Subscriptions = Get-AzContext -ListAvailable | Where-Object {$_.Subscription.State -ne 'Disabled'}
$Subscriptions = Get-AzSubscription | Where-Object {$_.State -ne 'Disabled'}
$Subscriptions = $Subscriptions.Subscription
if($RunDebug)
{
Expand Down Expand Up @@ -258,4 +258,4 @@ Write-Output 'Uploading Excel File to Storage Account'
Set-AzStorageBlobContent -File $File -Container $aristg -Context $Context | Out-Null
if($Diagram){Set-AzStorageBlobContent -File $DDFile -Container $aristg -Context $Context | Out-Null}

Write-Output 'Completed'
Write-Output 'Completed'

0 comments on commit fa9f747

Please sign in to comment.