PowerShell automation can be powerful when harnessed correctly. Whats more is that its capabilities can expand well beyond on-premises. To get started on this journey, this post will look at how to manage Azure Resources via PowerShell to further our learning on adoption and successfully set the foundation for future enablement. The PowerShell module installed will be AzureRM which allows for management of both Azure and Azure Stack. This does differ from installing Az modules which only currently support Azure. Further details surrounding this can be found here.
Get-Module -ListAvailable | Where-Object -Property Name -Like "*Azure*"
NOTE: Verification entails that no modules are listed
Install-Module -Name AzureRM
Get-AzureRmResourceGroup | Select-Object -Property ResourceGroupName,Location
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
That completes the setup of the AzureRM module in PowerShell. Future blog posts will now expand on specific management of Azure Resources using this post as a prerequisite.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.