Share via


az security automation-action-event-hub

Creates security automation event hub action.

Commands

Name Description Type Status
az security automation-action-event-hub create

Creates security automation event hub action.

Core GA

az security automation-action-event-hub create

Creates security automation event hub action.

az security automation-action-event-hub create --connection-string
                                               --event-hub-resource-id
                                               [--sas-policy-name]

Examples

Creates security automation event hub action.

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'

Required Parameters

--connection-string

The target Event Hub connection string (it will not be included in any response).

--event-hub-resource-id

The target Event Hub Azure Resource ID.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--sas-policy-name

The target Event Hub SAS policy name.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False