Just some quick notes and links for setting up Azure to be managed by PowerShell
https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-4.0.0
Get-Module PowerShellGet -list | Select-Object Name,Version,Path
# Install the Azure Resource Manager modules from the PowerShell Gallery
Install-Module AzureRM
Answer ‘Yes’ or ‘Yes to All’ to continue with the installation.
Import-Module AzureRM
Get-Module * -list