我正在尝试使用 Azure CLI 命令为我的 Azure EventGrid 主题创建订阅,如下所示 -
az eventgrid topic event-subscription create -g myresname --topic-name mytopicname --name mysubscriptionname --endpoint https://xyz.azurewebsites.net/api/mywebhookdetails
我在 Azure CLI 的 BASH shell 中收到此错误
az eventgrid topic: error: argument _subcommand: invalid choice: event-subscription
是什么原因以及如何解决这个问题?