Skip to content
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

{EventGrid} - Fix delivery-identity, delivery-endpoint-type and delivery-identity-endpoint #18900

Closed
wants to merge 7 commits into from

Conversation

VidyaKukke
Copy link
Contributor

az eventgrid event-subscription update --name --source-resource-id --delivery-identity-endpoint-type eventhub --delivery-identity systemassigned --delivery-identity-endpoint

az eventgrid systemtopic event-subscription update --name --source-resource-id --delivery-identity-endpoint-type eventhub --delivery-identity systemassigned --delivery-identity-endpoint

az eventgrid partner event-subscription update --name --source-resource-id --delivery-identity-endpoint-type eventhub --delivery-identity systemassigned --delivery-identity-endpoint

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 16, 2021

EventGrid

@jsntcy
Copy link
Member

jsntcy commented Jul 22, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@evelyn-ys
Copy link
Member

evelyn-ys commented Jul 23, 2021

Can you add tests for --delivery-identity, --delivery-endpoint-type and --delivery-identity-endpoint so that we can detect bugs in advance instead of reported by customers?


In reply to: 885374697

@evelyn-ys
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Comment on lines +687 to +688
self.kwargs['source_resource_id'] = self.cmd('storage account create -g {rg} -n {sa} --sku Standard_LRS -l {location}').get_output_in_json()['id']
self.cmd('az storage account update -g {rg} -n {sa} --set kind=StorageV2')
Copy link
Member

@evelyn-ys evelyn-ys Jul 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.kwargs['source_resource_id'] = self.cmd('storage account create -g {rg} -n {sa} --sku Standard_LRS -l {location}').get_output_in_json()['id']
self.cmd('az storage account update -g {rg} -n {sa} --set kind=StorageV2')
self.kwargs['source_resource_id'] = self.cmd('storage account create -g {rg} -n {sa} --sku Standard_LRS --kind StorageV2 -l {location}').get_output_in_json()['id']
``` #Pending

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the issue is we can't create with the right kind hence done in 2 steps..

Comment on lines +673 to +674
@ResourceGroupPreparer(name_prefix='clieventgrid', location='centraluseuap')
@StorageAccountPreparer(name_prefix='clieventgrid', location='centraluseuap')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@ResourceGroupPreparer(name_prefix='clieventgrid', location='centraluseuap')
@StorageAccountPreparer(name_prefix='clieventgrid', location='centraluseuap')
@ResourceGroupPreparer(name_prefix='clieventgrid', location='centraluseuap')

@StorageAccountPreparer is not needed here since you created manually below.

self.check('provisioningState', 'Succeeded'),
])

self.cmd('az eventgrid event-subscription delete --source-resource-id {source_resource_id} --name {event_subscription_name}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.cmd('az eventgrid event-subscription delete --source-resource-id {source_resource_id} --name {event_subscription_name}')
self.cmd('az eventgrid event-subscription delete --source-resource-id {source_resource_id} --name {event_subscription_name}')
self.cmd('az storage account delete --ids {source_resource_id} -y')

Don't forget to clear storage account resource~

@jsntcy jsntcy closed this Jul 26, 2021
@jsntcy jsntcy reopened this Jul 26, 2021
@evelyn-ys
Copy link
Member

redirect to #18989

@evelyn-ys evelyn-ys closed this Jul 27, 2021
@jiasli jiasli deleted the vkukke/bugfix 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.

4 participants