I am not able to create an Event Grid Subscription for the action "Create new database from DacPac".
I have tried creating an Event Grid Subscription for the Resource Group that contains my SQL Server. I have enabled all events to send for the Resource Group and registered a webhook to send for the events on the resource group. I have tested the Event Grid Subscription, and it is sending webhooks for ResourceWriteSuccess, ResourceDeleteSuccess, etc. So I know the implementation between my application and Azure is functioning properly.
Here is the payload of the event I am trying to create an Event Grid Subscription for.
{
"authorization": {
"action": "Microsoft.Sql/servers/import/action",
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.Sql/servers/my-sql-server"
},
"caller": "00000000-0000-0000-0000-000000000000",
"channels": "Operation",
"claims": {
"aud": "https://management.azure.com/",
"iss": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/",
"iat": "1560193452",
"nbf": "1560193452",
"exp": "1560197352",
"aio": "82WgYJi2DHbwKEodlmt4/lNKdx2cDQA=",
"appid": "00000000-0000-0000-0000-000000000000",
"appidacr": "1",
"http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/00000000-0000-0000-0000-000000000000/",
"http://schemas.microsoft.com/identity/claims/objectidentifier": "00000000-0000-0000-0000-000000000000",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "00000000-0000-0000-0000-000000000000",
"http://schemas.microsoft.com/identity/claims/tenantid": "00000000-0000-0000-0000-000000000000",
"uti": "OzdZ2AA_HkCWRjLQ0E9hAQ",
"ver": "1.0"
},
"correlationId": "00000000-0000-0000-0000-000000000000",
"description": "",
"eventDataId": "00000000-0000-0000-0000-000000000000",
"eventName": {
"value": "EndRequest",
"localizedValue": "End request"
},
"category": {
"value": "Administrative",
"localizedValue": "Administrative"
},
"eventTimestamp": "2019-06-10T19:09:14.4117972Z",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.Sql/servers/my-sql-server/events/00000000-0000-0000-0000-000000000000/ticks/636957905544117972",
"level": "Informational",
"operationId": "5b1a45c6-297c-4c1e-81c5-31a10375a9e0",
"operationName": {
"value": "Microsoft.Sql/servers/import/action",
"localizedValue": "Create new database from DacPac"
},
"resourceGroupName": "my-resource-group",
"resourceProviderName": {
"value": "Microsoft.Sql",
"localizedValue": "Microsoft SQL"
},
"resourceType": {
"value": "Microsoft.Sql/servers",
"localizedValue": "Microsoft.Sql/servers"
},
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.Sql/servers/my-sql-server",
"status": {
"value": "Accepted",
"localizedValue": "Accepted"
},
"subStatus": {
"value": "Accepted",
"localizedValue": "Accepted (HTTP Status Code: 202)"
},
"submissionTimestamp": "2019-06-10T19:10:57.1665135Z",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"properties": {
"statusCode": "Accepted",
"serviceRequestId": "00000000-0000-0000-0000-000000000000"
},
"relatedEvents": []
}
I expected that creating an Event Grid Subscription for a resource group with all events enabled would send a webhook for the event shown above; however, I am not getting any webhooks indicating that this operation was performed successfully.