共用方式為


Register-AzDataMigrationIntegrationRuntime

在 Integration Runtime 上註冊 Sql 移轉服務

語法

Register-AzDataMigrationIntegrationRuntime
        -AuthKey <String>
        [-IntegrationRuntimePath <String>]
        [-PassThru]
        [-WhatIf]
        [-Confirm]
        [<CommonParameters>]

Description

在 Integration Runtime 上註冊 Sql 移轉服務

範例

範例 1:在自我裝載整合運行時間上註冊 Sql 移轉服務

$authKeys = Get-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService"
Register-AzDataMigrationIntegrationRuntime -AuthKey $authKeys.AuthKey1

Start to register IR with key: IR*********************yz6=
Integration Runtime registration is successful!

此命令會在自我裝載整合運行時間上註冊 Sql 移轉服務。

範例 2:安裝 Integration Runtime,並在其上註冊 Sql 移轉服務

$authKeys = Get-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService"
Register-AzDataMigrationIntegrationRuntime -AuthKey $authKeys.AuthKey1 -IntegrationRuntimePath "C:\Users\user\Downloads\IntegrationRuntime.msi"

Start Gateway installation
Succeed to install gateway
Start to register IR with key: IR*********************yz6=
Integration Runtime registration is successful!

此命令會安裝 Integration Runtime,並在其上註冊 Sql 移轉服務。

參數

-AuthKey

Sql 移轉服務的 AuthKey

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-IntegrationRuntimePath

SHIR msi 的路徑

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-PassThru

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 指令未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸出

Boolean