Skip to content

Commit f6cb922

Browse files
committed
New-AzDataProtectionBackupVault example fix
1 parent 7e4bb2f commit f6cb922

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupVault.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ This command creates a new backup vault while setting Immutability state, cross
6565
```powershell
6666
$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType "<DataStoreType>" -Type "<Type>"
6767
$userAssignedIdentity = @{
68-
"<userAssignedId1>" = @{
69-
clientId = "<clientId1>";
70-
principalId = "<principalId1>
71-
};
72-
"<userAssignedId2>" = @{}
73-
}
68+
"<userAssignedId1>" = @{
69+
clientId = "<clientId1>"
70+
principalId = "<principalId1>"
71+
}
72+
"<userAssignedId2>" = @{
73+
clientId = "<clientId2>"
74+
principalId = "<principalId2>"
75+
}
76+
}
7477
New-AzDataProtectionBackupVault -SubscriptionId <subscriptionId> -ResourceGroupName <resourceGroupName> -VaultName <vaultName> -Location <location> -StorageSetting $storagesetting -IdentityType UserAssigned -UserAssignedIdentity $userAssignedIdentity -CmkEncryptionState Enabled -CmkIdentityType UserAssigned -CmkUserAssignedIdentityId <cmkUserAssignedIdentityId> -CmkEncryptionKeyUri <cmkEncryptionKeyUri> -CmkInfrastructureEncryption Enabled
7578
```
7679

src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupVault.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ This command creates a new backup vault while setting Immutability state, cross
3232
```powershell
3333
$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType "<DataStoreType>" -Type "<Type>"
3434
$userAssignedIdentity = @{
35-
"<userAssignedId1>" = @{
36-
clientId = "<clientId1>";
37-
principalId = "<principalId1>
38-
};
39-
"<userAssignedId2>" = @{}
40-
}
35+
"<userAssignedId1>" = @{
36+
clientId = "<clientId1>"
37+
principalId = "<principalId1>"
38+
}
39+
"<userAssignedId2>" = @{
40+
clientId = "<clientId2>"
41+
principalId = "<principalId2>"
42+
}
43+
}
4144
New-AzDataProtectionBackupVault -SubscriptionId <subscriptionId> -ResourceGroupName <resourceGroupName> -VaultName <vaultName> -Location <location> -StorageSetting $storagesetting -IdentityType UserAssigned -UserAssignedIdentity $userAssignedIdentity -CmkEncryptionState Enabled -CmkIdentityType UserAssigned -CmkUserAssignedIdentityId <cmkUserAssignedIdentityId> -CmkEncryptionKeyUri <cmkEncryptionKeyUri> -CmkInfrastructureEncryption Enabled
4245
```
4346

0 commit comments

Comments
 (0)