Initialize-AzMigrateHCIReplicationInfrastructure

Initializes the infrastructure for the migrate project.

Syntax

Initialize-AzMigrateHCIReplicationInfrastructure
          -ResourceGroupName <String>
          -ProjectName <String>
          -SourceApplianceName <String>
          -TargetApplianceName <String>
          [-CacheStorageAccountId <String>]
          [-SubscriptionId <String>]
          [-DefaultProfile <PSObject>]
          [-PassThru]
          [-WhatIf]
          [-Confirm]
          [<CommonParameters>]

Description

The Initialize-AzMigrateHCIReplicationInfrastructure cmdlet initializes the infrastructure for the migrate project in AzStackHCI scenario.

Examples

Example 1: Initialize AzStackHCI replication infrastructure

Initialize-AzMigrateHCIReplicationInfrastructure -ProjectName "testproj" -ResourceGroupName "test-rg" -SourceApplianceName "testsrcapp" -TargetApplianceName "testtgtapp" -PassThru:$true

$true

Initialize AzStackHCI replication infrastructure. Cache storage account, replication policy, and replication extension will be created automatically.

Example 2: Initialize AzStackHCI replication infrastructure with custom cache storage account

$cacheStorageAccountId = "/subscriptions/xxx-xxx-xxxx/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/testSa"

Initialize-AzMigrateHCIReplicationInfrastructure -ProjectName "testproj" -ResourceGroupName "test-rg" -CacheStorageAccountId $cacheStorageAccountId -SourceApplianceName "testsrcapp" -TargetApplianceName "testtgtapp" -PassThru:$true

$true

Initialize AzStackHCI replication infrastructure with custom cache storage account. Replication policy and replication extension will be created automatically.

Parameters

-CacheStorageAccountId

Specifies the Storage Account ARM Id to be used for private endpoint scenario.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Returns true when the command succeeds

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProjectName

Specifies the name of the Azure Migrate project to be used for server migration.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Specifies the Resource Group of the Azure Migrate Project in the current subscription.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SourceApplianceName

Specifies the source appliance name for the AzStackHCI scenario.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

Azure Subscription ID.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetApplianceName

Specifies the target appliance name for the AzStackHCI scenario.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Boolean