You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The executable to get into PowerShell is "pwsh". In a terminal you can type "pwsh" and you will get a PowerShell prompt.
└🤘-> pwsh
PowerShell 7.5.2
PS /Users/user>
Now install the required modules.
Install-Module Az (This is the Azure PowerShell Module)
Import-Module Az (Import the module)
Install-Module -Name Az.CostManagement (This is the Azure Cost Management PowerShell Module)
Import-Module Az.CostManagement (Import the module)
Install-Module -Name ImportExcel (This is the Excel PowerShell Module) - So that it can export to Excel correctly.
One last package that needs to be installed to get the Excel formatting done correctly is mono-libgdiplus
You can do this by running
brew install mono-libgdiplus
Now just follow the rest of the steps in the Docs as if you were running Windows. All the commands will work in pwsh from the Mac terminal.