Skip to content

Commit ddf57c2

Browse files
authored
Avset public ip upgrade v2 (#127)
* fix carlm params * added vmss backup state file path to log * corrected recovery parameter sets * version bump * fix nsg assocation check * NSGs * ipv6 check * v1.0.0 * readme updates
1 parent 21a5966 commit ddf57c2

File tree

7 files changed

+724
-70
lines changed

7 files changed

+724
-70
lines changed

AzureAvSetBasicPublicIPUpgrade/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Because the Public IP allocation is set to 'Static' before detaching from the VM
88
even in the event of a script failure. For added peace of mind, the module double-checks that the Public IP allocation method is 'Static'
99
prior to detaching the Public IP from the VMs.
1010

11-
The module logs all upgrade activity to a file named `PublicIPUpgrade.log`, created in the same location where the module was executed (by default).
11+
The module logs all upgrade activity to a file named `AvSetPublicIPUpgrade.log`, created in the same location where the module was executed (by default).
1212

1313
## Unsupported Scenarios
1414

@@ -64,14 +64,14 @@ The Azure Powershell module must be installed. See [Install the latest Az PowerS
6464

6565
### Recovering from a Failed Migration
6666

67-
When a migration fails due to a transient issue, such as a network outage or client system crash, the migration can be re-run to configure the Availability Set VMs and Public IPs in the goal state. At execution, the script outputs a recovery log file which is used to ensure the Av Set is properly reconfigured. Review the log file `PublicIPUpgrade.log` created in the location where the script was executed.
67+
When a migration fails due to a transient issue, such as a network outage or client system crash, the migration can be re-run to configure the Availability Set VMs and Public IPs in the goal state. At execution, the script outputs a recovery log file which is used to ensure the Av Set is properly reconfigured. Review the log file `AvSetPublicIPUpgrade.log` created in the location where the script was executed.
6868

69-
To recover from a failed upgrade, pass the recovery log file path to the script with the `-recoverFromFile` parameter and identify the VM to recover with the `-AvailabilitySetName` and `-ResourceGroup` or `-AvailabilitySetResourceID` parameters.
69+
To recover from a failed upgrade, pass the recovery log file path to the script with the `-recoverFromFile` parameter and identify the Availability Set to recover with the `-AvailabilitySetName` and `-ResourceGroup` or `-AvailabilitySetResourceID` parameters.
7070

7171
**EXAMPLE: Recover from a failed migration, passing the name and resource group of the VM to recover, along with the recovery log file**
7272

7373
```powershell
74-
Start-AvSetPublicIPUpgrade -RecoverFromFile ./PublicIPUpgrade_Recovery_2020-01-01-00-00.csv -AvailabilitySetName myAvSet -ResourceGroup -rg-myrg
74+
Start-AvSetPublicIPUpgrade -RecoverFromFile ./AvSetPublicIPUpgrade_Recovery_2020-01-01-00-00.csv -AvailabilitySetName myAvSet -ResourceGroup -rg-myrg
7575
```
7676

7777
## Frequently Asked Questions
@@ -84,10 +84,10 @@ The time it takes to upgrade an Availability Set's VM's Public IPs will depend o
8484

8585
It is not possible to downgrade a Public IP address from Standard to Basic, so our recommendation is to fail-forward and address the issue with the Standard SKU IPs.
8686

87-
### Can I test a migration before executing?
87+
### Can I test a migration before executing?
8888

8989
There is no way to evaluate upgrading a Public IP without completing the action. This script includes a `-whatif` parameter, which checks that your Availability Set will support the upgrade and walks through the steps without taking action.
9090

91-
### Does this script support Zonal Basic SKU Public IPs?
91+
### Does this script support Zonal Basic SKU Public IPs?
9292

9393
Yes, the process of upgrading a Zonal Basic SKU Public IP to a Zonal Standard SKU Public IP is the same as a Regional Public IP.

AzureAvSetBasicPublicIPUpgrade/module/AzureAvSetBasicPublicIPUpgrade/AzureAvSetBasicPublicIPUpgrade.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AzureAvSetBasicPublicIPUpgrade'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.0.0'
15+
ModuleVersion = '1.0.0'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -107,7 +107,7 @@ PrivateData = @{
107107
# IconUri = ''
108108

109109
# ReleaseNotes of this module
110-
ReleaseNotes = 'Inital release'
110+
ReleaseNotes = 'NSG detection improvements, recovery fixes'
111111

112112
# Prerelease string of this module
113113
# Prerelease = ''

0 commit comments

Comments
 (0)