Here you can see all the Azure PowerShell scripts and it’s usage. I would keep updating the page with more resources as and when I come across.
1.To Connect to the Azure Cloud Subscription. Once you get the popups enter the Credentials.
1 |
Add-AzureRmAccount |
2. List the Azure subscription environment details.
1 |
Get-AzureRmSubscription |
3. List all the VMs under the subscription.
1 |
Get-AzureRmVM |
4. To get a detailed info on the VMs
1 |
Get-AzureRmVM | Select * |
5. Get all locations and the supported resource providers for each location.
1 |
Get-AzureRmLocation | ft -AutoSize |
6. Once you know the location, you can use below command to check the VM Sizes provided in a specific region.
1 |
Get-AzureRmVMSize -Location westus |
7. List all the Web Apps.
1 |
Get-AzureRmWebApp |