From 7755b15a2d30f308f95ab7cad6c36c9cc6c45d8b Mon Sep 17 00:00:00 2001 From: Prachetos Sadhukhan Date: Sat, 26 Sep 2020 17:41:11 +0530 Subject: [PATCH] removed asjob --- .../custom/Start-AzMigrateServerMigration.ps1 | 6 ---- .../custom/Start-AzMigrateTestMigration.ps1 | 12 ------- .../docs/Start-AzMigrateServerMigration.md | 19 ++--------- .../docs/Start-AzMigrateTestMigration.md | 34 ++----------------- 4 files changed, 4 insertions(+), 67 deletions(-) diff --git a/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 b/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 index d3e0ad9e3192..3f201558a765 100644 --- a/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 +++ b/src/Migrate/custom/Start-AzMigrateServerMigration.ps1 @@ -58,12 +58,6 @@ function Start-AzMigrateServerMigration { # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Runtime')] [System.Management.Automation.SwitchParameter] diff --git a/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 b/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 index 5069e0d47f3b..e59b720b05ef 100644 --- a/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 +++ b/src/Migrate/custom/Start-AzMigrateTestMigration.ps1 @@ -58,12 +58,6 @@ function Start-AzMigrateTestMigration { # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -84,12 +78,6 @@ function Start-AzMigrateTestMigration { # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Runtime')] [System.Uri] diff --git a/src/Migrate/docs/Start-AzMigrateServerMigration.md b/src/Migrate/docs/Start-AzMigrateServerMigration.md index 643659d090c0..17728b405e3d 100644 --- a/src/Migrate/docs/Start-AzMigrateServerMigration.md +++ b/src/Migrate/docs/Start-AzMigrateServerMigration.md @@ -15,13 +15,13 @@ Starts the migration for the replicating server. ### ByIDVMwareCbt (Default) ``` Start-AzMigrateServerMigration -TargetObjectID [-SubscriptionId ] [-TurnOffSourceServer] - [-DefaultProfile ] [-AsJob] [] + [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` Start-AzMigrateServerMigration -InputObject [-SubscriptionId ] [-TurnOffSourceServer] - [-DefaultProfile ] [-AsJob] [] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -87,21 +87,6 @@ By id ## PARAMETERS -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. diff --git a/src/Migrate/docs/Start-AzMigrateTestMigration.md b/src/Migrate/docs/Start-AzMigrateTestMigration.md index 659cc93571d4..0ab7ccff9b2e 100644 --- a/src/Migrate/docs/Start-AzMigrateTestMigration.md +++ b/src/Migrate/docs/Start-AzMigrateTestMigration.md @@ -15,13 +15,13 @@ Starts the test migration for the replicating server. ### ByIDVMwareCbt (Default) ``` Start-AzMigrateTestMigration -TargetObjectID -TestNetworkID [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [] + [-DefaultProfile ] [] ``` ### ByInputObjectVMwareCbt ``` Start-AzMigrateTestMigration -InputObject -TestNetworkID [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [] + [-DefaultProfile ] [] ``` ## DESCRIPTION @@ -122,21 +122,6 @@ By input object. ## PARAMETERS -### -AsJob -Run the command as a job - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The credentials, account, tenant, and subscription used for communication with Azure. @@ -169,21 +154,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -SubscriptionId Azure Subscription ID.