Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs add Az prereq #64

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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