我使用ARM模板和Powershell添加了eventhub自定义端点。但是对于这两种方法,当我在创建后尝试单击端点时,自定义端点都显示“未找到”。
状态显示为正常,但单击该状态后,尽管eventhub命名空间和eventhub处于活动状态且可访问,但仍未找到。
#read the keys/connectionstring of eventhub
$hubConnectionString1=(az eventhubs eventhub authorization-rule keys list --resource-group $resourceGroup --namespace-name $ehnamespace1 --eventhub-name $ehubname1 --name $SASname1 --query "primaryConnectionString")
# Create Custom endpoints Eventhub
az iot hub routing-endpoint create --resource-group $resourceGroup --hub-name $iotHubName --endpoint-name $endpointName1 --endpoint-type eventhub --endpoint-resource-group $resourceGroup --connection-string $hubConnectionString1 --endpoint-subscription-id $subscriptionID