az eventgrid事件订阅创建在Powershell中不起作用

时间:2019-02-07 22:16:09

标签: azure powershell azure-logic-apps azure-cli

我正在尝试创建一个新的eventgrid主题webhook订阅,以通过Windows Powershell使用Azure CLI(v2.0.57)来触发logicapp终结点,但是它没有按预期工作。

我在Azure门户和CloudShell Web界面上都做同样的事情,而且效果很好。

命令如下:

az eventgrid event-subscription create --name "sopas" --source-resource-id "/subscriptions/id/resourceGroups/name/providers/Microsoft.EventGrid/topics/name" --endpoint-type "webhook" --endpoint "https://prod-16.westeurope.logic.azure.com:443/workflows/xxx/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=xxx" --debug --verbose

以下是Windows Powershell上的错误:

az : ERROR: The attempt to validate the provided endpoint https://prod-16.westeurope.logic.azure.com/workflows/371848cd5a2242cda3f88bfcce80962a/triggers/manual/paths/invoke failed. For more details, visit 
https://aka.ms/esvalidation.
At line:3 char:1
+ az eventgrid event-subscription create --name "sopas" --source-resour ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (ERROR: The atte...s/esvalidation.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

'sp' is not recognized as an internal or external command,
operable program or batch file.
'sv' is not recognized as an internal or external command,
operable program or batch file.
'sig' is not recognized as an internal or external command,
operable program or batch file.

我做错什么了吗?

有人可以帮忙吗?

0 个答案:

没有答案