Set-AzCommunicationServiceNotificationHub
將 Azure 通知中樞連結至此通訊服務。
語法
Set-AzCommunicationServiceNotificationHub
-CommunicationServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-ConnectionString <String>
-NotificationHubResourceId <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzCommunicationServiceNotificationHub
-CommunicationServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-LinkNotificationHubParameter <ILinkNotificationHubParameters>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
將 Azure 通知中樞連結至此通訊服務。
範例
範例 1:以互動方式提供通知中樞詳細數據
Set-AzCommunicationServiceNotificationHub -CommunicationServiceName ContosoAcsResource2 -ResourceGroupName ContosoResourceProvider1 -ConnectionString "<notificationhub-connectionstring>" -NotificationHubResourceId "<notificationhub-resourceid>"
連結的通知中樞可讓 ACS 資源傳送特定事件的通知。
參數
-CommunicationServiceName
CommunicationService 資源的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ConnectionString
通知中樞的連接字串
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-LinkNotificationHubParameter
要連結至通訊服務的 Azure 通知中樞描述若要建構,請參閱 LINKNOTIFICATIONHUBPARAMETER 屬性的 NOTES 區段,並建立哈希表。
類型: | ILinkNotificationHubParameters |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-NotificationHubResourceId
通知中樞的資源標識碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。 此值必須是 UUID。
類型: | String |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
ILinkNotificationHubParameters