共用方式為


New-AzIntegrationAccountPartner

建立整合帳戶合作夥伴。

語法

New-AzIntegrationAccountPartner
   -ResourceGroupName <String>
   -Name <String>
   -PartnerName <String>
   [-PartnerType <String>]
   -BusinessIdentities <Object>
   [-Metadata <Object>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzIntegrationAccountPartner Cmdlet 會建立整合帳戶夥伴。 此 Cmdlet 會傳回代表整合帳戶夥伴的物件。 指定整合帳戶名稱、資源組名、合作夥伴名稱和合作夥伴身分識別。 您在命令列指定的樣本參數檔案值優先於範本參數物件中的範本參數值。 此模組支援動態參數。 若要使用動態參數,請在 命令中輸入它。 若要探索動態參數的名稱,請在 Cmdlet 名稱後面輸入連字元 (-),然後按 Tab 鍵重複迴圈查看可用的參數。 如果您省略必要的範本參數,Cmdlet 會提示您輸入值。

範例

範例 1:建立整合帳戶合作夥伴

$BusinessIdentities = @("ZZ","AA"),@("XX","GG")
New-AzIntegrationAccountPartner -ResourceGroupName "ResourceGroup11" -Name "IntegrationAccount31" -PartnerName "IntegrationAccountPartner22" -PartnerType "B2B" -BusinessIdentities $BusinessIdentities

Id                 : /subscriptions/<SubscriptionId>/resourceGroups/ResourceGroup11/providers/Microsoft.Logic/integrationAccounts/IntegrationAccount31/partners/IntegrationAccountPartner22
Name               : IntegrationAccountPartner22
Type               : Microsoft.Logic/integrationAccounts/partners
PartnerType        : B2B
CreatedTime        : 3/26/2016 7:29:30 PM
ChangedTime        : 3/26/2016 7:29:30 PM
BusinessIdentities : [{"Qualifier":"ZZ","Value":"AA"},{"Qualifier":"XX","Value":"GG"}]
Metadata           :

此命令會在指定的資源群組中建立名為 IntegrationAccountPartner22 的整合帳戶夥伴。

參數

-BusinessIdentities

指定整合帳戶合作夥伴的商務身分識別。 它是巢狀陣列,內部數位包含限定符做為第一個物件/字元串,而 Value 則為第二個物件/字元串。

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

-Confirm

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

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

-DefaultProfile

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

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

-Metadata

指定夥伴的元數據物件。

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

-Name

指定整合帳戶的名稱。

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

-PartnerName

指定整合帳戶夥伴的名稱。

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

-PartnerType

指定整合帳戶的類型。 此參數支援 B2B 類型。

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

-ResourceGroupName

指定資源群組的名稱。

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

-WhatIf

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

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

輸入

輸出