Skip to content

simonhutson/Azure-PowerShell-GetVMStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-requisites

Make sure you have the correct version of PowerShell 5.x installed, by running this command:

$PSVersionTable.PSVersion

If the "Az" and "Az.ResourceGraph" PowerShell modules are not installed, then you can run these PowerShell commands in an elevated shell:

Install-Module -Name "Az" -Repository "PSGallery" -Scope "CurrentUser" -SkipPublisherCheck -Force -Confirm -AllowClobber -Verbose
Install-Module -Name "Az.ResourceGraph" -Repository "PSGallery" -Scope "CurrentUser" -SkipPublisherCheck -Force -Confirm -AllowClobber -Verbose

If PowerShell isn't correctly configured to connect to the PowerShell Gallery (PSGallery) package repository, then you can run these PowerShell commands in an elevated shell:

Find-PackageProvider -Name "Nuget" -Force -Verbose | Install-PackageProvider -Scope "CurrentUser" -Force -Confirm -Verbose
Set-PSRepository -Name "PSGallery" -InstallationPolicy "Trusted" -PackageManagementProvider "Nuget" -Verbose
Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "Bypass" -ErrorAction SilentlyContinue -Confirm -Force -Verbose
Install-Module -Name "PowerShellGet" -Repository "PSGallery" -Scope "CurrentUser" -SkipPublisherCheck -Force -Confirm -AllowClobber -Verbose

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published