New-AzureRmEventGridSubscription报告成功但Get-AzureRmEventGridSubscription失败

时间:2018-06-18 14:05:03

标签: azure azure-powershell

我在更新blob存储时创建了两个Azure功能触发器。当我运行该命令时,它报告没有失败,但如果我执行Get-AzureRmEventSubscription命令,它只显示一个新创建的触发器。

$azureFunctionNames = @("Function1", "Function2")
foreach ($azureFunctionName in $azureFunctionNames ) {
New-AzureRmEventGridSubscription -EventSubscriptionName $azureFunctionName -Endpoint $Endpointurl -ResourceId $storageId -EndpointType "WebHook" -IncludedEventType "Microsoft.Storage.BlobCreated"
}

没有报告失败,但是当我执行Get-AzureRmEventGridSubscription时,它只显示其中一个。最令人困惑的部分是我可以在门户网站上看到它们。

0 个答案:

没有答案