Skip to content

Commit 31e35cd

Browse files
CaptainFanZzzZiyue Zheng
andauthored
Fix Az.Migrate Syntax Errors (Azure#17707)
* Fix Az.Migrate Syntax Errors * Revert a fix Co-authored-by: Ziyue Zheng <[email protected]>
1 parent 8f9432b commit 31e35cd

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/Migrate/help/New-AzMigrateReplicationPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The operation to create a replication policy.
2525

2626
### Example 1: Create a replication policy
2727
```powershell
28-
$providerSpecificPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.VMwareCbtPolicyCreationInput]::new()
28+
$providerSpecificPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.VMwareCbtPolicyCreationInput]::new()
2929
$providerSpecificPolicy.AppConsistentFrequencyInMinute = 240
3030
$providerSpecificPolicy.InstanceType = "VMwareCbt"
3131
$providerSpecificPolicy.RecoveryPointHistoryInMinute = 4320

src/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The operation to create a protection container mapping.
2828

2929
### Example 1: Create a mapping
3030
```powershell
31-
$providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.VMwareCbtContainerMappingInput]::new()
31+
$providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210210.VMwareCbtContainerMappingInput]::new()
3232
$providerSpecificInput.InstanceType = "VMwareCbt"
3333
$providerSpecificInput.KeyVaultId = "/subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.KeyVault/vaults/migratekv846827101"
3434
$providerSpecificInput.KeyVaultUri = "https://migratekv846827101.vault.azure.net"

src/Migrate/help/New-AzMigrateServerReplication.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ This is for the scenario, when there is only one single disk that has to be prot
104104
```powershell
105105
$OSDisk = New-AzMigrateDiskMapping -DiskID '6000C299-343d-7bcd-c05e-a94bd63316dd' -DiskType 'Standard_LRS' -IsOSDisk 'true'
106106
$DataDisk = New-AzMigrateDiskMapping -DiskID '7000C299-343d-7bcd-c05e-a94bd63316dd' -DiskType 'Standard_LRS' -IsOSDisk 'false'
107+
$DisksToInclude = @()
107108
$DisksToInclude += $OSDisk
108109
$DisksToInclude += $DataDisk
109110
New-AzMigrateServerReplication -MachineId "/subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.OffAzure/VMwareSites/AzMigratePWSHTc8d1site/machines/bcdr-vcenter-fareast-corp-micro-cfcc5a24-a40e-56b9-a6af-e206c9ca4f93_50063baa-9806-d6d6-7e09-c0ae87309b4f" -LicenseType NoLicenseType -TargetResourceGroupId "/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG" -TargetNetworkId "/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork" -TargetSubnetName default -TargetVMName "prsadhu-TestVM" -DiskToInclude $DisksToInclude -PerformAutoResync true

src/Migrate/help/Start-AzMigrateTestMigrationCleanup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ By machine id.
6363
### Example 2: By input object
6464
```powershell
6565
$obj = Get-AzMigrateServerReplication -TargetObjectID $env.srsMachineId -SubscriptionId $env.srsSubscriptionId
66-
Start-AzMigrateTestMigrationCleanup -InputObject $ob
66+
Start-AzMigrateTestMigrationCleanup -InputObject $obj
6767
```
6868

6969
```output

0 commit comments

Comments
 (0)