Skip to content

Commit 3b79114

Browse files
committed
2) vmss changes - MD files
1 parent 987ff16 commit 3b79114

File tree

4 files changed

+88
-18
lines changed

4 files changed

+88
-18
lines changed

src/RecoveryServices/RecoveryServices/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Azure Site Recovery added support for protecting virtual machines with target virtual machine scale set configured for Azure to Azure provider.
2122

2223
## Version 3.5.0
2324
* Added Cross Zonal Restore for managed virtual machines.

src/RecoveryServices/RecoveryServices/help/New-AzRecoveryServicesAsrReplicationProtectedItem.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ New-AzRecoveryServicesAsrReplicationProtectedItem [-AzureToAzure]
6969
-Name <String> [-RecoveryVmName <String>] -ProtectionContainerMapping <ASRProtectionContainerMapping>
7070
[-RecoveryAzureNetworkId <String>] [-RecoveryAzureSubnetName <String>] -RecoveryResourceGroupId <String>
7171
[-ReplicationGroupName <String>] [-RecoveryCloudServiceId <String>] [-RecoveryAvailabilityZone <String>]
72-
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryAvailabilitySetId <String>]
73-
[-RecoveryBootDiagStorageAccountId <String>] [-DiskEncryptionVaultId <String>]
74-
[-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>] [-KeyEncryptionVaultId <String>]
75-
[-WaitForCompletion] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
72+
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryVirtualMachineScaleSetId <String>]
73+
[-RecoveryAvailabilitySetId <String>] [-UseManagedDisk <String>] [-RecoveryBootDiagStorageAccountId <String>]
74+
[-DiskEncryptionVaultId <String>] [-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>]
75+
[-KeyEncryptionVaultId <String>] [-WaitForCompletion] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
76+
[-Confirm] [<CommonParameters>]
7677
```
7778

7879
### AzureToAzureWithoutDiskDetails
@@ -82,10 +83,10 @@ New-AzRecoveryServicesAsrReplicationProtectedItem [-AzureToAzure] -AzureVmId <St
8283
[-RecoveryAzureStorageAccountId <String>] -LogStorageAccountId <String> [-RecoveryAzureNetworkId <String>]
8384
[-RecoveryAzureSubnetName <String>] -RecoveryResourceGroupId <String> [-ReplicationGroupName <String>]
8485
[-RecoveryAvailabilityZone <String>] [-RecoveryProximityPlacementGroupId <String>]
85-
[-RecoveryAvailabilitySetId <String>] [-RecoveryBootDiagStorageAccountId <String>]
86-
[-DiskEncryptionVaultId <String>] [-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>]
87-
[-KeyEncryptionVaultId <String>] [-WaitForCompletion] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
88-
[-Confirm] [<CommonParameters>]
86+
[-RecoveryVirtualMachineScaleSetId <String>] [-RecoveryAvailabilitySetId <String>] [-UseManagedDisk <String>]
87+
[-RecoveryBootDiagStorageAccountId <String>] [-DiskEncryptionVaultId <String>]
88+
[-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>] [-KeyEncryptionVaultId <String>]
89+
[-WaitForCompletion] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
8990
```
9091

9192
## DESCRIPTION
@@ -175,6 +176,14 @@ PS C:>$job = New-AzRecoveryServicesAsrReplicationProtectedItem -AzureToAzure -Az
175176

176177
Starts the replication protected item creation operation for a Virtual Machine inside Proximity placement group and returns the ASR job used to track the operation (Azure to Azure scenario).
177178

179+
### Example 9
180+
```
181+
PS C:>$job = New-AzRecoveryServicesAsrReplicationProtectedItem -AzureToAzure -AzureToAzureDiskReplicationConfig disk1,disk2 -AzVmId $vmId `
182+
-Name "a2aprotectedItem" -RecoveryVmName "vmName" -ProtectionContainerMapping $pcmMapping -RecoveryResourceGroupId $recoveryResourceGroup -RecoveryVirtualMachineScaleSetId $vmss
183+
```
184+
185+
Starts the replication protected item creation operation for a Virtual Machine with target virtual machine sclase set configured and returns the ASR job used to track the operation (Azure to Azure scenario).
186+
178187
## PARAMETERS
179188

180189
### -Account
@@ -655,6 +664,21 @@ Accept pipeline input: False
655664
Accept wildcard characters: False
656665
```
657666
667+
### -RecoveryVirtualMachineScaleSetId
668+
Specify the virtual machine scale set Id to used by the failover Vm in target recovery region.
669+
670+
```yaml
671+
Type: System.String
672+
Parameter Sets: AzureToAzure, AzureToAzureWithoutDiskDetails
673+
Aliases:
674+
675+
Required: False
676+
Position: Named
677+
Default value: None
678+
Accept pipeline input: False
679+
Accept wildcard characters: False
680+
```
681+
658682
### -RecoveryVmName
659683
Name of the recovery Vm created after failover.
660684

src/RecoveryServices/RecoveryServices/help/Set-AzRecoveryServicesAsrReplicationProtectedItem.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Set-AzRecoveryServicesAsrReplicationProtectedItem -InputObject <ASRReplicationPr
1818
[-RecoveryCloudServiceId <String>] [-RecoveryNicSubnetName <String>] [-RecoveryNicStaticIPAddress <String>]
1919
[-NicSelectionType <String>] [-RecoveryResourceGroupId <String>] [-LicenseType <String>]
2020
[-RecoveryAvailabilitySet <String>] [-RecoveryAvailabilityZone <String>]
21-
[-RecoveryProximityPlacementGroupId <String>] [-EnableAcceleratedNetworkingOnRecovery]
22-
[-RecoveryBootDiagStorageAccountId <String>]
21+
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryVirtualMachineScaleSetId <String>]
22+
[-EnableAcceleratedNetworkingOnRecovery] [-RecoveryBootDiagStorageAccountId <String>]
2323
[-AzureToAzureUpdateReplicationConfiguration <ASRAzuretoAzureDiskReplicationConfig[]>]
2424
[-DiskEncryptionVaultId <String>] [-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>]
2525
[-KeyEncryptionVaultId <String>] [-UseManagedDisk <String>]
@@ -88,6 +88,13 @@ PS C:\> $currentJob = Set-AzureRmRecoveryServicesAsrReplicationProtectedItem -In
8888

8989
Start the update operation for the specified replication protected item to use the supplied proximity placement group for failover VM.
9090

91+
### Example 8
92+
```
93+
PS C:\> $currentJob = Set-AzureRmRecoveryServicesAsrReplicationProtectedItem -InputObject $ rpi -RecoveryVirtualMachineScaleSetId $vmss
94+
```
95+
96+
Start the update operation for the specified replication protected item to use the supplied virtual machine scale set for failover VM.
97+
9198
## PARAMETERS
9299

93100
### -ASRVMNicConfiguration
@@ -485,6 +492,21 @@ Accept pipeline input: False
485492
Accept wildcard characters: False
486493
```
487494
495+
### -RecoveryVirtualMachineScaleSetId
496+
{{ Fill RecoveryVirtualMachineScaleSetId Description }}
497+
498+
```yaml
499+
Type: System.String
500+
Parameter Sets: (All)
501+
Aliases:
502+
503+
Required: False
504+
Position: Named
505+
Default value: None
506+
Accept pipeline input: False
507+
Accept wildcard characters: False
508+
```
509+
488510
### -Size
489511
Specifies the recovery virtual machine size.
490512
The value should be from the set of sizes supported by Azure virtual machines.

src/RecoveryServices/RecoveryServices/help/Update-AzRecoveryServicesAsrProtectionDirection.md

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Update-AzRecoveryServicesAsrProtectionDirection [-AzureToAzure]
5757
-ProtectionContainerMapping <ASRProtectionContainerMapping> -LogStorageAccountId <String>
5858
[-RecoveryAzureStorageAccountId <String>] -ReplicationProtectedItem <ASRReplicationProtectedItem>
5959
[-RecoveryResourceGroupId <String>] [-RecoveryCloudServiceId <String>] [-RecoveryAvailabilitySetId <String>]
60-
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryBootDiagStorageAccountId <String>]
61-
[-DiskEncryptionVaultId <String>] [-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>]
62-
[-KeyEncryptionVaultId <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
63-
[<CommonParameters>]
60+
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryVirtualMachineScaleSetId <String>]
61+
[-RecoveryBootDiagStorageAccountId <String>] [-DiskEncryptionVaultId <String>]
62+
[-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>] [-KeyEncryptionVaultId <String>]
63+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
6464
```
6565

6666
### AzureToAzureWithMultipleStorageAccount
@@ -70,10 +70,10 @@ Update-AzRecoveryServicesAsrProtectionDirection [-AzureToAzure]
7070
-AzureToAzureDiskReplicationConfiguration <ASRAzuretoAzureDiskReplicationConfig[]>
7171
-ReplicationProtectedItem <ASRReplicationProtectedItem> [-RecoveryResourceGroupId <String>]
7272
[-RecoveryCloudServiceId <String>] [-RecoveryAvailabilitySetId <String>]
73-
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryBootDiagStorageAccountId <String>]
74-
[-DiskEncryptionVaultId <String>] [-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>]
75-
[-KeyEncryptionVaultId <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
76-
[<CommonParameters>]
73+
[-RecoveryProximityPlacementGroupId <String>] [-RecoveryVirtualMachineScaleSetId <String>]
74+
[-RecoveryBootDiagStorageAccountId <String>] [-DiskEncryptionVaultId <String>]
75+
[-DiskEncryptionSecretUrl <String>] [-KeyEncryptionKeyUrl <String>] [-KeyEncryptionVaultId <String>]
76+
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
7777
```
7878

7979
### ByRPObject
@@ -135,6 +135,14 @@ PS C:\> $currentJob = Update-AzRecoveryServicesAsrProtectionDirection -AzureToAz
135135

136136
Start the update direction operation for the specified replication protected item in target azure region defined by protection container mapping and using cache storage (in same region as VM) and proximity placement group.
137137

138+
### Example 6
139+
```
140+
PS C:\> $currentJob = Update-AzRecoveryServicesAsrProtectionDirection -AzureToAzure -ProtectionContainerMapping $B2ApcmMapping -LogStorageAccountId $cacheStorageId `
141+
-ReplicationProtectedItem $rpi -RecoveryVirtualMachineScaleSetId $vmss
142+
```
143+
144+
Start the update direction operation for the specified replication protected item in target azure region defined by protection container mapping and using cache storage (in same region as VM) and virtual machine scale set.
145+
138146

139147
## PARAMETERS
140148

@@ -513,6 +521,21 @@ Accept pipeline input: False
513521
Accept wildcard characters: False
514522
```
515523
524+
### -RecoveryVirtualMachineScaleSetId
525+
{{ Fill RecoveryVirtualMachineScaleSetId Description }}
526+
527+
```yaml
528+
Type: System.String
529+
Parameter Sets: AzureToAzure, AzureToAzureWithMultipleStorageAccount
530+
Aliases:
531+
532+
Required: False
533+
Position: Named
534+
Default value: None
535+
Accept pipeline input: False
536+
Accept wildcard characters: False
537+
```
538+
516539
### -ReplicationProtectedItem
517540
Specifies an ASR replication protected item.
518541

0 commit comments

Comments
 (0)