diff --git a/src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 b/src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 index 10d346288ae2..edfa5c763ea2 100644 --- a/src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 +++ b/src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 @@ -13,6 +13,21 @@ # limitations under the License. # ---------------------------------------------------------------------------------- +function Create-RoleAssignments( + [string]$objectId, + [string]$saId) { + + $storageBlobDataContributorRoleDefinitionId = [System.Guid]::parse($RoleDefinitionIds.StorageBlobDataContributorId) + $contributorRoleDefinitionId = [System.Guid]::parse($RoleDefinitionIds.ContributorId) + $existingRoleAssignments = Get-AzRoleAssignment -ObjectId $objectId -Scope $saId -ErrorVariable notPresent -ErrorAction SilentlyContinue + + if (-not $existingRoleAssignments) { + Write-Host "Creating role assignments for object" $objectId + $output = New-AzRoleAssignment -ObjectId $objectId -Scope $saId -RoleDefinitionId $storageBlobDataContributorRoleDefinitionId + $output = New-AzRoleAssignment -ObjectId $objectId -Scope $saId -RoleDefinitionId $contributorRoleDefinitionId + } +} + <# .Synopsis Initialises the infrastructure for the migrate project. @@ -117,9 +132,9 @@ function Initialize-AzMigrateReplicationInfrastructure { process { Import-Module Az.Resources - Import-Module Az.KeyVault Import-Module Az.Storage - Import-Module Az.ServiceBus + Import-Module Az.RecoveryServices + Import-Module $PSScriptRoot\Helper\AzStackHCICommonSettings.ps1 # Validate user specified target region $TargetRegion = $TargetRegion.ToLower() @@ -212,6 +227,9 @@ public static int hashForArtifact(String artifact) throw 'Azure Migrate appliance not configured. Setup Azure Migrate appliance before proceeding.' } $VaultName = $smsSolution.DetailExtendedDetail.AdditionalProperties.vaultId.Split("/")[8] + $VaultDetails = Get-AzRecoveryServicesVault -ResourceGroupName $ResourceGroupName -Name $VaultName + $isPublicScenario = $VaultDetails.Properties.PrivateEndpointStateForSiteRecovery -eq "None" + # Get all appliances and sites in the project from SDS solution. $sdsSolution = Get-AzMigrateSolution -MigrateProjectName $ProjectName -ResourceGroupName $ResourceGroupName -Name "Servers-Discovery-ServerDiscovery" @@ -241,14 +259,15 @@ public static int hashForArtifact(String artifact) foreach ($eachApp in $appMap.GetEnumerator()) { $SiteName = $eachApp.Value.Split("/")[8] $applianceName = $eachApp.Key - $HashCodeInput = $SiteName + $TargetRegion # User cannot change location if it's already set in mapping. $mappingName = "containermapping" $allFabrics = Get-AzMigrateReplicationFabric -ResourceGroupName $ResourceGroupName -ResourceName $VaultName foreach ($fabric in $allFabrics) { - if (($fabric.Property.CustomDetail.InstanceType -ceq "VMwareV2") -and ($fabric.Property.CustomDetail.VmwareSiteId.Split("/")[8] -ceq $SiteName)) { + if (($fabric.Property.CustomDetail.InstanceType -eq "VMwareV2") -and ($fabric.Property.CustomDetail.VmwareSiteId.Split("/")[8] -eq $SiteName)) { + $fabricName = $fabric.Name + $HashCodeInput = $fabric.Id $peContainers = Get-AzMigrateReplicationProtectionContainer -FabricName $fabric.Name -ResourceGroupName $ResourceGroupName -ResourceName $VaultName $peContainer = $peContainers[0] $existingMapping = Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName $ResourceGroupName -ResourceName $VaultName -FabricName $fabric.Name -ProtectionContainerName $peContainer.Name -MappingName $mappingName -ErrorVariable notPresent -ErrorAction SilentlyContinue @@ -256,6 +275,11 @@ public static int hashForArtifact(String artifact) $targetRegionMismatchExceptionMsg = $ProjectName + " is already configured for migrating servers to " + $TargetRegion + ". Target Region cannot be modified once configured." throw $targetRegionMismatchExceptionMsg } + + if (($isPublicScenario) -and ($CacheStorageAccountId) -and ($existingMapping) -and ($existingMapping.ProviderSpecificDetail.StorageAccountId -ne $CacheStorageAccountId)) { + $saMismatchExceptionMsg = $applianceName + " is already configured for migrating servers with storage account " + $existingMapping.ProviderSpecificDetail.StorageAccountId + ". Storage account cannot be modified once configured." + throw $saMismatchExceptionMsg + } } } @@ -269,265 +293,118 @@ public static int hashForArtifact(String artifact) Write-Host "Initiating Artifact Creation for Appliance: ", $applianceName $MigratePrefix = "migrate" - - if ([string]::IsNullOrEmpty($CacheStorageAccountId)) { + + if ($isPublicScenario) { # Phase 1 # Storage account - $LogStorageAcName = $MigratePrefix + "lsa" + $hash - $GateWayStorageAcName = $MigratePrefix + "gwsa" + $hash - $StorageType = "Microsoft.Storage/storageAccounts" - $StorageApiVersion = "2017-10-01" - $LogStorageProperties = @{ - encryption = @{ - services = @{ - blob = @{enabled = $true }; - file = @{enabled = $true }; - table = @{enabled = $true }; - queue = @{enabled = $true } - }; - keySource = "Microsoft.Storage" - }; - supportsHttpsTrafficOnly = $true - } - $ResourceTag = @{"Migrate Project" = $ProjectName } - $StorageSku = @{name = "Standard_LRS" } - $ResourceKind = "Storage" - - $lsaStorageAccount = Get-AzResource -ResourceGroupName $ResourceGroupName -Name $LogStorageAcName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$lsaStorageAccount) { - $output = New-AzResource -ResourceGroupName $ResourceGroupName -Location $TargetRegion -Properties $LogStorageProperties -ResourceName $LogStorageAcName -ResourceType $StorageType -ApiVersion $StorageApiVersion -Kind $ResourceKind -Sku $StorageSku -Tag $ResourceTag -Force - Write-Host $LogStringCreated, $LogStorageAcName - } - else { - Write-Host $LogStorageAcName, $LogStringSkipping - } - - $gwyStorageAccount = Get-AzResource -ResourceGroupName $ResourceGroupName -Name $GateWayStorageAcName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$gwyStorageAccount) { - $output = New-AzResource -ResourceGroupName $ResourceGroupName -Location $TargetRegion -Properties $LogStorageProperties -ResourceName $GateWayStorageAcName -ResourceType $StorageType -ApiVersion $StorageApiVersion -Kind $ResourceKind -Sku $StorageSku -Tag $ResourceTag -Force - Write-Host $LogStringCreated, $GateWayStorageAcName - } - else { - Write-Host $GateWayStorageAcName, $LogStringSkipping - } - - # Service bus namespace - $ServiceBusNamespace = $MigratePrefix + "sbns" + $hash - $ServiceBusType = "Microsoft.ServiceBus/namespaces" - $ServiceBusApiVersion = "2017-04-01" - $ServiceBusSku = @{ - name = "Standard"; - tier = "Standard" - } - $ServiceBusProperties = @{} - $ServieBusKind = "ServiceBusNameSpace" - - $serviceBusAccount = Get-AzResource -ResourceGroupName $ResourceGroupName -Name $ServiceBusNamespace -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$serviceBusAccount) { - $output = New-AzResource -ResourceGroupName $ResourceGroupName -Location $TargetRegion -Properties $ServiceBusProperties -ResourceName $ServiceBusNamespace -ResourceType $ServiceBusType -ApiVersion $ServiceBusApiVersion -Kind $ServieBusKind -Sku $ServiceBusSku -Tag $ResourceTag -Force - Write-Host $LogStringCreated, $ServiceBusNamespace - } - else { - Write-Host $ServiceBusNamespace, $LogStringSkipping - } - - # Key vault - $KeyVaultName = $MigratePrefix + "kv" + $hash - $KeyVaultType = "Microsoft.KeyVault/vaults" - $KeyVaultApiVersion = "2016-10-01" - $KeyVaultKind = "KeyVault" - - $existingKeyVaultAccount = Get-AzResource -ResourceGroupName $ResourceGroupName -Name $KeyVaultName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if ($existingKeyVaultAccount) { - Write-Host $KeyVaultName, $LogStringSkipping - } - else { - $tenantID = $context.Tenant.TenantId - $KeyVaultPermissions = @{ - keys = @("Get", "List", "Create", "Update", "Delete"); - secrets = @("Get", "Set", "List", "Delete"); - certificates = @("Get", "List"); - storage = @("get", "list", "delete", "set", "update", "regeneratekey", "getsas", - "listsas", "deletesas", "setsas", "recover", "backup", "restore", "purge") - } + if ([string]::IsNullOrEmpty($CacheStorageAccountId)) { + if (!$existingMapping) { + $ReplicationStorageAcName = $MigratePrefix + "rsa" + $hash + $StorageType = "Microsoft.Storage/storageAccounts" + $StorageApiVersion = "2017-10-01" + $ReplicationStorageProperties = @{ + encryption = @{ + services = @{ + blob = @{enabled = $true }; + file = @{enabled = $true }; + table = @{enabled = $true }; + queue = @{enabled = $true } + }; + keySource = "Microsoft.Storage" + }; + supportsHttpsTrafficOnly = $true + } + $ResourceTag = @{"Migrate Project" = $ProjectName } + $StorageSku = @{name = "Standard_LRS" } + $ResourceKind = "Storage" + + $replicationStorageAccount = Get-AzResource -ResourceGroupName $ResourceGroupName -Name $ReplicationStorageAcName -ErrorVariable notPresent -ErrorAction SilentlyContinue + if (!$replicationStorageAccount) { + $output = New-AzResource -ResourceGroupName $ResourceGroupName -Location $TargetRegion -Properties $ReplicationStorageProperties -ResourceName $ReplicationStorageAcName -ResourceType $StorageType -ApiVersion $StorageApiVersion -Kind $ResourceKind -Sku $StorageSku -Tag $ResourceTag -Force + Write-Host $LogStringCreated, $ReplicationStorageAcName + } + elseif ($replicationStorageAccount.Location -ne $TargetRegion){ + throw "Storage account with name '$($ReplicationStorageAcName)' already exists in '$($replicationStorageAccount.Location)'. You can either migrate to '$($replicationStorageAccount.Location)' or delete the existing storage account." + } + else { + Write-Host $ReplicationStorageAcName, $LogStringSkipping + } - $CloudEnvironMent = $context.Environment.Name - $HyperVManagerAppId = "b8340c3b-9267-498f-b21a-15d5547fd85e" - if ($CloudEnvironMent -eq "AzureUSGovernment") { - $HyperVManagerAppId = "AFAE2AF7-62E0-4AA4-8F66-B11F74F56326" - } - $hyperVManagerObject = Get-AzADServicePrincipal -ApplicationID $HyperVManagerAppId - $accessPolicies = @() - $userAccessPolicy = @{ - "tenantId" = $tenantID; - "objectId" = $userObject.Id; - "permissions" = $KeyVaultPermissions - } - $hyperVAccessPolicy = @{ - "tenantId" = $tenantID; - "objectId" = $hyperVManagerObject.Id; - "permissions" = $KeyVaultPermissions - } - $accessPolicies += $userAccessPolicy - $accessPolicies += $hyperVAccessPolicy - - $allFabrics = Get-AzMigrateReplicationFabric -ResourceGroupName $ResourceGroupName -ResourceName $VaultName - $selectedFabricName = "" - foreach ($fabric in $allFabrics) { - if (($fabric.Property.CustomDetail.InstanceType -ceq "VMwareV2") -and ($fabric.Property.CustomDetail.VmwareSiteId.Split("/")[8] -ceq $SiteName)) { - $projectRSPObject = Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName $ResourceGroupName -ResourceName $VaultName - foreach ($projectRSP in $projectRSPObject) { - $projectRSPFabricName = $projectRSP.Id.Split("/")[10] - if (($projectRSP.FabricType -eq "VMwareV2") -and ($fabric.Name -eq $projectRSPFabricName)) { - $projectAccessPolicy = @{ - "tenantId" = $tenantID; - "objectId" = $projectRSP.ResourceAccessIdentityDetailObjectId; - "permissions" = $KeyVaultPermissions - } - $accessPolicies += $projectAccessPolicy - } - } + # Locks + $CommonLockName = $ProjectName + "lock" + $lockNotes = "This is in use by Azure Migrate project" + $rsaLock = Get-AzResourceLock -LockName $CommonLockName -ResourceName $ReplicationStorageAcName -ResourceType $StorageType -ResourceGroupName $ResourceGroupName -ErrorVariable notPresent -ErrorAction SilentlyContinue + if (!$rsaLock) { + $output = New-AzResourceLock -LockLevel CanNotDelete -LockName $CommonLockName -ResourceName $ReplicationStorageAcName -ResourceType $StorageType -ResourceGroupName $ResourceGroupName -LockNotes $lockNotes -Force + Write-Host $LogStringCreated, $CommonLockName, " for ", $ReplicationStorageAcName + } + else { + Write-Host $CommonLockName, " for ", $ReplicationStorageAcName, $LogStringSkipping } } - $keyVaultProperties = @{ - sku = @{ - family = "A"; - name = "standard" - }; - tenantId = $tenantID; - enabledForDeployment = $true; - enabledForDiskEncryption = $false; - enabledForTemplateDeployment = $true; - enableSoftDelete = $true; - accessPolicies = $accessPolicies - } - - $output = New-AzResource -ResourceGroupName $ResourceGroupName -Location $TargetRegion -Properties $keyVaultProperties -ResourceName $KeyVaultName -ResourceType $KeyVaultType -ApiVersion $KeyVaultApiVersion -Kind $KeyVaultKind -Tag $ResourceTag -Force - Write-Host $LogStringCreated, $KeyVaultName - } - - # Locks - $CommonLockName = $ProjectName + "lock" - $lockNotes = "This is in use by Azure Migrate project" - $lsaLock = Get-AzResourceLock -LockName $CommonLockName -ResourceName $LogStorageAcName -ResourceType $StorageType -ResourceGroupName $ResourceGroupName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$lsaLock) { - $output = New-AzResourceLock -LockLevel CanNotDelete -LockName $CommonLockName -ResourceName $LogStorageAcName -ResourceType $StorageType -ResourceGroupName $ResourceGroupName -LockNotes $lockNotes -Force - Write-Host $LogStringCreated, $CommonLockName, " for ", $LogStorageAcName } else { - Write-Host $CommonLockName, " for ", $LogStorageAcName, $LogStringSkipping + $ReplicationStorageAcName = $CacheStorageAccountId.Split("/")[-1] + $response = Get-AzResource -ResourceId $CacheStorageAccountId -ErrorVariable notPresent -ErrorAction SilentlyContinue + if ($response -eq $null) { + throw "Storage account '$($CacheStorageAccountId)' does not exist." + } } - $gwyLock = Get-AzResourceLock -LockName $CommonLockName -ResourceName $GateWayStorageAcName -ResourceType $StorageType -ResourceGroupName $ResourceGroupName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$gwyLock) { - $output = New-AzResourceLock -LockLevel CanNotDelete -LockName $CommonLockName -ResourceName $GateWayStorageAcName -ResourceType $StorageType -ResourceGroupName $ResourceGroupName -LockNotes $lockNotes -Force - Write-Host $LogStringCreated, $CommonLockName, " for ", $GateWayStorageAcName + # Intermediate phase + # RoleAssignments + $applianceDetails = Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName $ResourceGroupName -ResourceName $VaultName + if ($applianceDetails.length -eq 1){ + $applianceSpnId = $applianceDetails.ResourceAccessIdentityDetailObjectId } else { - Write-Host $CommonLockName, " for ", $LogStorageAcName, $LogStringSkipping + foreach ($appliance in $applianceDetails){ + if ($appliance.FabricFriendlyName -eq $fabricName){ + $applianceSpnId = $appliance.ResourceAccessIdentityDetailObjectId + } + } } - $sbsnsLock = Get-AzResourceLock -LockName $CommonLockName -ResourceName $ServiceBusNamespace -ResourceType $ServiceBusType -ResourceGroupName $ResourceGroupName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$sbsnsLock) { - $output = New-AzResourceLock -LockLevel CanNotDelete -LockName $CommonLockName -ResourceName $ServiceBusNamespace -ResourceType $ServiceBusType -ResourceGroupName $ResourceGroupName -LockNotes $lockNotes -Force - Write-Host $LogStringCreated, $CommonLockName, " for ", $ServiceBusNamespace - } - else { - Write-Host $CommonLockName, " for ", $ServiceBusNamespace, $LogStringSkipping - } + $vaultMsiPrincipalId = $VaultDetails.Identity.PrincipalId - $kvLock = Get-AzResourceLock -LockName $CommonLockName -ResourceName $KeyVaultName -ResourceType $KeyVaultType -ResourceGroupName $ResourceGroupName -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (!$kvLock) { - $output = New-AzResourceLock -LockLevel CanNotDelete -LockName $CommonLockName -ResourceName $KeyVaultName -ResourceType $KeyVaultType -ResourceGroupName $ResourceGroupName -LockNotes $lockNotes -Force - Write-Host $LogStringCreated, $CommonLockName, " for ", $KeyVaultName - } - else { - Write-Host $CommonLockName, " for ", $KeyVaultName, $LogStringSkipping + if ($applianceSpnId -eq $null) { + Write-Host "The appliance '$($applianceName)' does not have SPN enabled. Please enable and retry the operation." + continue } - # Intermediate phase - # RoleAssignments - - $roleDefinitionId = "81a9662b-bebf-436f-a333-f67b29880f12" - $kvspnid = Get-AzADServicePrincipal -DisplayName "Azure Key Vault" - $Id = "" - if($kvspnid -ne $null){ - $type = $kvspnid.GetType().BaseType - Write-Host $type.Name - if ($type.Name -eq "Array"){ - $Id = $kvspnid[0].Id - } - else{ - $Id = $kvspnid.Id - } - } - else{ - Write-Host "Unable to retrieve KV SPN Id" - } - Write-Host $Id - - $kvspnid = $Id - $gwyStorageAccount = Get-AzResource -ResourceName $GateWayStorageAcName -ResourceGroupName $ResourceGroupName - $lsaStorageAccount = Get-AzResource -ResourceName $LogStorageAcName -ResourceGroupName $ResourceGroupName - $gwyRoleAssignments = Get-AzRoleAssignment -ObjectId $kvspnid -Scope $gwyStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue - $lsaRoleAssignments = Get-AzRoleAssignment -ObjectId $kvspnid -Scope $lsaStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue - if (-not $lsaRoleAssignments) { - $output = New-AzRoleAssignment -ObjectId $kvspnid -Scope $lsaStorageAccount.Id -RoleDefinitionId $roleDefinitionId - } - if (-not $gwyRoleAssignments) { - $output = New-AzRoleAssignment -ObjectId $kvspnid -Scope $gwyStorageAccount.Id -RoleDefinitionId $roleDefinitionId + if ($vaultMsiPrincipalId -eq $null) { + Write-Host "The vault '$($VaultName)' does not have MSI enabled. Please enable system assigned MSI and retry the operation." + continue } - if (-not $lsaRoleAssignments -or -not $gwyRoleAssignments) { - for ($i = 1; $i -le 18; $i++) { - Write-Information "Waiting for Role Assignments to be available... $( $i * 10 ) seconds" -InformationAction Continue - Start-Sleep -Seconds 10 - - $gwyRoleAssignments = Get-AzRoleAssignment -ObjectId $kvspnid -Scope $gwyStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue - $lsaRoleAssignments = Get-AzRoleAssignment -ObjectId $kvspnid -Scope $lsaStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue - - if ($gwyRoleAssignments -and $lsaRoleAssignments) { - break - } + $rsaStorageAccount = Get-AzResource -ResourceName $ReplicationStorageAcName -ResourceGroupName $ResourceGroupName + for ($i = 1; $i -le 18; $i++) { + Write-Host "Waiting for" $ReplicationStorageAcName "to be available... $( $i * 10 ) seconds" -InformationAction Continue + Start-Sleep -Seconds 10 + $rsaStorageAccount = Get-AzResource -ResourceName $ReplicationStorageAcName -ResourceGroupName $ResourceGroupName + if ($rsaStorageAccount) { + break } } - # SA. SAS definition - - $gatewayStorageAccountSasSecretName = "gwySas" - $cacheStorageAccountSasSecretName = "cacheSas" - $regenerationPeriod = [System.Timespan]::FromDays(30) - $keyName = 'Key2' - Add-AzKeyVaultManagedStorageAccount -VaultName $KeyVaultName -AccountName $LogStorageAcName -AccountResourceId $lsaStorageAccount.Id -ActiveKeyName $keyName -RegenerationPeriod $regenerationPeriod - Add-AzKeyVaultManagedStorageAccount -VaultName $KeyVaultName -AccountName $GateWayStorageAcName -AccountResourceId $gwyStorageAccount.Id -ActiveKeyName $keyName -RegenerationPeriod $regenerationPeriod + Create-RoleAssignments $applianceSpnId $rsaStorageAccount.Id + Create-RoleAssignments $vaultMsiPrincipalId $rsaStorageAccount.Id - $lsasctx = New-AzStorageContext -StorageAccountName $LogStorageAcName -Protocol Https -StorageAccountKey $keyName - $gwysctx = New-AzStorageContext -StorageAccountName $GateWayStorageAcName -Protocol Https -StorageAccountKey $keyName + for ($i = 1; $i -le 18; $i++) { + Write-Information "Waiting for Role Assignments to be available... $( $i * 10 ) seconds" -InformationAction Continue + Start-Sleep -Seconds 10 - $lsaat = New-AzStorageAccountSasToken -Service blob, file, Table, Queue -ResourceType Service, Container, Object -Permission "racwdlup" -Protocol HttpsOnly -Context $lsasctx - $gwyat = New-AzStorageAccountSasToken -Service blob, file, Table, Queue -ResourceType Service, Container, Object -Permission "racwdlup" -Protocol HttpsOnly -Context $gwysctx + $applianceRoleAssignment = Get-AzRoleAssignment -ObjectId $applianceSpnId -Scope $rsaStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue + $vaultRoleAssignments = Get-AzRoleAssignment -ObjectId $vaultMsiPrincipalId -Scope $rsaStorageAccount.Id -ErrorVariable notPresent -ErrorAction SilentlyContinue - Set-AzKeyVaultManagedStorageSasDefinition -AccountName $LogStorageAcName -VaultName $KeyVaultName -Name $cacheStorageAccountSasSecretName -TemplateUri $lsaat -SasType 'account' -ValidityPeriod ([System.Timespan]::FromDays(30)) - Set-AzKeyVaultManagedStorageSasDefinition -AccountName $GateWayStorageAcName -VaultName $KeyVaultName -Name $gatewayStorageAccountSasSecretName -TemplateUri $gwyat -SasType 'account' -ValidityPeriod ([System.Timespan]::FromDays(30)) - - # Phase 2 - - # ServiceBusConnectionString - $serviceBusConnString = "ServiceBusConnectionString" - $serviceBusSecretObject = Get-AzKeyVaultSecret -VaultName $KeyVaultName -Name $serviceBusConnString -ErrorVariable notPresent -ErrorAction SilentlyContinue - if ($serviceBusSecretObject) { - Write-Host $serviceBusConnString, " for ", $applianceName, $LogStringSkipping - } - else { - $serviceBusRootKey = Get-AzServiceBusKey -ResourceGroupName $ResourceGroupName -Namespace $ServiceBusNamespace -Name "RootManageSharedAccessKey" - $secret = ConvertTo-SecureString -String $serviceBusRootKey.PrimaryConnectionString -AsPlainText -Force - $output = Set-AzKeyVaultSecret -VaultName $KeyVaultName -Name $serviceBusConnString -SecretValue $secret - Write-Host $LogStringCreated, $serviceBusConnString, " for ", $applianceName + if ($applianceRoleAssignment -and $vaultRoleAssignments) { + break + } } } else { - $response = Get-AzResource -ResourceId $CacheStorageAccountId -ErrorVariable notPresent -ErrorAction SilentlyContinue - if ($response -eq $null) { + $rsaStorageAccount = Get-AzResource -ResourceId $CacheStorageAccountId -ErrorVariable notPresent -ErrorAction SilentlyContinue + if ($rsaStorageAccount -eq $null) { throw "Storage account '$($CacheStorageAccountId)' does not exist." } @@ -558,7 +435,7 @@ public static int hashForArtifact(String artifact) $mappingName = "containermapping" $allFabrics = Get-AzMigrateReplicationFabric -ResourceGroupName $ResourceGroupName -ResourceName $VaultName foreach ($fabric in $allFabrics) { - if (($fabric.Property.CustomDetail.InstanceType -ceq "VMwareV2") -and ($fabric.Property.CustomDetail.VmwareSiteId.Split("/")[8] -ceq $SiteName)) { + if (($fabric.Property.CustomDetail.InstanceType -eq "VMwareV2") -and ($fabric.Property.CustomDetail.VmwareSiteId.Split("/")[8] -eq $SiteName)) { $peContainers = Get-AzMigrateReplicationProtectionContainer -FabricName $fabric.Name -ResourceGroupName $ResourceGroupName -ResourceName $VaultName $peContainer = $peContainers[0] $existingMapping = Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName $ResourceGroupName -ResourceName $VaultName -FabricName $fabric.Name -ProtectionContainerName $peContainer.Name -MappingName $mappingName -ErrorVariable notPresent -ErrorAction SilentlyContinue @@ -569,18 +446,9 @@ public static int hashForArtifact(String artifact) $providerSpecificInput = [Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.VMwareCbtContainerMappingInput]::new() $providerSpecificInput.InstanceType = "VMwareCbt" $providerSpecificInput.TargetLocation = $TargetRegion - if ([string]::IsNullOrEmpty($CacheStorageAccountId)) { - $keyVaultAccountDetails = Get-AzKeyVault -ResourceGroupName $ResourceGroupName -Name $KeyVaultName - $gwyStorageAccount = Get-AzResource -ResourceGroupName $ResourceGroupName -ResourceName $GateWayStorageAcName - $providerSpecificInput.KeyVaultId = $keyVaultAccountDetails.ResourceId - $providerSpecificInput.KeyVaultUri = $keyVaultAccountDetails.VaultUri - $providerSpecificInput.ServiceBusConnectionStringSecretName = $serviceBusConnString - $providerSpecificInput.StorageAccountId = $gwyStorageAccount.Id - $providerSpecificInput.StorageAccountSasSecretName = $GateWayStorageAcName + "-gwySas" - } - else { - $providerSpecificInput.StorageAccountId = $CacheStorageAccountId - } + + # If mapping does not exist, it means green field scenario. Hence, no service bus/KV required. + $providerSpecificInput.StorageAccountId = $rsaStorageAccount.Id $output = New-AzMigrateReplicationProtectionContainerMapping -FabricName $fabric.Name -MappingName $mappingName -ProtectionContainerName $peContainer.Name -ResourceGroupName $ResourceGroupName -ResourceName $VaultName -PolicyId $existingPolicyObject.Id -ProviderSpecificInput $providerSpecificInput -TargetProtectionContainerId "Microsoft Azure" Write-Host $LogStringCreated, $mappingName, " for ", $applianceName @@ -591,4 +459,4 @@ public static int hashForArtifact(String artifact) Write-Host "Finished successfully." return $true } -} +} \ No newline at end of file diff --git a/src/Migrate/Migrate.Autorest/generate-portal-ux.ps1 b/src/Migrate/Migrate.Autorest/generate-portal-ux.ps1 index 81e93b40e5f2..d242b43f576a 100644 --- a/src/Migrate/Migrate.Autorest/generate-portal-ux.ps1 +++ b/src/Migrate/Migrate.Autorest/generate-portal-ux.ps1 @@ -248,7 +248,16 @@ function New-MetadataForParameterSet() $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + if ($Null -eq $example) + { + $example = @() + } + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + if ($Null -eq $signature) + { + $signature = @() + } return @{ Path = $httpPath diff --git a/src/Migrate/Migrate.Autorest/test/Initialize-AzMigrateReplicationInfrastructure.Tests.ps1 b/src/Migrate/Migrate.Autorest/test/Initialize-AzMigrateReplicationInfrastructure.Tests.ps1 index 49a9bf76c078..feefc7309e99 100644 --- a/src/Migrate/Migrate.Autorest/test/Initialize-AzMigrateReplicationInfrastructure.Tests.ps1 +++ b/src/Migrate/Migrate.Autorest/test/Initialize-AzMigrateReplicationInfrastructure.Tests.ps1 @@ -11,9 +11,9 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'Initialize-AzMigrateReplicationInfrastructure' { - It 'Default' -skip { +Describe 'Initialize-AzMigrateReplicationInfrastructure' -Tag 'LiveOnly' { + It 'Default' { $response = Initialize-AzMigrateReplicationInfrastructure -ProjectName $env.srsinitinfraProjectName -ResourceGroupName $env.srsinitinfraResourceGroupName -Scenario $env.srsinitinfraScenario -TargetRegion $env.srsinitinfraTargetRegion $response[$response.length -1] | Should -Be $true } -} +} \ No newline at end of file diff --git a/src/Migrate/Migrate/Az.Migrate.psd1 b/src/Migrate/Migrate/Az.Migrate.psd1 index 39d8b8603a99..e65308a2a91b 100644 --- a/src/Migrate/Migrate/Az.Migrate.psd1 +++ b/src/Migrate/Migrate/Az.Migrate.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 31/10/2024 +# Generated on: 12/17/2024 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.5'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'Migrate.Autorest/bin/Az.Migrate.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Migrate.Autorest/Az.Migrate.format.ps1xml' @@ -123,7 +123,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','Migrate' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Migrate' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -150,7 +150,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Migrate/Migrate/ChangeLog.md b/src/Migrate/Migrate/ChangeLog.md index cda8d9054781..e437cc812e8f 100644 --- a/src/Migrate/Migrate/ChangeLog.md +++ b/src/Migrate/Migrate/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Added SBM support. ## Version 2.5.0 * Validated user login with Microsoft Managed System Identity (MSI) in `Initialize-AzMigrateHCIReplicationInfrastructure` diff --git a/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md b/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md index 3ff3aa882584..c505318c0a97 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md @@ -15,7 +15,7 @@ Get All discovered servers in a migrate project. ### List (Default) ``` Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-DisplayName ] - [-SourceMachineType ] [-SubscriptionId ] [-WhatIf] + [-SourceMachineType ] [-SubscriptionId ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -23,20 +23,20 @@ Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName ``` Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-DisplayName ] [-SourceMachineType ] [-SubscriptionId ] -ApplianceName - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Get ``` Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-SourceMachineType ] - [-SubscriptionId ] -Name [-WhatIf] [-Confirm] + [-SubscriptionId ] -Name [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### GetInSite ``` Get-AzMigrateDiscoveredServer -ProjectName -ResourceGroupName [-SourceMachineType ] - [-SubscriptionId ] -Name -ApplianceName + [-SubscriptionId ] -Name -ApplianceName [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -223,6 +223,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName Specifies the migrate project name. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateHCIJob.md b/src/Migrate/Migrate/help/Get-AzMigrateHCIJob.md index 172583b0248e..c4d45df4ec63 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateHCIJob.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateHCIJob.md @@ -15,31 +15,31 @@ Retrieves the status of an Azure Migrate job. ### ListByName (Default) ``` Get-AzMigrateHCIJob -ResourceGroupName -ProjectName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByName ``` Get-AzMigrateHCIJob -ResourceGroupName -ProjectName [-SubscriptionId ] -Name - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetById ``` Get-AzMigrateHCIJob [-SubscriptionId ] -ID [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetByInputObject ``` Get-AzMigrateHCIJob [-SubscriptionId ] -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ListById ``` Get-AzMigrateHCIJob [-SubscriptionId ] -ResourceGroupID -ProjectID - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -376,6 +376,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectID Specifies the Azure Migrate Project in which servers are replicating. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateHCIReplicationFabric.md b/src/Migrate/Migrate/help/Get-AzMigrateHCIReplicationFabric.md index 3db58e1ea59d..369d7f04f81f 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateHCIReplicationFabric.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateHCIReplicationFabric.md @@ -15,26 +15,26 @@ Gets the details of the fabric. ### List (Default) ``` Get-AzMigrateHCIReplicationFabric [-SubscriptionId ] [-ContinuationToken ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzMigrateHCIReplicationFabric -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzMigrateHCIReplicationFabric -ResourceGroupName [-SubscriptionId ] - [-ContinuationToken ] [-DefaultProfile ] + [-ContinuationToken ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzMigrateHCIReplicationFabric -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -226,6 +226,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateHCIServerReplication.md b/src/Migrate/Migrate/help/Get-AzMigrateHCIServerReplication.md index d90105d837d0..82d5a684aa93 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateHCIServerReplication.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateHCIServerReplication.md @@ -15,37 +15,37 @@ Retrieves the details of the replicating server. ### ListByName (Default) ``` Get-AzMigrateHCIServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByMachineName ``` Get-AzMigrateHCIServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] - -MachineName [-DefaultProfile ] [] + -MachineName [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByItemID ``` Get-AzMigrateHCIServerReplication [-SubscriptionId ] -TargetObjectID - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetBySDSID ``` Get-AzMigrateHCIServerReplication [-SubscriptionId ] -DiscoveredMachineId - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByInputObject ``` Get-AzMigrateHCIServerReplication [-SubscriptionId ] -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ListById ``` Get-AzMigrateHCIServerReplication [-SubscriptionId ] -ResourceGroupID -ProjectID - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -191,6 +191,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectID Specifies the Azure Migrate Project in which servers are replicating. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateJob.md b/src/Migrate/Migrate/help/Get-AzMigrateJob.md index 525565b2f1bd..59b0ab888120 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateJob.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateJob.md @@ -15,31 +15,31 @@ Retrieves the status of an Azure Migrate job. ### ListByName (Default) ``` Get-AzMigrateJob -ResourceGroupName -ProjectName [-SubscriptionId ] - [-Filter ] [-DefaultProfile ] [] + [-Filter ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByName ``` Get-AzMigrateJob -ResourceGroupName -ProjectName [-SubscriptionId ] -JobName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetById ``` Get-AzMigrateJob [-SubscriptionId ] -JobID [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetByInputObject ``` Get-AzMigrateJob [-SubscriptionId ] -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ListById ``` Get-AzMigrateJob [-SubscriptionId ] -ResourceGroupID -ProjectID [-Filter ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -215,6 +215,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectID Specifies the Azure Migrate Project in which servers are replicating. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateProject.md b/src/Migrate/Migrate/help/Get-AzMigrateProject.md index 9e1ddefa8044..700261895d89 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateProject.md @@ -14,7 +14,7 @@ Method to get a migrate project. ``` Get-AzMigrateProject -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the Azure Resource Group that migrate project is part of. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md index a01397675cab..2a71a443cc7b 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationFabric.md @@ -15,14 +15,14 @@ Gets the details of an Azure Site Recovery fabric. ### List (Default) ``` Get-AzMigrateReplicationFabric -ResourceGroupName -ResourceName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzMigrateReplicationFabric -ResourceGroupName -ResourceName -FabricName [-SubscriptionId ] [-Filter ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group where the recovery services vault is present. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md index 070b3657187e..bdf31b82d4cc 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationPolicy.md @@ -15,13 +15,13 @@ Gets the details of a replication policy. ### List (Default) ``` Get-AzMigrateReplicationPolicy -ResourceGroupName -ResourceName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzMigrateReplicationPolicy -ResourceGroupName -ResourceName -PolicyName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -92,6 +92,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group where the recovery services vault is present. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md index 5da18942a68e..c2edd6150718 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainer.md @@ -15,7 +15,7 @@ Gets the details of a protection container. ### List1 (Default) ``` Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,14 +23,14 @@ Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -Resourc ``` Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName -FabricName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzMigrateReplicationProtectionContainer -ResourceGroupName -ResourceName -FabricName -ProtectionContainerName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -97,6 +97,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProtectionContainerName Protection container name. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md index e7269d2a1231..252be95854c1 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationProtectionContainerMapping.md @@ -15,7 +15,7 @@ Gets the details of a protection container mapping. ### List1 (Default) ``` Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,14 +23,14 @@ Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName - ``` Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName -FabricName -ProtectionContainerName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName -ResourceName -FabricName -MappingName -ProtectionContainerName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProtectionContainerName Protection container name. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md b/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md index b2d57a52b362..580ceed7408c 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateReplicationRecoveryServicesProvider.md @@ -15,7 +15,7 @@ Gets the details of registered recovery services provider. ### List (Default) ``` Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -ResourceName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,7 +23,7 @@ Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -Re ``` Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName -ResourceName -FabricName -ProviderName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -77,6 +77,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProviderName Recovery services provider name. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md b/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md index 110295c2b3ba..3ac052024bc0 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateRunAsAccount.md @@ -15,13 +15,13 @@ Method to get run as account. ### List (Default) ``` Get-AzMigrateRunAsAccount -ResourceGroupName -SiteName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzMigrateRunAsAccount -ResourceGroupName -SiteName -AccountName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -89,6 +89,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md index 89a2b5b68492..2e41955e3d3d 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateServerReplication.md @@ -15,38 +15,38 @@ Retrieves the details of the replicating server. ### ListByName (Default) ``` Get-AzMigrateServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] - [-Filter ] [-SkipToken ] [-DefaultProfile ] + [-Filter ] [-SkipToken ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByMachineName ``` Get-AzMigrateServerReplication -ResourceGroupName -ProjectName [-SubscriptionId ] - -MachineName [-DefaultProfile ] [] + -MachineName [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetBySRSID ``` Get-AzMigrateServerReplication [-SubscriptionId ] -TargetObjectID [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetBySDSID ``` Get-AzMigrateServerReplication [-SubscriptionId ] -DiscoveredMachineId - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByInputObject ``` Get-AzMigrateServerReplication [-SubscriptionId ] -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ListById ``` Get-AzMigrateServerReplication [-SubscriptionId ] -ResourceGroupID -ProjectID - [-Filter ] [-SkipToken ] [-DefaultProfile ] + [-Filter ] [-SkipToken ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -295,6 +295,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectID Specifies the Azure Migrate Project in which servers are replicating. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateSite.md b/src/Migrate/Migrate/help/Get-AzMigrateSite.md index 41cd2a270d1a..e4bb45115212 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateSite.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateSite.md @@ -14,7 +14,7 @@ Method to get a site. ``` Get-AzMigrateSite -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Migrate/Migrate/help/Get-AzMigrateSolution.md b/src/Migrate/Migrate/help/Get-AzMigrateSolution.md index 802793a79b45..d8a5f52ea513 100644 --- a/src/Migrate/Migrate/help/Get-AzMigrateSolution.md +++ b/src/Migrate/Migrate/help/Get-AzMigrateSolution.md @@ -14,7 +14,7 @@ Gets a solution in the migrate project. ``` Get-AzMigrateSolution -MigrateProjectName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -84,6 +84,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the Azure Resource Group that migrate project is part of. diff --git a/src/Migrate/Migrate/help/Initialize-AzMigrateHCIReplicationInfrastructure.md b/src/Migrate/Migrate/help/Initialize-AzMigrateHCIReplicationInfrastructure.md index ebdcbfe15ad4..a2d34c8623f9 100644 --- a/src/Migrate/Migrate/help/Initialize-AzMigrateHCIReplicationInfrastructure.md +++ b/src/Migrate/Migrate/help/Initialize-AzMigrateHCIReplicationInfrastructure.md @@ -15,7 +15,7 @@ Initializes the infrastructure for the migrate project. ``` Initialize-AzMigrateHCIReplicationInfrastructure -ResourceGroupName -ProjectName -SourceApplianceName -TargetApplianceName [-CacheStorageAccountId ] - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -97,6 +97,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName Specifies the name of the Azure Migrate project to be used for server migration. diff --git a/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md b/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md index 5d42e6f1aa85..980a17c60bdb 100644 --- a/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md +++ b/src/Migrate/Migrate/help/Initialize-AzMigrateReplicationInfrastructure.md @@ -15,7 +15,7 @@ Initialises the infrastructure for the migrate project. ``` Initialize-AzMigrateReplicationInfrastructure -ResourceGroupName -ProjectName -Scenario -TargetRegion [-CacheStorageAccountId ] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -77,6 +77,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName Specifies the name of the Azure Migrate project to be used for server migration. diff --git a/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md b/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md index c69ac696e35a..7512aafda321 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateDiskMapping.md @@ -14,7 +14,7 @@ Creates a new disk mapping ``` New-AzMigrateDiskMapping -DiskID -IsOSDisk -DiskType [-DiskEncryptionSetID ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -97,6 +97,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Migrate/Migrate/help/New-AzMigrateHCIDiskMappingObject.md b/src/Migrate/Migrate/help/New-AzMigrateHCIDiskMappingObject.md index 5cbd06dedb6e..151a1921eb34 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateHCIDiskMappingObject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateHCIDiskMappingObject.md @@ -14,7 +14,7 @@ Creates a new disk mapping ``` New-AzMigrateHCIDiskMappingObject -DiskID -IsOSDisk -IsDynamic -Size - -Format [] + -Format [-ProgressAction ] [] ``` ## DESCRIPTION @@ -100,6 +100,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Size Specifies the disk size in GB. diff --git a/src/Migrate/Migrate/help/New-AzMigrateHCINicMappingObject.md b/src/Migrate/Migrate/help/New-AzMigrateHCINicMappingObject.md index 62b2ac77675d..d8b6a132086b 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateHCINicMappingObject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateHCINicMappingObject.md @@ -14,7 +14,7 @@ Creates an object to update NIC properties of a replicating server. ``` New-AzMigrateHCINicMappingObject -NicID [-TargetVirtualSwitchId ] - [-TargetTestVirtualSwitchId ] [-CreateAtTarget ] + [-TargetTestVirtualSwitchId ] [-CreateAtTarget ] [-ProgressAction ] [] ``` @@ -70,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -TargetTestVirtualSwitchId Specifies the test logical network ARM ID that the VMs will use. diff --git a/src/Migrate/Migrate/help/New-AzMigrateHCIServerReplication.md b/src/Migrate/Migrate/help/New-AzMigrateHCIServerReplication.md index 688af2c9a40a..7b85e2bccc86 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateHCIServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateHCIServerReplication.md @@ -18,7 +18,7 @@ New-AzMigrateHCIServerReplication -MachineId -TargetStoragePathId -TargetVMName -TargetVirtualSwitchId -OSDiskID [-TargetVMCPUCore ] [-TargetTestVirtualSwitchId ] [-IsDynamicMemoryEnabled ] [-TargetVMRam ] [-SubscriptionId ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByIdPowerUser @@ -27,7 +27,7 @@ New-AzMigrateHCIServerReplication -MachineId -TargetStoragePathId -TargetVMName [-TargetVMCPUCore ] [-IsDynamicMemoryEnabled ] [-TargetVMRam ] [-SubscriptionId ] -DiskToInclude -NicToInclude [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -213,6 +213,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md b/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md index fb395de861b1..6314fdbe2002 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateNicMapping.md @@ -15,7 +15,7 @@ Creates an object to update NIC properties of a replicating server. ``` New-AzMigrateNicMapping -NicID [-TargetNicSelectionType ] [-TargetNicSubnet ] [-TargetNicName ] [-TargetNicIP ] [-TestNicSubnet ] [-TestNicIP ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -54,6 +54,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -TargetNicIP Specifies the IP within the destination subnet to be used for the NIC. diff --git a/src/Migrate/Migrate/help/New-AzMigrateProject.md b/src/Migrate/Migrate/help/New-AzMigrateProject.md index 98416935a419..ab8895d3b381 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/New-AzMigrateProject.md @@ -14,7 +14,7 @@ Creates a new Migrate project. ``` New-AzMigrateProject -Name -ResourceGroupName -Location [-ETag ] - [-Property ] [-SubscriptionId ] + [-Property ] [-SubscriptionId ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -83,6 +83,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property Specifies the project properties. To construct, see NOTES section for PROPERTY properties and create a hash table. diff --git a/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md b/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md index e77f53e15674..92d21b74eeff 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md +++ b/src/Migrate/Migrate/help/New-AzMigrateReplicationPolicy.md @@ -15,7 +15,7 @@ The operation to create a replication policy. ``` New-AzMigrateReplicationPolicy -PolicyName -ResourceGroupName -ResourceName [-SubscriptionId ] [-ProviderSpecificInput ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProviderSpecificInput The ReplicationProviderSettings. To construct, see NOTES section for PROVIDERSPECIFICINPUT properties and create a hash table. diff --git a/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md b/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md index 2d9f687f0d6e..d900f54925b1 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateReplicationProtectionContainerMapping.md @@ -18,7 +18,7 @@ New-AzMigrateReplicationProtectionContainerMapping -FabricName -Mapping [-SubscriptionId ] [-PolicyId ] [-ProviderSpecificInput ] [-TargetProtectionContainerId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -141,6 +141,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProtectionContainerName Protection container name. diff --git a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md index 26ae660088ca..aa97fb226c17 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/New-AzMigrateServerReplication.md @@ -22,7 +22,7 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-NicTag ] [-DiskTag ] [-Tag ] [-TargetBootDiagnosticsStorageAccount ] [-DiskEncryptionSetID ] [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByIdPowerUser @@ -35,7 +35,7 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-NicTag ] [-DiskTag ] [-Tag ] [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] - -DiskToInclude [-DefaultProfile ] + -DiskToInclude [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -49,7 +49,7 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-NicTag ] [-DiskTag ] [-Tag ] [-TargetBootDiagnosticsStorageAccount ] [-DiskEncryptionSetID ] [-SubscriptionId ] - -InputObject [-DefaultProfile ] + -InputObject [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -64,7 +64,7 @@ New-AzMigrateServerReplication -LicenseType -TargetResourceGroupId ] [-Tag ] [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] -DiskToInclude -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -323,6 +323,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SqlServerLicenseType Specifies if Azure Hybrid benefit for SQL Server is applicable for the server to be migrated. diff --git a/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md b/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md index d528125e7bfa..dd3f6de73934 100644 --- a/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md +++ b/src/Migrate/Migrate/help/New-AzMigrateTestNicMapping.md @@ -13,7 +13,7 @@ Creates an object to update NIC properties of a test migrating server. ## SYNTAX ``` -New-AzMigrateTestNicMapping -NicID -TestNicSubnet +New-AzMigrateTestNicMapping -NicID -TestNicSubnet [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -53,6 +53,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -TestNicSubnet Specifies the Subnet name for the NIC in the destination Virtual Network to which the server needs to be test migrated. diff --git a/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md b/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md index bd3d85951b58..0c2dab6e67e4 100644 --- a/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md +++ b/src/Migrate/Migrate/help/Register-AzMigrateProjectTool.md @@ -15,7 +15,7 @@ Registers a tool with the migrate project. ``` Register-AzMigrateProjectTool -MigrateProjectName -ResourceGroupName [-SubscriptionId ] [-AcceptLanguage ] [-Tool ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -83,6 +83,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the Azure Resource Group that migrate project is part of. diff --git a/src/Migrate/Migrate/help/Remove-AzMigrateHCIServerReplication.md b/src/Migrate/Migrate/help/Remove-AzMigrateHCIServerReplication.md index 8ae2fbe8b4f9..baf66633a8d2 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateHCIServerReplication.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateHCIServerReplication.md @@ -15,14 +15,14 @@ Stops replication for the migrated server. ### ByID (Default) ``` Remove-AzMigrateHCIServerReplication -TargetObjectID [-SubscriptionId ] - [-ForceRemove ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-ForceRemove ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Remove-AzMigrateHCIServerReplication [-SubscriptionId ] -InputObject - [-ForceRemove ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-ForceRemove ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -161,6 +161,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Remove-AzMigrateProject.md b/src/Migrate/Migrate/help/Remove-AzMigrateProject.md index f48c69c53986..2c143b6a2ec9 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateProject.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateProject.md @@ -15,7 +15,7 @@ Deleting non-existent project is a no-operation. ``` Remove-AzMigrateProject -Name -ResourceGroupName [-SubscriptionId ] - [-AcceptLanguage ] [-DefaultProfile ] [-PassThru] + [-AcceptLanguage ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -97,6 +97,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the Azure Resource Group that migrate project is part of. diff --git a/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md index 4b3dfb032145..150249780e3a 100644 --- a/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Remove-AzMigrateServerReplication.md @@ -15,13 +15,13 @@ Stops replication for the migrated server. ### ByIDVMwareCbt (Default) ``` Remove-AzMigrateServerReplication -TargetObjectID [-SubscriptionId ] [-ForceRemove ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectVMwareCbt ``` Remove-AzMigrateServerReplication [-SubscriptionId ] -InputObject - [-ForceRemove ] [-DefaultProfile ] [] + [-ForceRemove ] [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -139,6 +139,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md index 64046e7d06f9..5f6c5846064d 100644 --- a/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Restart-AzMigrateServerReplication.md @@ -15,13 +15,13 @@ Restarts the replication for specified server. ### ByIDVMwareCbt (Default) ``` Restart-AzMigrateServerReplication -TargetObjectID [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectVMwareCbt ``` Restart-AzMigrateServerReplication [-SubscriptionId ] -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -123,6 +123,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md index e1b103335f94..3a3895ea4f5c 100644 --- a/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Resume-AzMigrateServerReplication.md @@ -15,13 +15,13 @@ Starts the replication that has been suspended. ### ByIDVMwareCbt (Default) ``` Resume-AzMigrateServerReplication -TargetObjectID [-DeleteMigratedResource] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObjectVMwareCbt ``` Resume-AzMigrateServerReplication [-DeleteMigratedResource] [-SubscriptionId ] - -InputObject [-DefaultProfile ] [-WhatIf] + -InputObject [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -140,6 +140,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md b/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md index 8ef16f8810c9..4491792c3cc9 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateDiskMapping.md @@ -14,7 +14,7 @@ Updates disk mapping ``` Set-AzMigrateDiskMapping -DiskID [-DiskName ] [-IsOSDisk ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -82,6 +82,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Migrate/Migrate/help/Set-AzMigrateHCIServerReplication.md b/src/Migrate/Migrate/help/Set-AzMigrateHCIServerReplication.md index 7615e8b4bc02..96be18ca22e7 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateHCIServerReplication.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateHCIServerReplication.md @@ -16,7 +16,7 @@ Updates the target properties for the replicating server. Set-AzMigrateHCIServerReplication -TargetObjectID [-TargetVMName ] [-TargetVMCPUCore ] [-IsDynamicMemoryEnabled ] [-DynamicMemoryConfig ] [-TargetVMRam ] [-NicToInclude ] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -169,6 +169,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The subscription Id. diff --git a/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md index ae2cd0dc8a54..ca6ecf466ff2 100644 --- a/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Set-AzMigrateServerReplication.md @@ -24,7 +24,7 @@ Set-AzMigrateServerReplication -TargetObjectID [-TargetVMName ] [-UpdateNicTag ] [-UpdateNicTagOperation ] [-UpdateDiskTag ] [-UpdateDiskTagOperation ] [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ByInputObjectVMwareCbt @@ -38,7 +38,7 @@ Set-AzMigrateServerReplication [-TargetVMName ] [-TargetDiskName ] [-UpdateNicTagOperation ] [-UpdateDiskTag ] [-UpdateDiskTagOperation ] [-TargetBootDiagnosticsStorageAccount ] [-SubscriptionId ] -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -192,6 +192,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SqlServerLicenseType Specifies if Azure Hybrid benefit for SQL Server is applicable for the server to be migrated. diff --git a/src/Migrate/Migrate/help/Start-AzMigrateHCIServerMigration.md b/src/Migrate/Migrate/help/Start-AzMigrateHCIServerMigration.md index 635d792ca819..e4191d1c8b13 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateHCIServerMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateHCIServerMigration.md @@ -15,13 +15,13 @@ Starts the migration for the replicating server. ### ByID (Default) ``` Start-AzMigrateHCIServerMigration -TargetObjectID [-TurnOffSourceServer] [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Start-AzMigrateHCIServerMigration [-TurnOffSourceServer] [-SubscriptionId ] - -InputObject [-DefaultProfile ] [-WhatIf] + -InputObject [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -158,6 +158,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md b/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md index 4fdd6e642598..998daa32b733 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateServerMigration.md @@ -15,14 +15,14 @@ Starts the migration for the replicating server. ### ByIDVMwareCbt (Default) ``` Start-AzMigrateServerMigration -TargetObjectID [-OsUpgradeVersion ] [-TurnOffSourceServer] - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectVMwareCbt ``` Start-AzMigrateServerMigration [-OsUpgradeVersion ] [-TurnOffSourceServer] [-SubscriptionId ] - -InputObject [-DefaultProfile ] + -InputObject [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -111,6 +111,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md b/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md index 976b922b267a..36934753f3a1 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateTestMigration.md @@ -16,14 +16,14 @@ Starts the test migration for the replicating server. ``` Start-AzMigrateTestMigration -TestNetworkID -TargetObjectID [-OsUpgradeVersion ] [-NicToUpdate ] [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ByInputObjectVMwareCbt ``` Start-AzMigrateTestMigration -TestNetworkID [-OsUpgradeVersion ] [-NicToUpdate ] [-SubscriptionId ] -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -158,6 +158,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md b/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md index 7297bf4a90db..47ecdf1dab1c 100644 --- a/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md +++ b/src/Migrate/Migrate/help/Start-AzMigrateTestMigrationCleanup.md @@ -15,13 +15,13 @@ Cleans up the test migration for the replicating server. ### ByIDVMwareCbt (Default) ``` Start-AzMigrateTestMigrationCleanup -TargetObjectID [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectVMwareCbt ``` Start-AzMigrateTestMigrationCleanup [-SubscriptionId ] -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -126,6 +126,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID. diff --git a/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md b/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md index 839e0fddd718..082fc01c12f8 100644 --- a/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md +++ b/src/Migrate/Migrate/help/Suspend-AzMigrateServerReplication.md @@ -15,13 +15,13 @@ Suspends the ongoing replication. ### ByIDVMwareCbt (Default) ``` Suspend-AzMigrateServerReplication -TargetObjectID [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObjectVMwareCbt ``` Suspend-AzMigrateServerReplication [-SubscriptionId ] -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -124,6 +124,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure Subscription ID.