Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
New-SecureCred.ps1 Script Version - 1.1 Dec 22, 2016


azuregithubMicrosoft Azure PowerShell Repo


No Script Description
1 Deploy-AzureVm.ps1 Deploy multiple Azure IaaS VM from JSON templates
2 Deploy-AzureVmVhd.ps1 Deploy single Azure IaaS VM from VHD - JSON template
3 New-SecureCred.ps1 Create file that contains encrypted password for Azure VM local admin account. The adminPassword parameter from JSON templates
4 Apply-AzVmPowerStatePolicy.ps1 Start/Stop Azure VM in parallel on schedule based on two VM Tags (PowerOn/PowerOff)


Az-Module Azure Automation PowerShell Module

Requirements: PowerShell 5 or above. To check, type the following command: $PSVersionTable.PSVersion.Major.

To install this module, drop the entire 'Az-Module' folder into one of your module directories.

The default PowerShell module paths are listed in the $env:PSModulePath environment variable.

To make it look better, split the paths in this manner: $env:PSModulePath -split ';'

The default per-user module path is: "$env:HOMEDRIVE$env:HOMEPATH\Documents\WindowsPowerShell\Modules".

The default computer-level module path is: "$env:windir\System32\WindowsPowerShell\v1.0\Modules".

To use the module, type following command: Import-Module Az-Module -Force -Verbose.

To see the commands imported, type Get-Command -Module Az-Module.

For help on each individual cmdlet or function, run Get-Help CmdletName -Full [-Online][-Examples].

To start using the module functions:

  • Install Azure Resource Manager Module module from Microsoft PSGallery by Install-Module AzureRm.
  • Connect to your Azure account by Login-AzureRmAccount cmdlet.
  • Optionally, select your target subscription by Select-AzSubscription function.
No Function Description
1 Select-AzSubscription Interactively select Azure Subscription
2 Select-AzResourceGroup Interactively select Azure ResourceGroup name
3 Select-AzLocation Interactively select Azure Location
4 Select-AzObject Interactively select an Azure object (VM, StorageAccount, VNET, AvailabilitySet)
5 Select-AzChildObject Interactively select an Azure child object (Supports pipeline from the Select-AzObject function)
6 New-AzCredProfile Set your PowerShell session to automatically login to the Azure
7 Get-AzOrphanedVhd Find Azure orphaned *.VHD files
8 Get-AzSubnet Get busy IP in Azure Subnets
9 Get-AzVmPowerState Get Azure VM Power State
10 Get-AzVmTag / Add-AzVmTag Get/Add/Set Azure VM Resource Tag(s)
11 Get-AzVmDisk Get Azure VM Virtual Disks (OSDisk, DataDisk, All)
12 New-AzVmDisk Add a new DataDisk to an Azure VM
13 Expand-AzVmDisk Increase Azure VM disks
14 New-AzParamsJson Create Azure JSON parameter files
15 Copy-AzBlob Copy/Move/Rename blobs
16 Remove-AzObject Delete an Azure object (Supports pipeline from the Select-AzChildObject function)
17 Get-AzVmSize Select right Azure VM Size
18 Set-AzVmSize Resize Azure VM

Stay tuned for the updates!