Skip to content

Conversation

@VidyaKukke
Copy link
Contributor

@VidyaKukke VidyaKukke commented Mar 29, 2021

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

@VidyaKukke VidyaKukke changed the title Add support for delivery attribute mapping, topicKind {EventGrid} Add support for delivery attribute mapping, topicKind Mar 29, 2021
@yonzhan yonzhan added this to the S185 milestone Mar 30, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 30, 2021

EventGrid

Comment on lines +366 to +368
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.")
Copy link
Member

@evelyn-ys evelyn-ys Mar 30, 2021

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

Copy link
Contributor Author

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?

Copy link
Member

@evelyn-ys evelyn-ys left a 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?

@VidyaKukke
Copy link
Contributor Author

Can you add tests for new added parameters?

yes. in a separate PR as it requires some setup.

@evelyn-ys evelyn-ys merged commit b457d86 into dev Mar 30, 2021
@jiasli jiasli deleted the vkukke/deliveryattrib+topickind branch August 5, 2021 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants