共用方式為


New-AzDataFactoryGatewayAuthKey

建立 Azure Data Factory 閘道的驗證金鑰。

語法

New-AzDataFactoryGatewayAuthKey
   [-DataFactoryName] <String>
   [-GatewayName] <String>
   [-KeyName] <String>
   [-ResourceGroupName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzDataFactoryGatewayAuthKey
   [-InputObject] <PSDataFactory>
   [-GatewayName] <String>
   [-KeyName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzDataFactoryGatewayAuthKey Cmdlet 會為指定的 Azure Data Factory 閘道建立閘道驗證密鑰。 您可以使用此金鑰向雲端服務註冊閘道。

範例

範例 1:建立 Key1 的閘道驗證金鑰

New-AzDataFactoryGatewayAuthKey -ResourceGroupName ADFResource -GatewayName 'MyGateway' -DataFactoryName MyADF -KeyName key1

Key1 : DMG@632e739e-1053-4070-9102-8591f067526e@41fcbc45-c594-4152-a8f1-fcbcd6452aea@wu@BH0EV9hu/o2IYGQzfYYD203XhdS6Tty
       fkYwYFbG6wBU=
Key2 :

此命令會為名為 MyGateway 的數據處理站閘道建立 Key1 的閘道驗證金鑰。

參數

-Confirm

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

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

-DataFactoryName

數據處理站名稱。

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

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-GatewayName

Data Factory 閘道名稱。

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

-InputObject

Data Factory 物件

類型:PSDataFactory
別名:DataFactory
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-KeyName

要重新產生之閘道驗證金鑰的名稱,分別是 『key1』 或 『key2』。

類型:String
接受的值:key1, key2
Position:3
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

資源組名。

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

-WhatIf

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

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

輸入

輸出

備註

  • 關鍵詞:azure、azurerm、arm、resource、management、manager、data、factory