Skip to content

Commit

Permalink
docs add Az prereq (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrat2005 authored Jun 2, 2023
1 parent a12c6e7 commit d283e42
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions AzureVMBasicPublicIPUpgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ PS C:\> Install-Module -Name AzureVMPublicIPUpgrade -Scope CurrentUser -Reposito

## Use the module

**Prerequisites:**
The Azure Powershell module must be installed. See [Install the latest Az PowerShell module](/powershell/azure/install-az-ps).

1. Use `Connect-AzAccount` to connect to the required Azure AD tenant and Azure subscription

```powershell
PS C:\> Connect-AzAccount -Tenant <TenantId> -Subscription <SubscriptionId>
```
1. Determine the VMs with Public IPs you want to upgrade. You can either specify VMs individually or pass multiple VMs to the module through the pipeline.
1. Find the VMs with Public IPs you want to upgrade. You can either specify VMs individually or pass multiple VMs to the module through the pipeline.
1. Run the upgrade command, following the examples below.
Expand All @@ -50,7 +53,7 @@ PS C:\> Install-Module -Name AzureVMPublicIPUpgrade -Scope CurrentUser -Reposito
**EXAMPLE: Upgrade All VMs, skipping those missing Network Security Groups.**

```powershell
Get-AzVM -ResourceGroupName 'myRG' | Start-VMPublicIPUpgrade -skipVMMissingNSG
Get-AzVM -ResourceGroupName 'myRG' | Start-VMPublicIPUpgrade -skipVMMissingNSG
```

**EXAMPLE: Upgrade all VMs in a resource group, piping the VM objects to the script.**
Expand Down

0 comments on commit d283e42

Please sign in to comment.