az security automation-action-event-hub
创建安全自动化事件中心作。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az security automation-action-event-hub create |
创建安全自动化事件中心作。 |
核心 | GA |
az security automation-action-event-hub create
创建安全自动化事件中心作。
az security automation-action-event-hub create --connection-string
--event-hub-resource-id
[--sas-policy-name]
示例
创建安全自动化事件中心作。
az security automation-action-event-hub create --event-hub-resource-id '/subscriptions/03b601f1-7eca-4496-8f8d-355219eee254/resourceGroups/sample-rg/providers/Microsoft.EventHub/namespaces/evenhubnamespace1/eventhubs/evenhubname1' --connection-string 'Endpoint=sb://dummy/;SharedAccessKeyName=dummy;SharedAccessKey=dummy;EntityPath=dummy' --sas-policy-name 'Send'
必需参数
--connection-string
目标事件中心连接字符串(它不会包含在任何响应中)。
--event-hub-resource-id
目标事件中心 Azure 资源 ID。
可选参数
--sas-policy-name
目标事件中心 SAS 策略名称。
全局参数
--debug
提高日志记录详细程度以显示所有调试日志。
--help -h
显示此帮助消息并退出。
--only-show-errors
仅显示错误,禁止显示警告。
--output -o
输出格式。
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
--subscription
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
--verbose
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。