I am using the following python packages
azure-eventgrid 1.3.0
azure-mgmt-eventgrid 2.0.0
azure-storage-queue 2.0.1
azure-storage-common 2.0.0
When I try to create an event grid subscription inside an event grid domain it temporarily goes to provisioning state Creating but then promptly disappears:
body_content = {'properties': {'destination': {'endpointType': 'StorageQueue', 'properties': {'resourceId': '/subscriptions/254fa42b-cd01-4271-b0ea-5980003a7fa4/resourceGroups/rxarequinordemo/providers/Microsoft.Storage/storageAccounts/pahweilo', 'queueName': 'deeveaph'}}, 'filter': {'subjectBeginsWith': 'a/b', 'subjectEndsWith': '', 'isSubjectCaseSensitive': False}, 'labels': [], 'retryPolicy': {'maxDeliveryAttempts': 30, 'eventTimeToLiveInMinutes': 1440}}} ... 2019-07-05T07:49:23 2745 140320454567744 010:DEBUG urllib3.connectionpool connectionpool:393:_make_request https://management.azure.com:443 "PUT /subscriptions/254fa42b-cd01-4271-b0ea-5980003a7fa4/resourceGroups/rxarequinordemo/providers/Microsoft.EventGrid/domains/pahweilo/topics/allmsg/providers/Microsoft.EventGrid/eventSubscriptions/deeveaph?api-version=2019-01-01 HTTP/1.1" 201 854 ... 2019-07-05T07:49:23 2745 140320454567744 010:DEBUG urllib3.connectionpool connectionpool:393:_make_request https://management.azure.com:443 "GET /subscriptions/254fa42b-cd01-4271-b0ea-5980003a7fa4/resourceGroups/rxarequinordemo/providers/Microsoft.EventGrid/domains/pahweilo/topics/allmsg/providers/Microsoft.EventGrid/eventSubscriptions/deeveaph?api-version=2019-01-01 HTTP/1.1" 200 None 2019-07-05T07:49:23 2745 140320454567744 020:INFO root cli:335:do_grid_recv new_subscription = {'additional_properties': {}, 'id': '/subscriptions/254fa42b-cd01-4271-b0ea-5980003a7fa4/resourceGroups/rxarequinordemo/providers/Microsoft.EventGrid/domains/pahweilo/topics/allmsg/providers/Microsoft.EventGrid/eventSubscriptions/deeveaph', 'name': 'deeveaph', 'type': 'Microsoft.EventGrid/eventSubscriptions', 'topic': '/subscriptions/254fa42b-cd01-4271-b0ea-5980003a7fa4/resourceGroups/rxarequinordemo/providers/microsoft.eventgrid/domains/pahweilo/topics/allmsg', 'provisioning_state': 'Creating', 'destination': <azure.mgmt.eventgrid.models.storage_queue_event_subscription_destination_py3.StorageQueueEventSubscriptionDestination object at 0x7f9ed64dc048>, 'filter': <azure.mgmt.eventgrid.models.event_subscription_filter_py3.EventSubscriptionFilter object at 0x7f9ed64dc160>, 'labels': [], 'retry_policy': <azure.mgmt.eventgrid.models.retry_policy_py3.RetryPolicy object at 0x7f9ed64dc198>, 'dead_letter_destination': None} ... 2019-07-05T07:49:24 2745 140320454567744 010:DEBUG urllib3.connectionpool connectionpool:813:_new_conn Starting new HTTPS connection (1): management.azure.com:443 2019-07-05T07:49:25 2745 140320454567744 010:DEBUG urllib3.connectionpool connectionpool:393:_make_request https://management.azure.com:443 "GET /subscriptions/254fa42b-cd01-4271-b0ea-5980003a7fa4/resourceGroups/rxarequinordemo/providers/Microsoft.EventGrid/domains/pahweilo/topics/allmsg/providers/Microsoft.EventGrid/eventSubscriptions/deeveaph?api-version=2019-01-01 HTTP/1.1" 404 83 2019-07-05T07:49:25 2745 140320454567744 010:DEBUG msrest.exceptions exceptions:63:__init__ Event subscription doesn't exist.So either I am doing it wrong or it is not working correctly. Is there some place where I can see why the subscription dissapears?