Skip to content

Commit 1abcb8c

Browse files
Merge pull request #8475 from bganapa/azs170-migration
Adding migration guide for breaking changes in the AzureStack module …
2 parents 582149e + 349857a commit 1abcb8c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
This document serves as both a breaking change notification and migration guide for consumers of the AzureStack powershell version 1.7.0. This release supports Azurestack 1901 update or later
3+
4+
## Table of Contents
5+
- [Breaking changes to Backup Admin cmdlets](#breaking-changes-to-backup-admin-cmdlets)
6+
- [Breaking changes to Fabric Admin cmdlets](#breaking-changes-to-fabric-admin-cmdlets)
7+
8+
## Breaking changes to Backup Admin cmdlets
9+
Backup uses cert-based encryption now. Support for symmetric keys is deprecated.
10+
### Set-AzsBackupConfiguration
11+
The cmdlet now accepts parameter EncryptionCertPath instead of EncryptionKey
12+
13+
```powershell
14+
# Old
15+
Set-AzsBackupConfiguration -EncryptionKey $symmetricKey
16+
# New
17+
Set-AzsBackupConfiguration -EncryptionCertPath $pathToEncryptionCert
18+
```
19+
20+
### Restore-AzsBackup
21+
The cmdlet now requires parameter DecryptionCertPath and DecryptionCertPassword
22+
23+
```powershell
24+
# Old
25+
Restore-AzsBackup -Name $backupResourceName
26+
# New
27+
Restore-AzsBackup -Name $backupResourceName -DecryptionCertPath $decryptionCertPath -DecryptionCertPassword $decryptionCertPassword
28+
```
29+
30+
## Breaking changes to Fabric Admin cmdlets
31+
32+
### Get-AzsInfrastructureVolume
33+
- The cmdlet Get-AzsInfrastructureVolume has been deprecated. This cmdlet has been replaced with Get-AzsVolume
34+
```powershell
35+
# Old
36+
$storageSystem = Get-AzSStorageSystem -Location $ResourceLocation | Select-Object -First 1
37+
$storageSystemName = ($storageSystem.Name -split '/')[-1]
38+
$storagePool = Get-AzSStoragePool -Location $ResourceLocation -StorageSystem $storageSystemName
39+
$storagePoolName = ($storagePool.Name -split '/')[-1]
40+
Get-AzsInfrastructureVolume -Location $ResourceLocation -StorageSystem $storageSystemName -StoragePool $storagePoolName
41+
# New
42+
$scaleUnit = Get-AzsScaleUnit
43+
$storageSubsystem = Get-AzsStorageSubSystem -ScaleUnit $scaleUnit[0].Name
44+
Get-AzsVolume -ScaleUnit $scaleUnit[0].Name -StorageSubSystem $storageSubsystem.Name
45+
```
46+
47+
### Get-AzsStorageSystem
48+
- Get-AzsStorageSystem has been deprecated, This cmdlet has been replaced with Get-AzsStorageSubSystem
49+
50+
```powershell
51+
# Old
52+
$storageSystem = Get-AzSStorageSystem -Location $ResourceLocation
53+
# New
54+
$scaleUnit = Get-AzsScaleUnit
55+
$storageSubsystem = Get-AzsStorageSubSystem -ScaleUnit $scaleUnit[0].Name
56+
```
57+
58+
### Get-AzsStoragePool
59+
- Get-AzsStoragePool has been deprecated, Please use the TotalCapacityGB property of Get-AzsStorageSubSystem instead.

0 commit comments

Comments
 (0)