-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{EventGrid} Add support for delivery attribute mapping, topicKind #17496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
EventGrid |
| c.argument('enable_advanced_filtering_on_arrays', is_preview=True, arg_type=get_three_state_flag(), | ||
| options_list=['--enable-advanced-filtering-on-arrays', '--enable-af-arr'], arg_group="Filtering", | ||
| help="Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parameter has already be defined in self.argument_context('eventgrid')(See Line227) so you don't need to redefine in any sub command of eventgrid~ #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add tests for new added parameters?
evelyn-ys
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add tests for new added parameters?
…Azure/azure-cli into vkukke/deliveryattrib+topickind
yes. in a separate PR as it requires some setup. |
Add support for delivery attribute
az eventgrid event-subscription create --name es1 --source-resource-id --endpoint --delivery-attribute-mapping staticattribname static staticattribvalue --delivery-attribute-mapping staticattribname2 static staticattribvalue2 true --delivery-attribute-mapping dynamicattribname dynamic dynamicattribvalue
az eventgrid event-subscription update --name es1 --source-resource-id --delivery-attribute-mapping staticattribname static staticattribvalue --delivery-attribute-mapping staticattribname2 static staticattribvalue2 true --delivery-attribute-mapping dynamicattribname dynamic dynamicattribvalue
These commands are exposed on az eventgrid partner topic event-subscription and az eventgrid system-topic event-subscription as well.
Get static attribute secrets
az eventgrid event-subscription show --name es1 --include-static-attribute-secret
Add support for creating topic for azure or azurearc
az eventgrid topic create -n -g --kind azure
az eventgrid topic create -n -g --kind azurearc --extended-location-name --extended-location-type customlocation
History Notes
[EventGrid] az eventgrid [partner topic | system-topic] event-subscription: Add support for delivery attribute
[EventGrid] az eventgrid topic create: Add support for creating topic for azure or azurearc