-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
EventGrid |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Can you add tests for In reply to: 885374697 |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
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') |
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.
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 |
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.
i think the issue is we can't create with the right kind hence done in 2 steps..
@ResourceGroupPreparer(name_prefix='clieventgrid', location='centraluseuap') | ||
@StorageAccountPreparer(name_prefix='clieventgrid', location='centraluseuap') |
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.
@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}') |
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.
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~
redirect to #18989 |
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