diff --git a/src/SDKs/EventGrid/EventGrid.Tests/EventGrid.Tests.csproj b/src/SDKs/EventGrid/EventGrid.Tests/EventGrid.Tests.csproj
new file mode 100644
index 000000000000..31102c27b44a
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/EventGrid.Tests.csproj
@@ -0,0 +1,34 @@
+
+
+
+ EventGrid.Tests
+ EventGrid.Tests
+ 1.0.0-preview
+
+
+ netcoreapp1.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+
+
+
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/EventSubscriptionScenarioTests.cs b/src/SDKs/EventGrid/EventGrid.Tests/EventSubscriptionScenarioTests.cs
new file mode 100644
index 000000000000..84c7210ef87d
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/EventSubscriptionScenarioTests.cs
@@ -0,0 +1,290 @@
+using System.Linq;
+using System.Collections.Generic;
+using Microsoft.Azure.Management.EventGrid;
+using Microsoft.Azure.Management.EventGrid.Models;
+using Xunit;
+using Microsoft.Azure.Management.ResourceManager.Models;
+using Microsoft.Azure.Management.Storage;
+using Microsoft.Azure.Management.Storage.Models;
+using System;
+using Microsoft.Azure.Management.EventHub;
+using Microsoft.Azure.Management.EventHub.Models;
+using Microsoft.Rest.Azure;
+
+namespace EventGrid.Tests
+{
+ public class EventSubscriptionScenarioTests
+ {
+ private const string EventGridLocation = "westus2";
+
+ [Fact]
+ public void EventSubscriptionCRUDSubscriptionScope()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-eventsub-sub-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+
+ string eventSubscriptionName = context.GenerateName("essubeventsub");
+
+ string scope = $"/subscriptions/{client.SubscriptionId}";
+
+ EventSubscriptionCRUD(client, resourceGroup, eventSubscriptionName, scope, "Microsoft.Resources.Subscriptions", true, false, false);
+ }
+ }
+
+ [Fact]
+ public void EventSubscriptionCRUDResourceGroupScope()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-eventsub-rg-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+
+ string eventSubscriptionName = context.GenerateName("esrgeventsub");
+
+ string scope = $"/subscriptions/{client.SubscriptionId}/resourceGroups/{resourceGroup.Name}";
+
+ EventSubscriptionCRUD(client, resourceGroup, eventSubscriptionName, scope, "Microsoft.Resources.ResourceGroups", true, true, false);
+ }
+ }
+
+ [Fact(Skip = "Need to be a part of the preview program for Azure Storage events in Event Grid: https://aka.ms/storageevents")]
+ public void EventSubscriptionCRUDResourceScope_Storage()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-eventsub-sto-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+ StorageManagementClient storageClient = context.GetClient();
+
+ // Setup our target resource
+ string storageAccountName = context.GenerateName("egeventsubsto");
+ StorageAccount storageAccount = storageClient.StorageAccounts.Create(resourceGroup.Name, storageAccountName, new StorageAccountCreateParameters
+ {
+ Sku = new Microsoft.Azure.Management.Storage.Models.Sku {
+ Name = Microsoft.Azure.Management.Storage.Models.SkuName.StandardLRS
+ },
+ AccessTier = AccessTier.Hot,
+ Kind = Kind.BlobStorage,
+ Location = resourceGroup.Location
+ });
+ Assert.NotNull(storageAccount);
+ Assert.NotNull(storageAccount.Id);
+
+ string eventSubscriptionName = context.GenerateName("eseventsubsto");
+
+ string scope = storageAccount.Id;
+
+ EventSubscriptionCRUD(client, resourceGroup, eventSubscriptionName, scope, "Microsoft.Storage.StorageAccounts", true, true, true);
+ }
+ }
+
+ [Fact]
+ public void EventSubscriptionCRUDResourceScope_EventHub()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-eventsub-eh-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+ EventHubManagementClient eventHubClient = context.GetClient();
+
+ // Setup our target resource
+ string namespaceName = context.GenerateName("egeventsubns");
+ EHNamespace eventHubNS = eventHubClient.Namespaces.CreateOrUpdate(resourceGroup.Name, namespaceName, new EHNamespace
+ {
+ Location = resourceGroup.Location,
+ Sku = new Microsoft.Azure.Management.EventHub.Models.Sku
+ {
+ Name = "Basic"
+ }
+ });
+ Assert.NotNull(eventHubNS);
+ Assert.NotNull(eventHubNS.Id);
+
+ string eventSubscriptionName = context.GenerateName("eseventsubeh");
+
+ string scope = eventHubNS.Id;
+
+ EventSubscriptionCRUD(client, resourceGroup, eventSubscriptionName, scope, "Microsoft.Eventhub.Namespaces", false, true, true);
+ }
+ }
+
+ [Fact]
+ public void EventSubscriptionCRUDTopicScope()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-eventsub-top-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+
+ string triggerTopicName = context.GenerateName("esresparenttopic");
+
+ Topic triggerTopic = client.Topics.CreateOrUpdate(resourceGroup.Name, triggerTopicName, new Topic
+ {
+ Location = resourceGroup.Location
+ });
+ Assert.NotNull(triggerTopic);
+ Assert.NotNull(triggerTopic.Id);
+
+ string eventSubscriptionName = context.GenerateName("estopeventsub");
+
+ string scope = triggerTopic.Id;
+
+ EventSubscriptionCRUD(client, resourceGroup, eventSubscriptionName, scope, "Microsoft.EventGrid.Topics", false, true, true);
+ }
+ }
+
+ private void EventSubscriptionCRUD(EventGridManagementClient client, ResourceGroup resourceGroup,
+ string eventSubscriptionName,
+ string scope,
+ string topicType,
+ bool globalScoped,
+ bool resourceGroupScoped,
+ bool locationScoped)
+ {
+ try
+ {
+ const string AllIncludedEventType = "All";
+ // Create an event subscription with a destination and no filter
+ string originalDestinationEndpoint = "https://requestb.in/1a1wyat1";
+ string destinationEndpointType = EndpointType.WebHook;
+ EventSubscription createEventSub = client.EventSubscriptions.Create(scope, eventSubscriptionName, new EventSubscription
+ {
+ Destination = new EventSubscriptionDestination
+ {
+ EndpointType = destinationEndpointType,
+ EndpointUrl = originalDestinationEndpoint
+ }
+ });
+ Assert.NotNull(createEventSub);
+ Assert.NotNull(createEventSub.Filter); // No filter should be an 'all' filter
+ Assert.Equal(AllIncludedEventType, createEventSub.Filter.IncludedEventTypes.Single(), ignoreCase: true);
+ Assert.Equal(string.Empty, createEventSub.Filter.SubjectBeginsWith);
+ Assert.Equal(string.Empty, createEventSub.Filter.SubjectBeginsWith);
+ Assert.NotNull(createEventSub.Destination);
+ Assert.Equal(destinationEndpointType, createEventSub.Destination.EndpointType);
+ Assert.Equal(originalDestinationEndpoint, createEventSub.Destination.EndpointBaseUrl); // Url maps to base url in response
+
+ // Get the event subscription
+ EventSubscription getEventSub = client.EventSubscriptions.Get(scope, eventSubscriptionName);
+ Assert.NotNull(getEventSub);
+ Assert.NotNull(getEventSub.Filter);
+ Assert.Equal(AllIncludedEventType, getEventSub.Filter.IncludedEventTypes.Single(), ignoreCase: true);
+ Assert.Equal(string.Empty, getEventSub.Filter.SubjectBeginsWith);
+ Assert.Equal(string.Empty, getEventSub.Filter.SubjectBeginsWith);
+ Assert.NotNull(getEventSub.Destination);
+ Assert.Equal(destinationEndpointType, getEventSub.Destination.EndpointType);
+ Assert.Equal(originalDestinationEndpoint, getEventSub.Destination.EndpointBaseUrl);
+
+ string eventSubId = getEventSub.Id;
+
+ // Check if it is in the global list
+ IEnumerable globalEventSubs = client.EventSubscriptions.ListGlobalBySubscription();
+ Assert.True(globalScoped == globalEventSubs.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Check if it is in the resource group list if scoped to the resource group level
+ IEnumerable globalEventSubsByResourceGroup = client.EventSubscriptions.ListGlobalByResourceGroup(resourceGroup.Name);
+ Assert.True((resourceGroupScoped && globalScoped) == globalEventSubsByResourceGroup.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Check if it is in the regional list if scoped to a region
+ IEnumerable regionalEventSubs = client.EventSubscriptions.ListRegionalBySubscription(resourceGroup.Location);
+ Assert.True(locationScoped == regionalEventSubs.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Check if it is in the regional resource group list if scoped to a region and resource group level
+ IEnumerable regionalEventSubsByResourceGroup = client.EventSubscriptions.ListRegionalByResourceGroup(resourceGroup.Name, resourceGroup.Location);
+ Assert.True((resourceGroupScoped && locationScoped) == regionalEventSubsByResourceGroup.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Only check if we know the topicType to test
+ if (!string.IsNullOrWhiteSpace(topicType))
+ {
+ // Check if it is in the global list with the specified type
+ IEnumerable globalEventSubsByType = client.EventSubscriptions.ListGlobalBySubscriptionForTopicType(topicType);
+ Assert.True(globalScoped == globalEventSubsByType.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Check if it is in the resource group list if scoped to the resource group level with the specified type
+ IEnumerable globalEventSubsByResourceGroupAndType = client.EventSubscriptions.ListGlobalByResourceGroupForTopicType(resourceGroup.Name, topicType);
+ Assert.True((globalScoped && resourceGroupScoped) == globalEventSubsByResourceGroupAndType.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Check if it is in the regional list if scoped to a region with the specified type
+ IEnumerable regionalEventSubsByType = client.EventSubscriptions.ListRegionalBySubscriptionForTopicType(resourceGroup.Location, topicType);
+ Assert.True(locationScoped == regionalEventSubsByType.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+
+ // Check if it is in the regional resource group list if scoped to a region and resource group level with the specified type
+ IEnumerable regionalEventSubsByResourceGroupAndType = client.EventSubscriptions.ListRegionalByResourceGroupForTopicType(resourceGroup.Name, resourceGroup.Location, topicType);
+ Assert.True((resourceGroupScoped && locationScoped) == regionalEventSubsByResourceGroupAndType.Any(x => eventSubId.Equals(x.Id, StringComparison.OrdinalIgnoreCase)));
+ }
+
+ // Update just the destination
+ string newDestinationEndpoint = "https://requestb.in/109n35e1";
+ EventSubscription updateEventSub = client.EventSubscriptions.Update(scope, eventSubscriptionName, new EventSubscriptionUpdateParameters
+ {
+ Destination = new EventSubscriptionDestination
+ {
+ EndpointType = EndpointType.WebHook,
+ EndpointUrl = newDestinationEndpoint
+ }
+ });
+ Assert.NotNull(updateEventSub);
+ Assert.NotNull(updateEventSub.Filter);
+ Assert.Equal(AllIncludedEventType, updateEventSub.Filter.IncludedEventTypes.Single(), ignoreCase: true);
+ Assert.Equal(string.Empty, updateEventSub.Filter.SubjectBeginsWith);
+ Assert.Equal(string.Empty, updateEventSub.Filter.SubjectBeginsWith);
+ Assert.NotNull(updateEventSub.Destination);
+ Assert.Equal(destinationEndpointType, updateEventSub.Destination.EndpointType);
+ Assert.Equal(newDestinationEndpoint, updateEventSub.Destination.EndpointBaseUrl);
+
+ // Update the event subscription with a filter
+ string subjectEndsWithFilter = "newFilter";
+ string singleEventType = AllIncludedEventType;
+ EventSubscription updateFilteredEventSub = client.EventSubscriptions.Update(scope, eventSubscriptionName, new EventSubscriptionUpdateParameters
+ {
+ Filter = new EventSubscriptionFilter
+ {
+ IncludedEventTypes = new List { singleEventType },
+ SubjectEndsWith = subjectEndsWithFilter // Can only update ends with
+ }
+ });
+ Assert.NotNull(updateFilteredEventSub);
+ Assert.NotNull(updateFilteredEventSub.Filter);
+ Assert.Equal(singleEventType, updateFilteredEventSub.Filter.IncludedEventTypes.Single());
+ Assert.Equal(subjectEndsWithFilter, updateFilteredEventSub.Filter.SubjectEndsWith);
+ Assert.NotNull(updateFilteredEventSub.Destination);
+ Assert.Equal(destinationEndpointType, updateFilteredEventSub.Destination.EndpointType);
+ Assert.Equal(newDestinationEndpoint, updateFilteredEventSub.Destination.EndpointBaseUrl);
+
+ // Get event sub to make sure filter and destination exists
+ // Get the event subscription
+ EventSubscription getFilteredEventSub = client.EventSubscriptions.Get(scope, eventSubscriptionName);
+ Assert.NotNull(getFilteredEventSub);
+ Assert.NotNull(getFilteredEventSub.Filter);
+ Assert.Equal(singleEventType, getFilteredEventSub.Filter.IncludedEventTypes.Single());
+ Assert.Equal(subjectEndsWithFilter, getFilteredEventSub.Filter.SubjectEndsWith);
+ Assert.NotNull(getFilteredEventSub.Destination);
+ Assert.Equal(destinationEndpointType, getFilteredEventSub.Destination.EndpointType);
+ Assert.Equal(newDestinationEndpoint, getFilteredEventSub.Destination.EndpointBaseUrl);
+
+ // Do a dummy update with no payload to make sure it throws
+ Assert.Throws(() =>
+ {
+ client.EventSubscriptions.Update(scope, eventSubscriptionName, new EventSubscriptionUpdateParameters());
+ });
+
+ // Get the full url
+ EventSubscriptionFullUrl fullUrl = client.EventSubscriptions.GetFullUrl(scope, eventSubscriptionName);
+ Assert.NotNull(fullUrl);
+ Assert.NotNull(fullUrl.EndpointUrl);
+
+ }
+ finally
+ {
+ // Delete the event subscription
+ client.EventSubscriptions.Delete(scope, eventSubscriptionName);
+
+ // Confirm that if it doesn't exist, delete doesn't throw
+ client.EventSubscriptions.Delete(scope, eventSubscriptionName);
+ }
+ }
+ }
+}
+
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/OperationScenarioTests.cs b/src/SDKs/EventGrid/EventGrid.Tests/OperationScenarioTests.cs
new file mode 100644
index 000000000000..7fa9b7a225ed
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/OperationScenarioTests.cs
@@ -0,0 +1,34 @@
+using System.Linq;
+using System.Collections.Generic;
+using Microsoft.Azure.Management.EventGrid;
+using Microsoft.Azure.Management.EventGrid.Models;
+using Xunit;
+
+namespace EventGrid.Tests
+{
+ public class OperationScenarioTests
+ {
+ [Fact]
+ public void ListOperations()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ EventGridManagementClient client = context.GetClient();
+
+ // List operations
+ IEnumerable operations = client.Operations.List();
+ Assert.NotNull(operations);
+ Assert.True(operations.Any());
+ foreach(Operation op in operations)
+ {
+ Assert.NotNull(op.Name);
+ Assert.NotNull(op.Display);
+ Assert.NotNull(op.Display.Provider);
+ Assert.NotNull(op.Display.Resource);
+ Assert.NotNull(op.Display.Operation);
+ Assert.NotNull(op.Display.Description);
+ }
+ }
+ }
+ }
+}
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/Properties/AssemblyInfo.cs b/src/SDKs/EventGrid/EventGrid.Tests/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..051c0fecaf7c
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/Properties/AssemblyInfo.cs
@@ -0,0 +1,19 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+using Xunit;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("EventGrid.Tests")]
+[assembly: AssemblyTrademark("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("e3c824f2-a7b9-4e4a-b42a-3e191808e14b")]
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDResourceGroupScope.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDResourceGroupScope.json
new file mode 100644
index 000000000000..7374aae56f39
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDResourceGroupScope.json
@@ -0,0 +1,1517 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-rg-8538?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLXJnLTg1Mzg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-rg-8538\": \"2017-08-18 01:00:34Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "99"
+ ],
+ "x-ms-client-request-id": [
+ "ca004bad-3156-4a11-8523-f91b3f3c89a8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"name\": \"eg-eventsub-rg-8538\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-rg-8538\": \"2017-08-18 01:00:34Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "246"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:00:37 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "ffcabdb0-8436-46b4-a7c1-228a57d77bc6"
+ ],
+ "x-ms-correlation-request-id": [
+ "ffcabdb0-8436-46b4-a7c1-228a57d77bc6"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010038Z:ffcabdb0-8436-46b4-a7c1-228a57d77bc6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "178"
+ ],
+ "x-ms-client-request-id": [
+ "d5dd5485-5e39-492b-a302-48c5aef07253"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Creating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": null,\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "511"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:00:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/6846E1DB-C1D6-4D89-9B0D-E797105226F5?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "d549d355-cb1e-4b80-9766-44e9f5a38c92"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "c323e3d1-2058-450d-a665-e24dd57bc7af"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010041Z:c323e3d1-2058-450d-a665-e24dd57bc7af"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/6846E1DB-C1D6-4D89-9B0D-E797105226F5?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnNTdGF0dXMvNjg0NkUxREItQzFENi00RDg5LTlCMEQtRTc5NzEwNTIyNkY1P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/6846E1DB-C1D6-4D89-9B0D-E797105226F5?api-version=2017-06-15-preview\",\r\n \"name\": \"6846e1db-c1d6-4d89-9b0d-e797105226f5\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "fae8a838-ea66-4dcd-8cdc-672875cc9869"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "da149190-408f-47da-9008-8e364a73f78b"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010112Z:da149190-408f-47da-9008-8e364a73f78b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "038c4191-be1e-4715-badc-59a7ecb22103"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "50b293d1-0922-428f-a56a-3225a5c62eff"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010112Z:50b293d1-0922-428f-a56a-3225a5c62eff"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "70aa042d-65b2-4ac9-af27-4a822659c409"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "5ce8aa1f-7d5c-4558-9c62-399bf39e0ce5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "c77d1ac0-af56-45e0-8872-17295b4cd275"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010112Z:c77d1ac0-af56-45e0-8872-17295b4cd275"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "1def3d00-8396-4c27-a55a-20994c6fa803"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "11fa185e-20c8-49ab-806a-cebf4843ebee"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010148Z:11fa185e-20c8-49ab-806a-cebf4843ebee"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:19 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "19742e7a-a2ab-429c-b98d-d8b3fbfce7a3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-correlation-request-id": [
+ "2df48815-77ed-4fd0-bee1-dfc43514a6d0"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010219Z:2df48815-77ed-4fd0-bee1-dfc43514a6d0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "98bd8fc1-dba8-45a8-b00c-8d8d7c50670a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:19 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "13470f60-6e8a-43f3-af5d-30f4d502d1ee"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "04ce20ec-3caf-4327-b9a7-81b40ea2fb17"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010219Z:04ce20ec-3caf-4327-b9a7-81b40ea2fb17"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "33f4edcb-dd40-4ccb-8905-ea652ca8953c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5408\",\r\n \"name\": \"esrgeventsub5408\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub3549\",\r\n \"name\": \"essubeventsub3549\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9350\",\r\n \"name\": \"essubeventsub9350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9556\",\r\n \"name\": \"essubeventsub9556\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub8567\",\r\n \"name\": \"essubeventsub8567\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub844\",\r\n \"name\": \"essubeventsub844\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5935\",\r\n \"name\": \"esrgeventsub5935\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub4272\",\r\n \"name\": \"esrgeventsub4272\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteCancel\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/PubT\",\r\n \"name\": \"PubT\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub6276\",\r\n \"name\": \"esrgeventsub6276\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub1650\",\r\n \"name\": \"esrgeventsub1650\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5698\",\r\n \"name\": \"esrgeventsub5698\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub9094\",\r\n \"name\": \"esrgeventsub9094\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4d116c85-57ab-4f1f-88e3-18d856f4ed3b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "4e8ec6e9-3f4b-4b70-a285-4b54d9e98c16"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010113Z:4e8ec6e9-3f4b-4b70-a285-4b54d9e98c16"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXJnLTg1MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7a57a96e-0502-40a6-b4af-b6d9f90adcc4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d80ea000-4993-41b9-87e2-102128535360"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "7b385f1b-c282-4d02-9279-5ed7cd32440e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010113Z:7b385f1b-c282-4d02-9279-5ed7cd32440e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "aa99cc62-beb4-4181-b2be-394ca423d9dd"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/microsoft.eventhub/namespaces/egeventsubns6524\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/Microsoft.EventHub/namespaces/egeventsubns6524/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh5083\",\r\n \"name\": \"eseventsubeh5083\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/z62ub3z6\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/Rb1\",\r\n \"name\": \"Rb1\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/rfabyirf\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Log.Error\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/rb2\",\r\n \"name\": \"rb2\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/microsoft.eventgrid/topics/esresparenttopic8849\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/Microsoft.EventGrid/topics/esresparenttopic8849/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub1197\",\r\n \"name\": \"estopeventsub1197\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/microsoft.eventgrid/topics/esresparenttopic1018\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/Microsoft.EventGrid/topics/esresparenttopic1018/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub5350\",\r\n \"name\": \"estopeventsub5350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/microsoft.eventgrid/topics/esresparenttopic8175\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/Microsoft.EventGrid/topics/esresparenttopic8175/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub9403\",\r\n \"name\": \"estopeventsub9403\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "a01405f3-35b1-44f0-bfd1-3f8d154c46dc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "7b4f0769-8cb7-4e0d-a004-e61552a7c304"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010114Z:7b4f0769-8cb7-4e0d-a004-e61552a7c304"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXJnLTg1MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvbG9jYXRpb25zL3dlc3R1czIvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a9af3722-252f-40ed-b4f1-ddcad68ca0e4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "6329cb58-e641-4284-8b3d-8afc2fb05203"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "b47fee9f-2460-4d19-b6ad-6eda9bf2aaf6"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010115Z:b47fee9f-2460-4d19-b6ad-6eda9bf2aaf6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5SZXNvdXJjZUdyb3Vwcy9ldmVudFN1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "11ae8518-edb8-4c5e-9500-dc003f151a55"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5408\",\r\n \"name\": \"esrgeventsub5408\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5935\",\r\n \"name\": \"esrgeventsub5935\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub4272\",\r\n \"name\": \"esrgeventsub4272\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub6276\",\r\n \"name\": \"esrgeventsub6276\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub1650\",\r\n \"name\": \"esrgeventsub1650\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5698\",\r\n \"name\": \"esrgeventsub5698\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub9094\",\r\n \"name\": \"esrgeventsub9094\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:15 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "87bf1541-5934-4868-8685-49dc93de1bd7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "1380f1ba-919c-4b12-a1c9-0c56e1beabcf"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010116Z:1380f1ba-919c-4b12-a1c9-0c56e1beabcf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXJnLTg1MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvdG9waWNUeXBlcy9NaWNyb3NvZnQuUmVzb3VyY2VzLlJlc291cmNlR3JvdXBzL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "111a6778-6482-4f3f-a023-f6ed215fecb1"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:15 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "febdc40c-c8ec-4760-935d-add3574f9d38"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "5733d8ca-7b68-4a1e-819d-78f92b1e4027"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010116Z:5733d8ca-7b68-4a1e-819d-78f92b1e4027"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5SZXNvdXJjZUdyb3Vwcy9ldmVudFN1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b6d6976a-f50a-45d5-88ec-1e226fdd54ed"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:16 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "c3a13ab5-0966-4762-94b5-552044ab04a1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "ef8e6125-2528-484a-be47-56641bd112ea"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010117Z:ef8e6125-2528-484a-be47-56641bd112ea"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXJnLTg1MzgvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvbG9jYXRpb25zL3dlc3R1czIvdG9waWNUeXBlcy9NaWNyb3NvZnQuUmVzb3VyY2VzLlJlc291cmNlR3JvdXBzL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5d010da1-11be-4a69-87e3-5c28bd4ae024"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0d89575c-4bb5-4562-8793-17308fbab01f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "94946aee-5fe2-46db-8ba7-2d881031954b"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010117Z:94946aee-5fe2-46db-8ba7-2d881031954b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "142"
+ ],
+ "x-ms-client-request-id": [
+ "faf0f55b-9e9b-4d5d-b2c5-aa8b941e6425"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "581"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/CB662441-11BA-4235-BBE2-C211E8B1C0DC?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "120d28a0-7a2b-4354-bd79-21807f624ad5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "95f4d713-8150-4c5d-ac4f-d833d5822472"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010118Z:95f4d713-8150-4c5d-ac4f-d833d5822472"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"filter\": {\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "110"
+ ],
+ "x-ms-client-request-id": [
+ "fae2f44a-59a1-49e9-9c10-9a11de9fe97c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897\",\r\n \"name\": \"esrgeventsub5897\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "590"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/E1F6CE13-5AC1-4B3B-8000-6B0866CE68B9?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "361bbad5-b2fb-41e7-ae4f-dd6a21d9c1c0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "883ed9b6-ef75-4001-a6db-fff3b95725e1"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010149Z:883ed9b6-ef75-4001-a6db-fff3b95725e1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "2"
+ ],
+ "x-ms-client-request-id": [
+ "3cf4c754-037c-4153-bb95-0b3c2ba11d46"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"Message\": \"Invalid update fields\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "35"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "49b9b575-21ea-461e-9413-e966c286057b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1193"
+ ],
+ "x-ms-correlation-request-id": [
+ "efda5138-ca91-4085-aa4e-58d8cd04e1fc"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010220Z:efda5138-ca91-4085-aa4e-58d8cd04e1fc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/CB662441-11BA-4235-BBE2-C211E8B1C0DC?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnNTdGF0dXMvQ0I2NjI0NDEtMTFCQS00MjM1LUJCRTItQzIxMUU4QjFDMERDP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/CB662441-11BA-4235-BBE2-C211E8B1C0DC?api-version=2017-06-15-preview\",\r\n \"name\": \"cb662441-11ba-4235-bbe2-c211e8b1c0dc\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:01:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "403b0cef-5c64-45c5-9129-cca61e09d44e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "ba2cc425-8e62-4956-9c03-f9ff2e96465f"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010148Z:ba2cc425-8e62-4956-9c03-f9ff2e96465f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/E1F6CE13-5AC1-4B3B-8000-6B0866CE68B9?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnNTdGF0dXMvRTFGNkNFMTMtNUFDMS00QjNCLTgwMDAtNkIwODY2Q0U2OEI5P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/E1F6CE13-5AC1-4B3B-8000-6B0866CE68B9?api-version=2017-06-15-preview\",\r\n \"name\": \"e1f6ce13-5ac1-4b3b-8000-6b0866ce68b9\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:19 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "03adca56-7c6f-4d38-b836-2e59a733a9dc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "x-ms-correlation-request-id": [
+ "ce23e5a6-7e29-4f91-8418-25a8b02dbf16"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010219Z:ce23e5a6-7e29-4f91-8418-25a8b02dbf16"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897/getFullUrl?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3L2dldEZ1bGxVcmw/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "11aefef2-95a7-4675-adfb-819a3d45e572"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9a1b2a3c-0b62-4b4a-b2ce-8fcc620b14ae"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "4bc1f38b-675b-4a78-bc56-ada439a6aa1e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010220Z:4bc1f38b-675b-4a78-bc56-ada439a6aa1e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "81d7c243-a28e-480f-94e5-e6bea68b7c5c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1191"
+ ],
+ "x-ms-request-id": [
+ "cf5a86ac-774b-4784-8152-1527f69afd28"
+ ],
+ "x-ms-correlation-request-id": [
+ "cf5a86ac-774b-4784-8152-1527f69afd28"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010220Z:cf5a86ac-774b-4784-8152-1527f69afd28"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-8538/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5897?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1yZy04NTM4L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc3JnZXZlbnRzdWI1ODk3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ea882d45-d95f-4be9-b30c-f76a7958e65e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1190"
+ ],
+ "x-ms-request-id": [
+ "6c839d70-81a0-4a4e-b25e-7dc829ba3139"
+ ],
+ "x-ms-correlation-request-id": [
+ "6c839d70-81a0-4a4e-b25e-7dc829ba3139"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010221Z:6c839d70-81a0-4a4e-b25e-7dc829ba3139"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-rg-8538?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLXJnLTg1Mzg/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ab6c8773-2422-47c1-bc76-dec24fcff54b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:23 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1FRzoyREVWRU5UU1VCOjJEUkc6MkQ4NTM4LVdFU1RVUzIiLCJqb2JMb2NhdGlvbiI6Indlc3R1czIifQ?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1189"
+ ],
+ "x-ms-request-id": [
+ "2b5762ed-2841-4f42-92d9-ab99ac374bc3"
+ ],
+ "x-ms-correlation-request-id": [
+ "2b5762ed-2841-4f42-92d9-ab99ac374bc3"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010224Z:2b5762ed-2841-4f42-92d9-ab99ac374bc3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "EventSubscriptionCRUDResourceGroupScope": [
+ "eg-eventsub-rg-8538",
+ "esrgeventsub5897"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDResourceScope_EventHub.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDResourceScope_EventHub.json
new file mode 100644
index 000000000000..3b90641e413f
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDResourceScope_EventHub.json
@@ -0,0 +1,1648 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-eh-7251?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-eh-7251\": \"2017-08-18 01:04:58Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "99"
+ ],
+ "x-ms-client-request-id": [
+ "4fdf5c2e-9657-4ade-8dfe-499099d886d7"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251\",\r\n \"name\": \"eg-eventsub-eh-7251\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-eh-7251\": \"2017-08-18 01:04:58Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "246"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:05:01 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "0e077d8c-eb6d-497c-b7ff-66d857a0f8a8"
+ ],
+ "x-ms-correlation-request-id": [
+ "0e077d8c-eb6d-497c-b7ff-66d857a0f8a8"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010501Z:0e077d8c-eb6d-497c-b7ff-66d857a0f8a8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566?api-version=2017-04-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEh1Yi9uYW1lc3BhY2VzL2VnZXZlbnRzdWJuczE1NjY/YXBpLXZlcnNpb249MjAxNy0wNC0wMQ==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "68"
+ ],
+ "x-ms-client-request-id": [
+ "b4b8f613-b0c1-4f0e-a8c1-61608590b60c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventHub.EventHubManagementClient/2.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 1\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566\",\r\n \"name\": \"egeventsubns1566\",\r\n \"type\": \"Microsoft.EventHub/Namespaces\",\r\n \"location\": \"West US 2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"isAutoInflateEnabled\": false,\r\n \"maximumThroughputUnits\": 0,\r\n \"provisioningState\": \"Created\",\r\n \"metricId\": \"d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea:egeventsubns1566\",\r\n \"createdAt\": \"2017-08-18T01:05:07.3Z\",\r\n \"updatedAt\": \"2017-08-18T01:05:07.3Z\",\r\n \"serviceBusEndpoint\": \"https://egeventsubns1566.servicebus.windows.net:443/\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:05:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Service-Bus-Resource-Provider/SN1",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "03b5623b-2d60-4e6a-8f3c-ae127fd18f28_M5_M5"
+ ],
+ "Server-SB": [
+ "Service-Bus-Resource-Provider/SN1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "ce531c51-ed8c-43c9-bb9b-730964d44149"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010507Z:ce531c51-ed8c-43c9-bb9b-730964d44149"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566?api-version=2017-04-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEh1Yi9uYW1lc3BhY2VzL2VnZXZlbnRzdWJuczE1NjY/YXBpLXZlcnNpb249MjAxNy0wNC0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventHub.EventHubManagementClient/2.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 1\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566\",\r\n \"name\": \"egeventsubns1566\",\r\n \"type\": \"Microsoft.EventHub/Namespaces\",\r\n \"location\": \"West US 2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"isAutoInflateEnabled\": false,\r\n \"maximumThroughputUnits\": 0,\r\n \"provisioningState\": \"Succeeded\",\r\n \"metricId\": \"d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea:egeventsubns1566\",\r\n \"createdAt\": \"2017-08-18T01:05:07.3Z\",\r\n \"updatedAt\": \"2017-08-18T01:05:37.14Z\",\r\n \"serviceBusEndpoint\": \"https://egeventsubns1566.servicebus.windows.net:443/\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:05:37 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Service-Bus-Resource-Provider/SN1",
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "345ea668-22b7-4a5f-b5df-8e42a430bd8f_M5_M5"
+ ],
+ "Server-SB": [
+ "Service-Bus-Resource-Provider/SN1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "404c515d-a452-4117-9348-3dd7023f80cb"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010538Z:404c515d-a452-4117-9348-3dd7023f80cb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "178"
+ ],
+ "x-ms-client-request-id": [
+ "78189ef4-5e6a-42b9-bb66-5069dff77b51"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Creating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": null,\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "625"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:05:39 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/B887EAB2-9641-4ABE-8F8F-5917EF802E5D?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "c58f1757-b224-450d-9c88-862bd9c102b3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "255681c6-39a0-4b58-bd02-591f78368bb1"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010539Z:255681c6-39a0-4b58-bd02-591f78368bb1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/B887EAB2-9641-4ABE-8F8F-5917EF802E5D?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvQjg4N0VBQjItOTY0MS00QUJFLThGOEYtNTkxN0VGODAyRTVEP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/B887EAB2-9641-4ABE-8F8F-5917EF802E5D?api-version=2017-06-15-preview\",\r\n \"name\": \"b887eab2-9641-4abe-8f8f-5917ef802e5d\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:10 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "476472b8-a971-4b28-9b1d-663d582f5c57"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "571749e8-a167-4e37-90fd-afb4dad7d1fb"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010611Z:571749e8-a167-4e37-90fd-afb4dad7d1fb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:10 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "c60d2ce5-637a-4465-8d58-d8219ed7cc8c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "3a6b1968-c46c-49c1-96a0-a9a6716651fa"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010611Z:3a6b1968-c46c-49c1-96a0-a9a6716651fa"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "bce73ce9-27b4-408d-947c-55b7d5f01f4c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "81ea98ac-9486-47c7-a22e-3576c47cd537"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "d07513e2-1e65-4cea-8b60-12e85dcc0b57"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010611Z:d07513e2-1e65-4cea-8b60-12e85dcc0b57"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b3430c1a-42fd-458a-95b8-403f4b60eab4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "03b2692f-5549-46c1-a478-baf1eb75521c"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010649Z:03b2692f-5549-46c1-a478-baf1eb75521c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "dd640834-392b-477b-bb89-cd02e818999d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "d6d6916b-284c-4c1c-af82-2e6f963142dc"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010720Z:d6d6916b-284c-4c1c-af82-2e6f963142dc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a2ecb593-0463-49c1-bc22-79ad7e34cc98"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d664ad7d-6ff8-40e2-90c6-2d7b997e01ed"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "fe06bc9f-fb61-43f7-9fcd-5279a0154dd0"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010720Z:fe06bc9f-fb61-43f7-9fcd-5279a0154dd0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ef7875fa-0888-41a5-b6ce-15d0121b3840"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5408\",\r\n \"name\": \"esrgeventsub5408\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub3549\",\r\n \"name\": \"essubeventsub3549\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9350\",\r\n \"name\": \"essubeventsub9350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9556\",\r\n \"name\": \"essubeventsub9556\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub8567\",\r\n \"name\": \"essubeventsub8567\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub844\",\r\n \"name\": \"essubeventsub844\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5935\",\r\n \"name\": \"esrgeventsub5935\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub4272\",\r\n \"name\": \"esrgeventsub4272\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteCancel\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/PubT\",\r\n \"name\": \"PubT\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub6276\",\r\n \"name\": \"esrgeventsub6276\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub1650\",\r\n \"name\": \"esrgeventsub1650\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5698\",\r\n \"name\": \"esrgeventsub5698\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub9094\",\r\n \"name\": \"esrgeventsub9094\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "c0b26778-a2cc-432e-a79c-00201960e71f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "cfd94917-d43a-412d-8341-80ab60898d6c"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010612Z:cfd94917-d43a-412d-8341-80ab60898d6c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6a5e8e1d-7919-46e5-8567-bc7b42730595"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "86aa0c29-1b08-4ec9-a11e-d46fab948e47"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "3d0b7df1-0324-488c-956e-6937f0227bed"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010613Z:3d0b7df1-0324-488c-956e-6937f0227bed"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5ef8ea90-5566-42fd-b7b6-bae86e8ff67e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/microsoft.eventhub/namespaces/egeventsubns6524\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/Microsoft.EventHub/namespaces/egeventsubns6524/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh5083\",\r\n \"name\": \"eseventsubeh5083\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/z62ub3z6\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/Rb1\",\r\n \"name\": \"Rb1\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/rfabyirf\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Log.Error\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/rb2\",\r\n \"name\": \"rb2\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/microsoft.eventgrid/topics/esresparenttopic8849\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/Microsoft.EventGrid/topics/esresparenttopic8849/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub1197\",\r\n \"name\": \"estopeventsub1197\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/microsoft.eventgrid/topics/esresparenttopic1018\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/Microsoft.EventGrid/topics/esresparenttopic1018/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub5350\",\r\n \"name\": \"estopeventsub5350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/microsoft.eventgrid/topics/esresparenttopic8175\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/Microsoft.EventGrid/topics/esresparenttopic8175/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub9403\",\r\n \"name\": \"estopeventsub9403\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:13 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "e8e16a33-e79a-43af-9d71-8dab8008eea0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "48c6e2d9-f33e-41d0-be38-15ff83f6543f"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010614Z:48c6e2d9-f33e-41d0-be38-15ff83f6543f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvbG9jYXRpb25zL3dlc3R1czIvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "98cf03a8-5256-491f-88eb-ad83ff492b49"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "70bc49fd-34ed-48b6-8a03-a920ea0dc967"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "05b19faa-0a71-4aed-87c2-e74bb3e2a73d"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010614Z:05b19faa-0a71-4aed-87c2-e74bb3e2a73d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LkV2ZW50aHViLk5hbWVzcGFjZXMvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a25cc369-a103-4032-be8a-9c9a828ffc02"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:16 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "dd03ba52-101a-41df-8203-38a2d9acc55e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "d10a6500-b411-41e7-ad7d-b2a6ba7e3426"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010616Z:d10a6500-b411-41e7-ad7d-b2a6ba7e3426"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvdG9waWNUeXBlcy9NaWNyb3NvZnQuRXZlbnRodWIuTmFtZXNwYWNlcy9ldmVudFN1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7167ec7d-0dca-4555-8fa8-b3e2a289202f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:16 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "71c89363-3611-45cd-bac3-af661be39e9a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "5391507a-49df-4974-b7e6-deb9d4742955"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010616Z:5391507a-49df-4974-b7e6-deb9d4742955"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.Eventhub.Namespaces/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL3RvcGljVHlwZXMvTWljcm9zb2Z0LkV2ZW50aHViLk5hbWVzcGFjZXMvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "af633948-d90c-47d5-8bfa-104d63fa811b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/microsoft.eventhub/namespaces/egeventsubns6524\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/Microsoft.EventHub/namespaces/egeventsubns6524/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh5083\",\r\n \"name\": \"eseventsubeh5083\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "36513fac-d2e7-40d3-9001-0d40c006bcac"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "b7515e48-8ef8-4842-bd2c-7b0343ea198d"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010618Z:b7515e48-8ef8-4842-bd2c-7b0343ea198d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.Eventhub.Namespaces/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvbG9jYXRpb25zL3dlc3R1czIvdG9waWNUeXBlcy9NaWNyb3NvZnQuRXZlbnRodWIuTmFtZXNwYWNlcy9ldmVudFN1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d2fcc686-9ae9-48eb-9430-9d4fecfabab2"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "187bcab4-f988-4f20-8712-a474c458a65d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "22976832-24e0-464b-98b2-4710e142bacf"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010618Z:22976832-24e0-464b-98b2-4710e142bacf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "142"
+ ],
+ "x-ms-client-request-id": [
+ "8420695c-94c9-489d-818a-6ff79b8abc9a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "695"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/11FDE50E-5619-4673-89AA-EE3467ED9BB5?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "4c35ba45-3499-46c6-9348-f12282b7e13a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "456006ee-bb2a-41a1-ae4d-5271ab78f0d5"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010619Z:456006ee-bb2a-41a1-ae4d-5271ab78f0d5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"filter\": {\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "110"
+ ],
+ "x-ms-client-request-id": [
+ "7f332bf3-cdb2-4a7d-a4db-fa9ca9532246"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/microsoft.eventhub/namespaces/egeventsubns1566\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957\",\r\n \"name\": \"eseventsubeh8957\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "704"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/F17F596B-06BB-4AC0-8CFE-8E178BB4C13E?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "f50e7a29-acd9-490b-9adc-03e2a5a7727c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "1d073299-b51f-4bf7-9b2f-9cf1715818a6"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010650Z:1d073299-b51f-4bf7-9b2f-9cf1715818a6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "2"
+ ],
+ "x-ms-client-request-id": [
+ "70430f3b-27c1-4ce2-b60f-4b7e3d8cc05e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"Message\": \"Invalid update fields\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "35"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "5f99d6d4-79ed-4667-909c-6c327472a9ae"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "cf032990-f6a6-4d0f-8900-d275dc9472cf"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010721Z:cf032990-f6a6-4d0f-8900-d275dc9472cf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/11FDE50E-5619-4673-89AA-EE3467ED9BB5?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvMTFGREU1MEUtNTYxOS00NjczLTg5QUEtRUUzNDY3RUQ5QkI1P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/11FDE50E-5619-4673-89AA-EE3467ED9BB5?api-version=2017-06-15-preview\",\r\n \"name\": \"11fde50e-5619-4673-89aa-ee3467ed9bb5\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:06:49 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "a48dd3de-1c81-444f-9832-f4b62a5a6843"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "eb208118-07f9-43b1-82c8-71274df19440"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010649Z:eb208118-07f9-43b1-82c8-71274df19440"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/F17F596B-06BB-4AC0-8CFE-8E178BB4C13E?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvRjE3RjU5NkItMDZCQi00QUMwLThDRkUtOEUxNzhCQjRDMTNFP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/F17F596B-06BB-4AC0-8CFE-8E178BB4C13E?api-version=2017-06-15-preview\",\r\n \"name\": \"f17f596b-06bb-4ac0-8cfe-8e178bb4c13e\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:20 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0648bfe7-2429-4892-97f3-c658147ed2ff"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "a0638d0c-d8bb-4e2a-8761-343f801e6dad"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010720Z:a0638d0c-d8bb-4e2a-8761-343f801e6dad"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957/getFullUrl?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3L2dldEZ1bGxVcmw/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "433027c2-83c6-4560-845c-21a5c1d181a3"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "84fc2df6-380e-46f4-a72f-79f01f2026eb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "5fd0779f-f0c9-4d65-bf19-9c8d619eeee3"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010721Z:5fd0779f-f0c9-4d65-bf19-9c8d619eeee3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1889014d-4669-41d9-933c-84e3943cd9ca"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1193"
+ ],
+ "x-ms-request-id": [
+ "bc3073e5-d831-4ab5-a2b5-edb6f62601c8"
+ ],
+ "x-ms-correlation-request-id": [
+ "bc3073e5-d831-4ab5-a2b5-edb6f62601c8"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010721Z:bc3073e5-d831-4ab5-a2b5-edb6f62601c8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-7251/providers/Microsoft.EventHub/namespaces/egeventsubns1566/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh8957?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi1laC03MjUxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRIdWIvbmFtZXNwYWNlcy9lZ2V2ZW50c3VibnMxNTY2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucy9lc2V2ZW50c3ViZWg4OTU3P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e806ceb9-77e4-4226-8a9c-a7635fa94ba1"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:21 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1192"
+ ],
+ "x-ms-request-id": [
+ "091b964e-d7d3-446a-8708-c116b8bbf767"
+ ],
+ "x-ms-correlation-request-id": [
+ "091b964e-d7d3-446a-8708-c116b8bbf767"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010721Z:091b964e-d7d3-446a-8708-c116b8bbf767"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-eh-7251?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLWVoLTcyNTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "32e2b483-57a0-4312-aff1-06453aa8fa96"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:26 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1FRzoyREVWRU5UU1VCOjJERUg6MkQ3MjUxLVdFU1RVUzIiLCJqb2JMb2NhdGlvbiI6Indlc3R1czIifQ?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "317c32d9-c845-48bc-b959-a7a12a5d7b85"
+ ],
+ "x-ms-correlation-request-id": [
+ "317c32d9-c845-48bc-b959-a7a12a5d7b85"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010726Z:317c32d9-c845-48bc-b959-a7a12a5d7b85"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "EventSubscriptionCRUDResourceScope_EventHub": [
+ "eg-eventsub-eh-7251",
+ "egeventsubns1566",
+ "eseventsubeh8957"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDSubscriptionScope.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDSubscriptionScope.json
new file mode 100644
index 000000000000..758ad2ac2d0a
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDSubscriptionScope.json
@@ -0,0 +1,1517 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-sub-9704?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLXN1Yi05NzA0P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-sub-9704\": \"2017-08-18 01:07:30Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "100"
+ ],
+ "x-ms-client-request-id": [
+ "3c07748b-e248-47bb-9ac9-900b740c6441"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-sub-9704\",\r\n \"name\": \"eg-eventsub-sub-9704\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-sub-9704\": \"2017-08-18 01:07:30Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "249"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-request-id": [
+ "0d3c16f8-2682-4f16-88a7-1285d7e40714"
+ ],
+ "x-ms-correlation-request-id": [
+ "0d3c16f8-2682-4f16-88a7-1285d7e40714"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010733Z:0d3c16f8-2682-4f16-88a7-1285d7e40714"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "178"
+ ],
+ "x-ms-client-request-id": [
+ "28f7773d-eb66-4cd2-9202-5a8f298b50d4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Creating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": null,\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "443"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:07:37 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/B5ED5BC8-9E73-4434-B23C-9E50DAE9CBC6?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "eb9d38c6-04de-457c-9804-563685b18c08"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1190"
+ ],
+ "x-ms-correlation-request-id": [
+ "abd5621d-3556-4fb0-9c89-48110e048f68"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010737Z:abd5621d-3556-4fb0-9c89-48110e048f68"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/B5ED5BC8-9E73-4434-B23C-9E50DAE9CBC6?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnNTdGF0dXMvQjVFRDVCQzgtOUU3My00NDM0LUIyM0MtOUU1MERBRTlDQkM2P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/B5ED5BC8-9E73-4434-B23C-9E50DAE9CBC6?api-version=2017-06-15-preview\",\r\n \"name\": \"b5ed5bc8-9e73-4434-b23c-9e50dae9cbc6\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "792f2568-7602-4bb3-a914-36a99b1b557d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "37e42ac6-2ca3-4885-899d-b253a1e4c8a5"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010808Z:37e42ac6-2ca3-4885-899d-b253a1e4c8a5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "acb1beaa-3ff7-4eac-80d9-b86fc97368e1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "0ea7ab48-b5b7-48a4-9c63-8ea0c1acf514"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010809Z:0ea7ab48-b5b7-48a4-9c63-8ea0c1acf514"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "14e049d8-ced8-48af-82fb-4f8ea532d004"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "985f6040-9894-43f9-9295-2dba03edf639"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "x-ms-correlation-request-id": [
+ "abf21bff-11cf-4ae5-aaf2-e18104f0d29e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010809Z:abf21bff-11cf-4ae5-aaf2-e18104f0d29e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:46 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "59f5a34e-7a85-466f-9626-cc710c4b10fb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14964"
+ ],
+ "x-ms-correlation-request-id": [
+ "74d1f623-c07f-442b-bf99-ffcc1723d358"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010846Z:74d1f623-c07f-442b-bf99-ffcc1723d358"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "2cb85c09-f008-457c-ba57-569acec0fc0b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14962"
+ ],
+ "x-ms-correlation-request-id": [
+ "e3f61b59-917f-4dac-84ca-3d01711dc431"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010917Z:e3f61b59-917f-4dac-84ca-3d01711dc431"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2d350d87-8895-431c-814a-dd22297d0c8b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "5beb285e-117c-4296-b4fb-bb129f6f702f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14961"
+ ],
+ "x-ms-correlation-request-id": [
+ "669d874d-8d97-4061-8139-0965f2592200"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010917Z:669d874d-8d97-4061-8139-0965f2592200"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1b7d17c2-42b5-45f4-95e8-d3e0aaa87322"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5408\",\r\n \"name\": \"esrgeventsub5408\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub3549\",\r\n \"name\": \"essubeventsub3549\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9350\",\r\n \"name\": \"essubeventsub9350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9556\",\r\n \"name\": \"essubeventsub9556\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub8567\",\r\n \"name\": \"essubeventsub8567\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub844\",\r\n \"name\": \"essubeventsub844\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5935\",\r\n \"name\": \"esrgeventsub5935\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub4272\",\r\n \"name\": \"esrgeventsub4272\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteCancel\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/PubT\",\r\n \"name\": \"PubT\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub6276\",\r\n \"name\": \"esrgeventsub6276\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub1650\",\r\n \"name\": \"esrgeventsub1650\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5698\",\r\n \"name\": \"esrgeventsub5698\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub9094\",\r\n \"name\": \"esrgeventsub9094\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "52350401-4194-45ae-af39-403f6c78b1cc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-correlation-request-id": [
+ "f0ad817b-bc0a-41a3-8248-22e8fe64bd17"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010809Z:f0ad817b-bc0a-41a3-8248-22e8fe64bd17"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-sub-9704/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXN1Yi05NzA0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0c92023b-2f0c-4ced-92dd-ad8117579860"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:09 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "501c5104-be12-40d8-a48b-dd8585db1309"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "c08d346b-18d5-4f3d-8aba-3f57877e93cd"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010809Z:c08d346b-18d5-4f3d-8aba-3f57877e93cd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d57709b5-8bb8-4fb8-849a-0b2ce149fd62"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/microsoft.eventhub/namespaces/egeventsubns6524\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/Microsoft.EventHub/namespaces/egeventsubns6524/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh5083\",\r\n \"name\": \"eseventsubeh5083\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/z62ub3z6\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/Rb1\",\r\n \"name\": \"Rb1\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/rfabyirf\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Log.Error\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/rb2\",\r\n \"name\": \"rb2\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/microsoft.eventgrid/topics/esresparenttopic8849\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/Microsoft.EventGrid/topics/esresparenttopic8849/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub1197\",\r\n \"name\": \"estopeventsub1197\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/microsoft.eventgrid/topics/esresparenttopic1018\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/Microsoft.EventGrid/topics/esresparenttopic1018/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub5350\",\r\n \"name\": \"estopeventsub5350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/microsoft.eventgrid/topics/esresparenttopic8175\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/Microsoft.EventGrid/topics/esresparenttopic8175/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub9403\",\r\n \"name\": \"estopeventsub9403\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "3039f159-610e-4470-90e7-f29db1879483"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14971"
+ ],
+ "x-ms-correlation-request-id": [
+ "a4dc6616-14fd-42f4-8d5b-372b91201cf3"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010811Z:a4dc6616-14fd-42f4-8d5b-372b91201cf3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-sub-9704/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXN1Yi05NzA0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0d82b8d0-244f-479c-b1a5-4c12bdec7a90"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:11 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "35c9c532-4149-4283-ac8a-10cd4a2ec026"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14970"
+ ],
+ "x-ms-correlation-request-id": [
+ "9a8cd8e4-3f5c-4e42-8786-cc293fd65fd1"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010811Z:9a8cd8e4-3f5c-4e42-8786-cc293fd65fd1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5TdWJzY3JpcHRpb25zL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d3c7e3b4-5ca2-443e-bf0d-e30b175ea154"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub3549\",\r\n \"name\": \"essubeventsub3549\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9350\",\r\n \"name\": \"essubeventsub9350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9556\",\r\n \"name\": \"essubeventsub9556\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub8567\",\r\n \"name\": \"essubeventsub8567\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub844\",\r\n \"name\": \"essubeventsub844\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteCancel\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/PubT\",\r\n \"name\": \"PubT\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "45275c8e-632c-48c0-bfad-1ecb79ecceee"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-correlation-request-id": [
+ "c62815b0-d8bf-4787-a220-3debebfaa0b7"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010812Z:c62815b0-d8bf-4787-a220-3debebfaa0b7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-sub-9704/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXN1Yi05NzA0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5TdWJzY3JpcHRpb25zL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dfd83754-b35f-4390-a6e3-2b43e4cf2cb4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:12 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ef5d7b49-dab9-4029-a760-941022654954"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-correlation-request-id": [
+ "4e115d26-7cd1-4c32-bbc0-723d7c0fbcf8"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010812Z:4e115d26-7cd1-4c32-bbc0-723d7c0fbcf8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.Resources.Subscriptions/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5TdWJzY3JpcHRpb25zL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "902101e6-0ae7-4d89-b9d4-bbc3ad0b3f9e"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:13 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ce81ad61-62bc-44cf-8125-1e0322414e86"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-correlation-request-id": [
+ "daeb87bd-3002-41f5-a214-994db2e9e37e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010814Z:daeb87bd-3002-41f5-a214-994db2e9e37e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-sub-9704/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.Resources.Subscriptions/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXN1Yi05NzA0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5TdWJzY3JpcHRpb25zL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "473ee7a4-eec7-49ee-8017-dd6e6b733e25"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4e2affc6-87f9-4d29-b303-2975015314cb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14966"
+ ],
+ "x-ms-correlation-request-id": [
+ "63e663b6-fa06-461b-b15c-5fbdd8816926"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010814Z:63e663b6-fa06-461b-b15c-5fbdd8816926"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "142"
+ ],
+ "x-ms-client-request-id": [
+ "533e43ec-45b6-4646-a67f-24b46648460b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "513"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:15 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/97F6F232-20B9-4742-9455-85BCF7B26DE1?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "a1be8e6e-438d-4214-835a-ed62948efac7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1189"
+ ],
+ "x-ms-correlation-request-id": [
+ "a7c29a57-0b54-41b6-af41-3eac31c855f4"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010815Z:a7c29a57-0b54-41b6-af41-3eac31c855f4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"filter\": {\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "110"
+ ],
+ "x-ms-client-request-id": [
+ "7e04279e-a3cc-417e-99b9-1c4d5f9ec462"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495\",\r\n \"name\": \"essubeventsub6495\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "522"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:46 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/EDB489C9-EC98-40E2-B9E0-A7F36C095F53?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "1d8fab73-d2c7-4f72-b476-855cbda05aec"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1188"
+ ],
+ "x-ms-correlation-request-id": [
+ "3df5ee7c-aa05-4f53-9b2c-80ef5936dbbf"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010847Z:3df5ee7c-aa05-4f53-9b2c-80ef5936dbbf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "2"
+ ],
+ "x-ms-client-request-id": [
+ "c55863d7-4d05-44a5-b8d7-097b2fbb22cd"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"Message\": \"Invalid update fields\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "35"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "ac9085d3-51ff-4cb6-a13e-407a02b68d68"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1187"
+ ],
+ "x-ms-correlation-request-id": [
+ "825ed7ed-5487-4526-9029-2b1cc990e41c"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010917Z:825ed7ed-5487-4526-9029-2b1cc990e41c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/97F6F232-20B9-4742-9455-85BCF7B26DE1?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnNTdGF0dXMvOTdGNkYyMzItMjBCOS00NzQyLTk0NTUtODVCQ0Y3QjI2REUxP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/97F6F232-20B9-4742-9455-85BCF7B26DE1?api-version=2017-06-15-preview\",\r\n \"name\": \"97f6f232-20b9-4742-9455-85bcf7b26de1\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:08:45 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9cf5c4f3-afac-46f9-86db-5f85546ed300"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14965"
+ ],
+ "x-ms-correlation-request-id": [
+ "1996dcb7-2c05-4b55-84f8-d393f2e99e5e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010845Z:1996dcb7-2c05-4b55-84f8-d393f2e99e5e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/EDB489C9-EC98-40E2-B9E0-A7F36C095F53?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnNTdGF0dXMvRURCNDg5QzktRUM5OC00MEUyLUI5RTAtQTdGMzZDMDk1RjUzP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/operationsStatus/EDB489C9-EC98-40E2-B9E0-A7F36C095F53?api-version=2017-06-15-preview\",\r\n \"name\": \"edb489c9-ec98-40e2-b9e0-a7f36c095f53\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:16 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "30353bf5-0b64-40c1-a91b-dcd7291ad6cd"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14963"
+ ],
+ "x-ms-correlation-request-id": [
+ "7d90408a-deab-4c01-bfed-3518861f04a0"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010917Z:7d90408a-deab-4c01-bfed-3518861f04a0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495/getFullUrl?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTUvZ2V0RnVsbFVybD9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ae79debf-1df4-4dfa-8440-b67525be84eb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9f8a592d-8338-4556-9409-b57172c28203"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1186"
+ ],
+ "x-ms-correlation-request-id": [
+ "0f17afbe-66e5-45fe-b5b0-fd06df84dc74"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010918Z:0f17afbe-66e5-45fe-b5b0-fd06df84dc74"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2c366cc4-8274-4a9a-b4f8-7069aafc48ae"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1185"
+ ],
+ "x-ms-request-id": [
+ "8761447d-d010-4130-b73d-5d5510e3ca07"
+ ],
+ "x-ms-correlation-request-id": [
+ "8761447d-d010-4130-b73d-5d5510e3ca07"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010918Z:8761447d-d010-4130-b73d-5d5510e3ca07"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub6495?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXNzdWJldmVudHN1YjY0OTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "639a3494-f8ba-413e-9806-bb91dd1d0074"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:18 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1184"
+ ],
+ "x-ms-request-id": [
+ "92564e82-e896-4dda-a614-4120b1dadf8b"
+ ],
+ "x-ms-correlation-request-id": [
+ "92564e82-e896-4dda-a614-4120b1dadf8b"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010918Z:92564e82-e896-4dda-a614-4120b1dadf8b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-sub-9704?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLXN1Yi05NzA0P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0a7c46dc-45db-4518-8de1-637a4703d39a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:09:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1FRzoyREVWRU5UU1VCOjJEU1VCOjJEOTcwNC1XRVNUVVMyIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMyIn0?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-request-id": [
+ "56ac4a68-e96d-45da-b408-f0b94a159a6d"
+ ],
+ "x-ms-correlation-request-id": [
+ "56ac4a68-e96d-45da-b408-f0b94a159a6d"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010922Z:56ac4a68-e96d-45da-b408-f0b94a159a6d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "EventSubscriptionCRUDSubscriptionScope": [
+ "eg-eventsub-sub-9704",
+ "essubeventsub6495"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDTopicScope.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDTopicScope.json
new file mode 100644
index 000000000000..2cf4427689cc
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.EventSubscriptionScenarioTests/EventSubscriptionCRUDTopicScope.json
@@ -0,0 +1,1698 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-top-809?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-top-809\": \"2017-08-18 01:02:27Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "99"
+ ],
+ "x-ms-client-request-id": [
+ "e0fcf4ee-d2fd-48c2-ad20-588976ae242f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809\",\r\n \"name\": \"eg-eventsub-top-809\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-eventsub-top-809\": \"2017-08-18 01:02:27Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "246"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1189"
+ ],
+ "x-ms-request-id": [
+ "30d04835-31e7-43b9-aef9-d39be2e4d261"
+ ],
+ "x-ms-correlation-request-id": [
+ "30d04835-31e7-43b9-aef9-d39be2e4d261"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010231Z:30d04835-31e7-43b9-aef9-d39be2e4d261"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDkvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvdG9waWNzL2VzcmVzcGFyZW50dG9waWM4MDMyP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "aadc15b0-179c-4de2-9754-afa0d0c13540"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"endpoint\": null\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032\",\r\n \"name\": \"esresparenttopic8032\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "314"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:02:35 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/68F53546-54EC-4216-B231-802ECA910F90?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "76de1b1f-65db-4321-987f-d1c6d9cda02d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "355afcc6-3d6c-4a65-9e94-d5fdb062e460"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010235Z:355afcc6-3d6c-4a65-9e94-d5fdb062e460"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/68F53546-54EC-4216-B231-802ECA910F90?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvNjhGNTM1NDYtNTRFQy00MjE2LUIyMzEtODAyRUNBOTEwRjkwP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/68F53546-54EC-4216-B231-802ECA910F90?api-version=2017-06-15-preview\",\r\n \"name\": \"68f53546-54ec-4216-b231-802eca910f90\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d9f879bf-7c13-453e-b471-550d4bfbc206"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "d737f8c9-f248-4c76-b22d-ece1ae2abbd7"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010307Z:d737f8c9-f248-4c76-b22d-ece1ae2abbd7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDkvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvdG9waWNzL2VzcmVzcGFyZW50dG9waWM4MDMyP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://esresparenttopic8032.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032\",\r\n \"name\": \"esresparenttopic8032\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:07 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "aea2e4b7-9341-442f-91fa-19ba03872612"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "5b980b2e-8d92-4fa3-8b90-b50bfcd9e09b"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010307Z:5b980b2e-8d92-4fa3-8b90-b50bfcd9e09b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "178"
+ ],
+ "x-ms-client-request-id": [
+ "348b1ad2-65f4-4fcb-a9ec-448d03aa73c7"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Creating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": null,\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "629"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:08 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/1BB59248-DEDD-4437-8F48-3F459C506EE4?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "1d55cb3a-2467-4678-a84a-873bf2be7a95"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "4bc8ed85-a204-41d8-ad6f-5a9873e8a774"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010308Z:4bc8ed85-a204-41d8-ad6f-5a9873e8a774"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/1BB59248-DEDD-4437-8F48-3F459C506EE4?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvMUJCNTkyNDgtREVERC00NDM3LThGNDgtM0Y0NTlDNTA2RUU0P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/1BB59248-DEDD-4437-8F48-3F459C506EE4?api-version=2017-06-15-preview\",\r\n \"name\": \"1bb59248-dedd-4437-8f48-3f459c506ee4\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:38 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "6803a800-92df-482e-805b-2d279bdebdc8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "7ea3fcc9-651f-4e08-bd36-1464c2e41dfb"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010338Z:7ea3fcc9-651f-4e08-bd36-1464c2e41dfb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:39 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "941d96cb-e7ec-4570-ac38-1855498f2134"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "c2b905be-4e28-4d85-84da-81379da220da"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010339Z:c2b905be-4e28-4d85-84da-81379da220da"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "80d7b5aa-3a34-4739-9fc6-ed3e681df9cb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:39 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "c878ad9d-371b-4826-94d5-fc0f7286a2ba"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "e775dde0-4e69-4b2d-bab9-dfea114ef8d3"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010339Z:e775dde0-4e69-4b2d-bab9-dfea114ef8d3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:16 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b2bc8507-5610-4621-866f-5433130afc39"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "c1ab589b-a9c8-4b43-b964-99ca75edad45"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010417Z:c1ab589b-a9c8-4b43-b964-99ca75edad45"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "84333aaf-3e8a-44f2-b4c0-b66fb1451604"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "1cd6f2e1-a724-4bc1-9be5-c3ccbcf6f181"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010448Z:1cd6f2e1-a724-4bc1-9be5-c3ccbcf6f181"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "fb7b8680-b6bc-4164-a778-b3eac5f0eb10"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "13cda182-e6de-47f4-974e-c313fc5748fc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "44276b0b-cbfb-4caa-aa86-b4af0d16cd34"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010448Z:44276b0b-cbfb-4caa-aa86-b4af0d16cd34"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "57a360e9-1552-4337-86f1-bc75182df7a0"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9889/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5408\",\r\n \"name\": \"esrgeventsub5408\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub3549\",\r\n \"name\": \"essubeventsub3549\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9350\",\r\n \"name\": \"essubeventsub9350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub9556\",\r\n \"name\": \"essubeventsub9556\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub8567\",\r\n \"name\": \"essubeventsub8567\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/essubeventsub844\",\r\n \"name\": \"essubeventsub844\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-261/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5935\",\r\n \"name\": \"esrgeventsub5935\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-3989/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub4272\",\r\n \"name\": \"esrgeventsub4272\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"Microsoft.Resources.ResourceWriteCancel\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/eventSubscriptions/PubT\",\r\n \"name\": \"PubT\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-953/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub6276\",\r\n \"name\": \"esrgeventsub6276\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-9508/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub1650\",\r\n \"name\": \"esrgeventsub1650\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-6687/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub5698\",\r\n \"name\": \"esrgeventsub5698\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-rg-4651/providers/Microsoft.EventGrid/eventSubscriptions/esrgeventsub9094\",\r\n \"name\": \"esrgeventsub9094\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:40 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "dd6a8b66-d246-48e7-89a4-74d1a31f6a9b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "038d5672-740c-44ec-a37a-82bc2117e2f5"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010341Z:038d5672-740c-44ec-a37a-82bc2117e2f5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDkvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4417c279-9836-4d90-a367-e0f51118e82d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:41 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "e1b2186d-2b9d-4049-becf-83d3461a7f3b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "f0051e21-a361-4b4d-bf97-abcb211d272a"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010341Z:f0051e21-a361-4b4d-bf97-abcb211d272a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL2V2ZW50U3Vic2NyaXB0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a6b0c869-25e6-4b38-acd2-9d70e7c3b0bb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/microsoft.eventhub/namespaces/egeventsubns6524\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-eh-9991/providers/Microsoft.EventHub/namespaces/egeventsubns6524/providers/Microsoft.EventGrid/eventSubscriptions/eseventsubeh5083\",\r\n \"name\": \"eseventsubeh5083\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/z62ub3z6\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/Rb1\",\r\n \"name\": \"Rb1\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/rfabyirf\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Log.Error\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/rb2\",\r\n \"name\": \"rb2\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/microsoft.eventgrid/topics/esresparenttopic8849\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/Microsoft.EventGrid/topics/esresparenttopic8849/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub1197\",\r\n \"name\": \"estopeventsub1197\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/microsoft.eventgrid/topics/esresparenttopic1018\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/Microsoft.EventGrid/topics/esresparenttopic1018/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub5350\",\r\n \"name\": \"estopeventsub5350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/microsoft.eventgrid/topics/esresparenttopic8175\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/Microsoft.EventGrid/topics/esresparenttopic8175/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub9403\",\r\n \"name\": \"estopeventsub9403\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:42 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b6eb6fce-4d8c-4f2f-b0ed-350a00850356"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "fea508a6-75a7-4c27-81ed-3cc93165da79"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010343Z:fea508a6-75a7-4c27-81ed-3cc93165da79"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/locations/westus2/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDkvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvbG9jYXRpb25zL3dlc3R1czIvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "05ae3519-70ba-4c52-a270-7be579824e16"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:42 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "3497f86f-cb79-4d64-a664-851457e5be4f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "a8afde45-561a-436d-8635-ca4e305973fd"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010343Z:a8afde45-561a-436d-8635-ca4e305973fd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/topicTypes/Microsoft.EventGrid.Topics/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LkV2ZW50R3JpZC5Ub3BpY3MvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f310fdd2-06e1-4a91-af18-0ecedaf5257c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:44 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "6039f7ea-bc63-4b5f-b9b7-8b2beebf6535"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "9e8cef21-9971-4139-ac58-c309867d8e71"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010345Z:9e8cef21-9971-4139-ac58-c309867d8e71"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topicTypes/Microsoft.EventGrid.Topics/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDkvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvdG9waWNUeXBlcy9NaWNyb3NvZnQuRXZlbnRHcmlkLlRvcGljcy9ldmVudFN1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "23b0b2d8-9ac1-4145-98c5-9fdd408996ac"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:44 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ccea5e32-7181-4b17-99ba-2c028b417c7d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "852badbf-b55c-4333-9e30-91a4b8ff3e65"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010345Z:852badbf-b55c-4333-9e30-91a4b8ff3e65"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.EventGrid.Topics/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL3RvcGljVHlwZXMvTWljcm9zb2Z0LkV2ZW50R3JpZC5Ub3BpY3MvZXZlbnRTdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6a499b8a-b0c0-407a-bff7-45fbabb7d1ff"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/z62ub3z6\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/Rb1\",\r\n \"name\": \"Rb1\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/microsoft.eventgrid/topics/aaa\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/rfabyirf\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"Log.Error\"\r\n ]\r\n },\r\n \"labels\": [\r\n \"\"\r\n ]\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg2/providers/Microsoft.EventGrid/topics/aaa/providers/Microsoft.EventGrid/eventSubscriptions/rb2\",\r\n \"name\": \"rb2\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/microsoft.eventgrid/topics/esresparenttopic8849\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1955/providers/Microsoft.EventGrid/topics/esresparenttopic8849/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub1197\",\r\n \"name\": \"estopeventsub1197\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/microsoft.eventgrid/topics/esresparenttopic1018\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-6883/providers/Microsoft.EventGrid/topics/esresparenttopic1018/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub5350\",\r\n \"name\": \"estopeventsub5350\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/microsoft.eventgrid/topics/esresparenttopic8175\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-1448/providers/Microsoft.EventGrid/topics/esresparenttopic8175/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub9403\",\r\n \"name\": \"estopeventsub9403\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n },\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:45 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0c7e6450-9660-4dfc-a013-2f7dfbc70466"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "20ce19b8-faf2-4afa-8c63-c768718e2c53"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010346Z:20ce19b8-faf2-4afa-8c63-c768718e2c53"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/locations/westus2/topicTypes/Microsoft.EventGrid.Topics/eventSubscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDkvcHJvdmlkZXJzL01pY3Jvc29mdC5FdmVudEdyaWQvbG9jYXRpb25zL3dlc3R1czIvdG9waWNUeXBlcy9NaWNyb3NvZnQuRXZlbnRHcmlkLlRvcGljcy9ldmVudFN1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0f248864-d23d-4438-89f2-f18d53cb8cb5"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/1a1wyat1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:46 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "3ff5eb43-0a6e-4042-8223-ae387383eaf7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "16b4afd9-8c72-472b-8731-e8cd3d65d101"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010346Z:16b4afd9-8c72-472b-8731-e8cd3d65d101"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "142"
+ ],
+ "x-ms-client-request-id": [
+ "b44592ff-3e8a-40df-b3e7-b200fdfe0661"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "699"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:03:46 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/1FE59149-C394-44F6-A923-835AAA42EDF0?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "0f37ca38-0819-4d5d-bd6f-27748aad72d3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "714377fd-585e-4ebd-baa5-434e17c1f9ac"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010347Z:714377fd-585e-4ebd-baa5-434e17c1f9ac"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"filter\": {\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "110"
+ ],
+ "x-ms-client-request-id": [
+ "38542e4f-a533-47d9-9a70-5cc9740b299d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"topic\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/microsoft.eventgrid/topics/esresparenttopic8032\",\r\n \"provisioningState\": \"Updating\",\r\n \"destination\": {\r\n \"endpointType\": \"WebHook\",\r\n \"properties\": {\r\n \"endpointBaseUrl\": \"https://requestb.in/109n35e1\"\r\n }\r\n },\r\n \"filter\": {\r\n \"subjectBeginsWith\": \"\",\r\n \"subjectEndsWith\": \"newFilter\",\r\n \"includedEventTypes\": [\r\n \"All\"\r\n ]\r\n },\r\n \"labels\": null\r\n },\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015\",\r\n \"name\": \"estopeventsub2015\",\r\n \"type\": \"Microsoft.EventGrid/eventSubscriptions\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "708"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:17 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/66C8C948-68F9-4B4F-B10B-A434247C08D1?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "0ef3d06d-bd10-4548-b761-f9b5890c6920"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "5258550f-9600-43a8-944c-d9c0ddc5187e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010417Z:5258550f-9600-43a8-944c-d9c0ddc5187e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "2"
+ ],
+ "x-ms-client-request-id": [
+ "b6a14170-9b0b-445a-bdd5-3052cb1245e6"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"Message\": \"Invalid update fields\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "35"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "392619be-d21f-42f7-83b7-5630f888458b"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "391e754d-a930-4f79-9a8b-e9fc3a8959fa"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010448Z:391e754d-a930-4f79-9a8b-e9fc3a8959fa"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/1FE59149-C394-44F6-A923-835AAA42EDF0?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvMUZFNTkxNDktQzM5NC00NEY2LUE5MjMtODM1QUFBNDJFREYwP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/1FE59149-C394-44F6-A923-835AAA42EDF0?api-version=2017-06-15-preview\",\r\n \"name\": \"1fe59149-c394-44f6-a923-835aaa42edf0\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:16 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "843085a2-e922-4c65-980a-5d9e28f852ad"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "c5a311e3-28d1-4851-b1f2-7f7c3d9c1200"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010417Z:c5a311e3-28d1-4851-b1f2-7f7c3d9c1200"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/66C8C948-68F9-4B4F-B10B-A434247C08D1?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvNjZDOEM5NDgtNjhGOS00QjRGLUIxMEItQTQzNDI0N0MwOEQxP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/66C8C948-68F9-4B4F-B10B-A434247C08D1?api-version=2017-06-15-preview\",\r\n \"name\": \"66c8c948-68f9-4b4f-b10b-a434247c08d1\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:47 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0c7f258b-13ad-4e81-a704-f4344fdf3522"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "bb228ee6-2c27-49ba-8dfb-b9c86afcb0b9"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010448Z:bb228ee6-2c27-49ba-8dfb-b9c86afcb0b9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015/getFullUrl?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTUvZ2V0RnVsbFVybD9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b8c4776c-89fd-4486-b6f0-edbda30836ca"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"endpointUrl\": \"https://requestb.in/109n35e1\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "b3228c69-ae87-4a8c-8636-30ac559b3d0e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "a49c04ad-07c9-4015-8572-a8aa0cfbb623"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010448Z:a49c04ad-07c9-4015-8572-a8aa0cfbb623"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9c3d3efb-cec8-47a0-b79e-b0d50cefedb8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1193"
+ ],
+ "x-ms-request-id": [
+ "fad877e0-5c06-4fac-9aea-845e2bac40f8"
+ ],
+ "x-ms-correlation-request-id": [
+ "fad877e0-5c06-4fac-9aea-845e2bac40f8"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010449Z:fad877e0-5c06-4fac-9aea-845e2bac40f8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "//subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-eventsub-top-809/providers/Microsoft.EventGrid/topics/esresparenttopic8032/providers/Microsoft.EventGrid/eventSubscriptions/estopeventsub2015?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zL2Q4ZGNkNThiLWUyMmQtNDNlNy1hOTdmLTE1ZmEyOWQ4YzhlYS9yZXNvdXJjZUdyb3Vwcy9lZy1ldmVudHN1Yi10b3AtODA5L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy9lc3Jlc3BhcmVudHRvcGljODAzMi9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC9ldmVudFN1YnNjcmlwdGlvbnMvZXN0b3BldmVudHN1YjIwMTU/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "554ac510-df91-4332-a8e7-08ea6ee2d415"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1192"
+ ],
+ "x-ms-request-id": [
+ "b55c8a9a-f524-4983-984c-d702614b3faa"
+ ],
+ "x-ms-correlation-request-id": [
+ "b55c8a9a-f524-4983-984c-d702614b3faa"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010449Z:b55c8a9a-f524-4983-984c-d702614b3faa"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-eventsub-top-809?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLWV2ZW50c3ViLXRvcC04MDk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b7245cb6-c298-407d-b4c0-166edcab4ff9"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 18 Aug 2017 01:04:53 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1FRzoyREVWRU5UU1VCOjJEVE9QOjJEODA5LVdFU1RVUzIiLCJqb2JMb2NhdGlvbiI6Indlc3R1czIifQ?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "fa5a39aa-b3d3-4b32-af06-67db2b645d7e"
+ ],
+ "x-ms-correlation-request-id": [
+ "fa5a39aa-b3d3-4b32-af06-67db2b645d7e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170818T010453Z:fa5a39aa-b3d3-4b32-af06-67db2b645d7e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "EventSubscriptionCRUDTopicScope": [
+ "eg-eventsub-top-809",
+ "esresparenttopic8032",
+ "estopeventsub2015"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.OperationScenarioTests/ListOperations.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.OperationScenarioTests/ListOperations.json
new file mode 100644
index 000000000000..3341dff5cdeb
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.OperationScenarioTests/ListOperations.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/operations?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL29wZXJhdGlvbnM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4b3799f0-23d4-40a9-9ca0-5989fe397fea"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.EventGrid/register/action\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"EventGrid Resource Provider\",\r\n \"operation\": \"Registers the EventGrid Resource Provider\",\r\n \"description\": \"Registers the eventSubscription for the EventGrid resource provider and enables the creation of Event Grid subscriptions.\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/write\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"eventSubscriptions\",\r\n \"operation\": \"Write EventSubscription\",\r\n \"description\": \"Create or update a eventSubscription\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"eventSubscriptions\",\r\n \"operation\": \"Read EventSubscription\",\r\n \"description\": \"Read a eventSubscription\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/delete\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"eventSubscriptions\",\r\n \"operation\": \"Delete EventSubscription\",\r\n \"description\": \"Delete a eventSubscription\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/getFullUrl/action\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"eventSubscriptions\",\r\n \"operation\": \"Get full url\",\r\n \"description\": \"Get full url for the event subscription\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/write\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"topics\",\r\n \"operation\": \"Write Topic\",\r\n \"description\": \"Create or update a topic\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"topics\",\r\n \"operation\": \"Read Topic\",\r\n \"description\": \"Read a topic\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/delete\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"topics\",\r\n \"operation\": \"Delete Topic\",\r\n \"description\": \"Delete a topic\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/listKeys/action\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"topics\",\r\n \"operation\": \"List keys\",\r\n \"description\": \"List keys for the topic\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/regenerateKey/action\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"topics\",\r\n \"operation\": \"Regenerate key\",\r\n \"description\": \"Regenerate key for the topic\"\r\n },\r\n \"origin\": 2,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"Topics Metrics\",\r\n \"operation\": \"Read topic metric definitions\",\r\n \"description\": \"Gets the available metrics for topics\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"PublishedEvents\",\r\n \"displayName\": \"Count of events published to this topic\",\r\n \"displayDescription\": \"Count of events published to this topic\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n },\r\n {\r\n \"name\": \"UnmatchedEvents\",\r\n \"displayName\": \"Count of events not matching any of the event subscriptions for this topic\",\r\n \"displayDescription\": \"Count of events not matching any of the event subscriptions for this topic\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"Topics Diagnostics\",\r\n \"operation\": \"Read diagnostic setting\",\r\n \"description\": \"Gets the diagnostic setting for topics\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/topics/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"Topics Diagnostics\",\r\n \"operation\": \"Write diagnostic setting\",\r\n \"description\": \"Creates or updates the diagnostic setting for topics\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"EventSubscription Metrics\",\r\n \"operation\": \"Read eventSubscription metric definitions\",\r\n \"description\": \"Gets the available metrics for eventSubscriptions\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"MatchedEvents\",\r\n \"displayName\": \"Count of events matching this event subscription\",\r\n \"displayDescription\": \"Count of events matching this event subscription\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n },\r\n {\r\n \"name\": \"DeliveredEvents\",\r\n \"displayName\": \"Count of events delivered for this event subscription\",\r\n \"displayDescription\": \"Count of events delivered for this event subscription\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n },\r\n {\r\n \"name\": \"FailedDeliveryAttempts\",\r\n \"displayName\": \"Count of failed delivery attempts for this event subscription\",\r\n \"displayDescription\": \"Count of failed delivery attempts for this event subscription\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"EventSubscription Diagnostics\",\r\n \"operation\": \"Read diagnostic setting\",\r\n \"description\": \"Gets the diagnostic setting for event subscriptions\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/eventSubscriptions/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"EventSubscription Diagnostics\",\r\n \"operation\": \"Write diagnostic setting\",\r\n \"description\": \"Creates or updates the diagnostic setting for event subscriptions\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/extensionTopics/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"Topics Metrics\",\r\n \"operation\": \"Read topic metric definitions\",\r\n \"description\": \"Gets the available metrics for topics\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"PublishedEvents\",\r\n \"displayName\": \"Count of events published to this topic\",\r\n \"displayDescription\": \"Count of events published to this topic\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n },\r\n {\r\n \"name\": \"UnmatchedEvents\",\r\n \"displayName\": \"Count of events not matching any of the event subscriptions for this topic\",\r\n \"displayDescription\": \"Count of events not matching any of the event subscriptions for this topic\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"fillGapWithZero\": true\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/extensionTopics/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"Topics Diagnostics\",\r\n \"operation\": \"Read diagnostic setting\",\r\n \"description\": \"Gets the diagnostic setting for topics\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": null\r\n },\r\n {\r\n \"name\": \"Microsoft.EventGrid/extensionTopics/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"provider\": \"Microsoft Event Grid\",\r\n \"resource\": \"Topics Diagnostics\",\r\n \"operation\": \"Write diagnostic setting\",\r\n \"description\": \"Creates or updates the diagnostic setting for topics\"\r\n },\r\n \"origin\": 1,\r\n \"properties\": null\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:16:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14996"
+ ],
+ "x-ms-request-id": [
+ "41aaf5e2-2c58-469f-950c-5369bd0fcd74"
+ ],
+ "x-ms-correlation-request-id": [
+ "41aaf5e2-2c58-469f-950c-5369bd0fcd74"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061655Z:41aaf5e2-2c58-469f-950c-5369bd0fcd74"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Eventhub.Namespaces.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Eventhub.Namespaces.json
new file mode 100644
index 000000000000..fe8293a4204d
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Eventhub.Namespaces.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LkV2ZW50aHViLk5hbWVzcGFjZXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8fea944f-0e3f-4bae-b2ac-994c730d323a"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Eventhub\",\r\n \"displayName\": \"EventHubs Namespace\",\r\n \"description\": \"Microsoft EventHubs service events.\",\r\n \"resourceRegionType\": \"RegionalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces\",\r\n \"name\": \"Microsoft.Eventhub.Namespaces\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:33:01 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4b11eb3f-eb1b-4589-ad2a-2cffd1325638"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "147261e6-a261-488c-b95a-d8752ac890c9"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T063301Z:147261e6-a261-488c-b95a-d8752ac890c9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Resources.ResourceGroups.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Resources.ResourceGroups.json
new file mode 100644
index 000000000000..1e123669534f
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Resources.ResourceGroups.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5SZXNvdXJjZUdyb3Vwcz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "aa4c4a7d-baf5-4396-b8ba-7c91ab2f7cb5"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Resources\",\r\n \"displayName\": \"Resource Groups\",\r\n \"description\": \"Resource management events under a resource group.\",\r\n \"resourceRegionType\": \"GlobalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups\",\r\n \"name\": \"Microsoft.Resources.ResourceGroups\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:32:56 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d5c4fb54-ac23-4d46-923a-64dd02965c69"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "32d7fad3-5e01-4a1f-8c5b-43fe6425151f"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T063257Z:32d7fad3-5e01-4a1f-8c5b-43fe6425151f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Resources.Subscriptions.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Resources.Subscriptions.json
new file mode 100644
index 000000000000..765f67754960
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Resources.Subscriptions.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5TdWJzY3JpcHRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "467c3c02-a412-42d2-bacf-f9ce44547e04"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Resources\",\r\n \"displayName\": \"Azure Subscriptions\",\r\n \"description\": \"Resource management events under an Azure subscription\",\r\n \"resourceRegionType\": \"GlobalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions\",\r\n \"name\": \"Microsoft.Resources.Subscriptions\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:33:03 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "76f1db8c-624f-4202-a00a-4fa4aeae7a78"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "3a6d97d4-90d2-40e6-ad08-df2b30cc7e5d"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T063303Z:3a6d97d4-90d2-40e6-ad08-df2b30cc7e5d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Storage.StorageAccounts.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Storage.StorageAccounts.json
new file mode 100644
index 000000000000..0a67707665ee
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/GetTopicTypesMicrosoft.Storage.StorageAccounts.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlN0b3JhZ2UuU3RvcmFnZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8063b0c4-243e-4a1e-ae6f-18bd248f6630"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Storage\",\r\n \"displayName\": \"Storage Accounts\",\r\n \"description\": \"Microsoft Storage service events.\",\r\n \"resourceRegionType\": \"RegionalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts\",\r\n \"name\": \"Microsoft.Storage.StorageAccounts\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:33:04 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "19426d19-66ed-4c44-a04b-1945f03a282e"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "72d85ee7-796a-4eaa-bf59-c40c3df3d91d"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T063304Z:72d85ee7-796a-4eaa-bf59-c40c3df3d91d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Eventhub.Namespaces.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Eventhub.Namespaces.json
new file mode 100644
index 000000000000..6589b170c271
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Eventhub.Namespaces.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces/eventTypes?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LkV2ZW50aHViLk5hbWVzcGFjZXMvZXZlbnRUeXBlcz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1a575e18-ece7-446c-b72d-d90acfb152c5"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Capture File Created\",\r\n \"description\": \"Raised when a capture file is created.\",\r\n \"schemaUrl\": \"tbd\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.EventHub.Namespaces/eventTypes/Microsoft.EventHub.CaptureFileCreated\",\r\n \"name\": \"Microsoft.EventHub.CaptureFileCreated\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 22:45:48 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "24821d42-a91c-4402-9533-bcdd2c3bf23d"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "9fe57aa5-a3c7-4a9a-85d2-c26a8f6fc20c"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T224549Z:9fe57aa5-a3c7-4a9a-85d2-c26a8f6fc20c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Resources.ResourceGroups.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Resources.ResourceGroups.json
new file mode 100644
index 000000000000..80dc8925c15a
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Resources.ResourceGroups.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5SZXNvdXJjZUdyb3Vwcy9ldmVudFR5cGVzP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8adc6c15-3767-45c6-ab13-52ae83a4433b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Write Success\",\r\n \"description\": \"Raised when a resource create or update operation succeeds.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceWriteSuccess\",\r\n \"name\": \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Write Failure\",\r\n \"description\": \"Raised when a resource create or update operation fails.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceWriteFailure\",\r\n \"name\": \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Write Cancel\",\r\n \"description\": \"Raised when a resource create or update operation is cancelled.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceWriteCancel\",\r\n \"name\": \"Microsoft.Resources.ResourceWriteCancel\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Delete Success\",\r\n \"description\": \"Raised when a resource deletion operation succeeds.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"name\": \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Delete Failure\",\r\n \"description\": \"Raised when a resource deletion operation fails.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceDeleteFailure\",\r\n \"name\": \"Microsoft.Resources.ResourceDeleteFailure\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Delete Cancel\",\r\n \"description\": \"Raised when a resource delete operation is cancelled.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceDeleteCancel\",\r\n \"name\": \"Microsoft.Resources.ResourceDeleteCancel\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 22:45:46 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "795f7e01-2790-4e88-9617-33417eb8e5ab"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "4466829f-0abd-42b9-aa6d-81b3c7fb7646"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T224546Z:4466829f-0abd-42b9-aa6d-81b3c7fb7646"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Resources.Subscriptions.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Resources.Subscriptions.json
new file mode 100644
index 000000000000..71a10d388743
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Resources.Subscriptions.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventTypes?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlJlc291cmNlcy5TdWJzY3JpcHRpb25zL2V2ZW50VHlwZXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ba733f39-fcb3-4978-a3b0-dc0224d50c3d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Write Success\",\r\n \"description\": \"Raised when a resource create or update operation succeeds.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceWriteSuccess\",\r\n \"name\": \"Microsoft.Resources.ResourceWriteSuccess\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Write Failure\",\r\n \"description\": \"Raised when a resource create or update operation fails.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceWriteFailure\",\r\n \"name\": \"Microsoft.Resources.ResourceWriteFailure\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Write Cancel\",\r\n \"description\": \"Raised when a resource create or update operation is cancelled.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceWriteCancel\",\r\n \"name\": \"Microsoft.Resources.ResourceWriteCancel\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Delete Success\",\r\n \"description\": \"Raised when a resource deletion operation succeeds.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"name\": \"Microsoft.Resources.ResourceDeleteSuccess\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Delete Failure\",\r\n \"description\": \"Raised when a resource delete operation fails.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceDeleteFailure\",\r\n \"name\": \"Microsoft.Resources.ResourceDeleteFailure\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Resource Delete Cancel\",\r\n \"description\": \"Raised when a resource delete is cancelled. This happens when template deployment is cancelled.\",\r\n \"schemaUrl\": \"TBD\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventTypes/Microsoft.Resources.ResourceDeleteCancel\",\r\n \"name\": \"Microsoft.Resources.ResourceDeleteCancel\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 22:45:42 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "d1f5bdff-6005-4e2e-96ab-9f1370b7c9ac"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "b40c74f2-0c3e-4d85-8e86-d2739fc3a6ea"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T224542Z:b40c74f2-0c3e-4d85-8e86-d2739fc3a6ea"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Storage.StorageAccounts.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Storage.StorageAccounts.json
new file mode 100644
index 000000000000..c8c42b2cd63f
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypeEventTypesMicrosoft.Storage.StorageAccounts.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXMvTWljcm9zb2Z0LlN0b3JhZ2UuU3RvcmFnZUFjY291bnRzL2V2ZW50VHlwZXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "975888a2-aaae-411a-b61d-abbd2ae32c33"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Blob Created\",\r\n \"description\": \"Raised when a blob is created.\",\r\n \"schemaUrl\": \"tbd\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated\",\r\n \"name\": \"Microsoft.Storage.BlobCreated\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"displayName\": \"Blob Created\",\r\n \"description\": \"Raised when a blob is deleted.\",\r\n \"schemaUrl\": \"tbd\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted\",\r\n \"name\": \"Microsoft.Storage.BlobDeleted\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes/eventTypes\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 22:45:51 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ba5b17e2-8718-441b-bcbc-097d2ae6a75e"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "c879d35b-8309-4e53-9f4d-460fd9e34bfc"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T224551Z:c879d35b-8309-4e53-9f4d-460fd9e34bfc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypes.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypes.json
new file mode 100644
index 000000000000..130a26f88119
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicTypesOperationScenarioTests/ListTopicTypes.json
@@ -0,0 +1,69 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/providers/Microsoft.EventGrid/topicTypes?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljVHlwZXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0d55878d-765d-4012-83bd-298abcbdd3e4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Eventhub\",\r\n \"displayName\": \"EventHubs Namespace\",\r\n \"description\": \"Microsoft EventHubs service events.\",\r\n \"resourceRegionType\": \"RegionalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces\",\r\n \"name\": \"Microsoft.Eventhub.Namespaces\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Storage\",\r\n \"displayName\": \"Storage Accounts\",\r\n \"description\": \"Microsoft Storage service events.\",\r\n \"resourceRegionType\": \"RegionalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts\",\r\n \"name\": \"Microsoft.Storage.StorageAccounts\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Resources\",\r\n \"displayName\": \"Azure Subscriptions\",\r\n \"description\": \"Resource management events under an Azure subscription\",\r\n \"resourceRegionType\": \"GlobalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions\",\r\n \"name\": \"Microsoft.Resources.Subscriptions\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provider\": \"Microsoft.Resources\",\r\n \"displayName\": \"Resource Groups\",\r\n \"description\": \"Resource management events under a resource group.\",\r\n \"resourceRegionType\": \"GlobalResource\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups\",\r\n \"name\": \"Microsoft.Resources.ResourceGroups\",\r\n \"type\": \"Microsoft.EventGrid/topicTypes\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:33:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-ratelimit-remaining-tenant-reads": [
+ "14993"
+ ],
+ "x-ms-request-id": [
+ "fa32bfaf-8bf2-40cf-8708-baef24888c29"
+ ],
+ "x-ms-correlation-request-id": [
+ "fa32bfaf-8bf2-40cf-8708-baef24888c29"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T063307Z:fa32bfaf-8bf2-40cf-8708-baef24888c29"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicsOperationScenarioTests/TopicsCRUD.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicsOperationScenarioTests/TopicsCRUD.json
new file mode 100644
index 000000000000..fe8c4397129a
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicsOperationScenarioTests/TopicsCRUD.json
@@ -0,0 +1,834 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-topicstest-6053?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1Mz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-topicstest-6053\": \"2017-08-17 06:09:22Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "98"
+ ],
+ "x-ms-client-request-id": [
+ "c26630d4-7fa9-47b0-b5a6-d57e1f0948cf"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053\",\r\n \"name\": \"eg-topicstest-6053\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-topicstest-6053\": \"2017-08-17 06:09:22Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "243"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:09:25 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-request-id": [
+ "875e469c-36f8-4c41-acf9-41f138b0955a"
+ ],
+ "x-ms-correlation-request-id": [
+ "875e469c-36f8-4c41-acf9-41f138b0955a"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T060926Z:875e469c-36f8-4c41-acf9-41f138b0955a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "404eb7f0-5b09-4dab-af9d-d5e7c9df4045"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"endpoint\": null\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "299"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:09:31 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/B4339BE9-14E1-4B79-B961-99139A3EA1B4?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "2bd5e229-ed18-4d65-abd8-100fe331c69f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1193"
+ ],
+ "x-ms-correlation-request-id": [
+ "c836b884-28b9-47d9-8b9a-2764ed65b031"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T060931Z:c836b884-28b9-47d9-8b9a-2764ed65b031"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "d97a98c4-795e-4834-90d5-b08844ecd8bb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"endpoint\": null\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "299"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:03 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/F7120C2E-B49E-4F65-A757-53F8D41AAD80?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "1a0006e8-4e38-4769-8206-a5342cfba1f2"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "fdeef6af-2076-497f-8ef4-f58ca5d1324b"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061003Z:fdeef6af-2076-497f-8ef4-f58ca5d1324b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/B4339BE9-14E1-4B79-B961-99139A3EA1B4?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvQjQzMzlCRTktMTRFMS00Qjc5LUI5NjEtOTkxMzlBM0VBMUI0P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/B4339BE9-14E1-4B79-B961-99139A3EA1B4?api-version=2017-06-15-preview\",\r\n \"name\": \"b4339be9-14e1-4b79-b961-99139a3ea1b4\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:02 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "0f371283-aea3-4f6f-91a2-6ec0a8981cf6"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14942"
+ ],
+ "x-ms-correlation-request-id": [
+ "12abd70c-d320-43ec-af66-779c0c97f16e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061002Z:12abd70c-d320-43ec-af66-779c0c97f16e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://testtopic7086.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:02 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "21ad89e5-168d-40c1-ab8b-5e7f05627cd3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14941"
+ ],
+ "x-ms-correlation-request-id": [
+ "eb0bca55-6648-4955-a02c-cf63d45ec27b"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061002Z:eb0bca55-6648-4955-a02c-cf63d45ec27b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c32bd22d-08b3-4465-ac12-c0e70e9dde43"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://testtopic7086.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:03 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "333018d1-497d-4841-a346-e883d8b5fe8f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14940"
+ ],
+ "x-ms-correlation-request-id": [
+ "67bd8719-b6b0-453f-a54d-cfa689d7dc63"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061003Z:67bd8719-b6b0-453f-a54d-cfa689d7dc63"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://testtopic7086.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "739a8137-a0fe-49b0-abce-6866f20c434d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14934"
+ ],
+ "x-ms-correlation-request-id": [
+ "19418a91-5f08-45de-a79b-b9762d144a17"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061034Z:19418a91-5f08-45de-a79b-b9762d144a17"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3M/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "80edbd6d-9698-4b1d-b49a-f4105cb4502c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://testtopic7086.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:03 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "9b5061b7-b60e-4025-aa9f-db5042908fb3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14939"
+ ],
+ "x-ms-correlation-request-id": [
+ "f44365f0-91bf-46fb-8f94-75e598152d0f"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061003Z:f44365f0-91bf-46fb-8f94-75e598152d0f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/topics?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcz9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "b328078a-eb27-4fc0-b0d2-506aa32643a8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://testtopic7086.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086\",\r\n \"name\": \"testtopic7086\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:03 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "770402a2-ff65-4263-a14f-a1b79f326dfe"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14938"
+ ],
+ "x-ms-correlation-request-id": [
+ "5d9a70f4-f80c-4220-b271-456e3a71daa2"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061003Z:5d9a70f4-f80c-4220-b271-456e3a71daa2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/F7120C2E-B49E-4F65-A757-53F8D41AAD80?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvRjcxMjBDMkUtQjQ5RS00RjY1LUE3NTctNTNGOEQ0MUFBRDgwP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/F7120C2E-B49E-4F65-A757-53F8D41AAD80?api-version=2017-06-15-preview\",\r\n \"name\": \"f7120c2e-b49e-4f65-a757-53f8d41aad80\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "ce4c3dbe-d97f-49ad-931d-7bd8f63c6504"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14935"
+ ],
+ "x-ms-correlation-request-id": [
+ "75db0c38-1a30-4f5d-ab94-5565feb36730"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061034Z:75db0c38-1a30-4f5d-ab94-5565feb36730"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9051ba06-7fff-4edc-93be-42ab95c54253"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:10:34 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationResults/5A7EB885-D1EF-492B-969B-F37FCB268ADA?api-version=2017-06-15-preview"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1191"
+ ],
+ "x-ms-request-id": [
+ "7c50842d-ef23-45d3-bfc3-8eeeed6ca863"
+ ],
+ "x-ms-correlation-request-id": [
+ "7c50842d-ef23-45d3-bfc3-8eeeed6ca863"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061035Z:7c50842d-ef23-45d3-bfc3-8eeeed6ca863"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicstest-6053/providers/Microsoft.EventGrid/topics/testtopic7086?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1My9wcm92aWRlcnMvTWljcm9zb2Z0LkV2ZW50R3JpZC90b3BpY3MvdGVzdHRvcGljNzA4Nj9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "27d8f97d-7ca8-46e4-a300-0bbf36e60aed"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1190"
+ ],
+ "x-ms-request-id": [
+ "1516557e-8f79-457e-803b-75f173d48529"
+ ],
+ "x-ms-correlation-request-id": [
+ "1516557e-8f79-457e-803b-75f173d48529"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061107Z:1516557e-8f79-457e-803b-75f173d48529"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationResults/5A7EB885-D1EF-492B-969B-F37FCB268ADA?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvblJlc3VsdHMvNUE3RUI4ODUtRDFFRi00OTJCLTk2OUItRjM3RkNCMjY4QURBP2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:06 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-request-id": [
+ "aa5ec577-f461-439c-a583-ffc08ac3e53d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14932"
+ ],
+ "x-ms-correlation-request-id": [
+ "fb5b56b5-3f57-4773-8292-153cfc1a8523"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061106Z:fb5b56b5-3f57-4773-8292-153cfc1a8523"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-topicstest-6053?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLXRvcGljc3Rlc3QtNjA1Mz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3016afd6-634f-4094-a031-5d1d63868b08"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:10 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1FRzoyRFRPUElDU1RFU1Q6MkQ2MDUzLVdFU1RVUzIiLCJqb2JMb2NhdGlvbiI6Indlc3R1czIifQ?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-request-id": [
+ "ece7e7f2-e701-4fe7-9877-ddec01fef62a"
+ ],
+ "x-ms-correlation-request-id": [
+ "ece7e7f2-e701-4fe7-9877-ddec01fef62a"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061110Z:ece7e7f2-e701-4fe7-9877-ddec01fef62a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "TopicsCRUD": [
+ "eg-topicstest-6053",
+ "testtopic7086"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicsOperationScenarioTests/TopicsSharedAccessKeys.json b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicsOperationScenarioTests/TopicsSharedAccessKeys.json
new file mode 100644
index 000000000000..ed21b548b1c7
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/SessionRecords/EventGrid.Tests.TopicsOperationScenarioTests/TopicsSharedAccessKeys.json
@@ -0,0 +1,629 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-topicseventtest-6581?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-topicseventtest-6581\": \"2017-08-17 06:11:12Z\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "103"
+ ],
+ "x-ms-client-request-id": [
+ "54494d19-9b0f-4aef-b669-ba6102f14b3b"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581\",\r\n \"name\": \"eg-topicseventtest-6581\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"eg-topicseventtest-6581\": \"2017-08-17 06:11:12Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "258"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:14 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1189"
+ ],
+ "x-ms-request-id": [
+ "38fb27b7-286d-43b8-b83e-b41741533f25"
+ ],
+ "x-ms-correlation-request-id": [
+ "38fb27b7-286d-43b8-b83e-b41741533f25"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061115Z:38fb27b7-286d-43b8-b83e-b41741533f25"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjk/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "29"
+ ],
+ "x-ms-client-request-id": [
+ "e2880739-b779-4690-9585-86cbdc08253f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"endpoint\": null\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129\",\r\n \"name\": \"testtopic129\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "302"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:19 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/DB3E6524-8A6B-4826-BBCD-1C9E83F63C34?api-version=2017-06-15-preview"
+ ],
+ "x-ms-request-id": [
+ "614a40ff-0bd9-44c7-b046-8be710a9c283"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "d5689f22-ad70-451d-9ad5-0f9554fdedc3"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061120Z:d5689f22-ad70-451d-9ad5-0f9554fdedc3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/DB3E6524-8A6B-4826-BBCD-1C9E83F63C34?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL2xvY2F0aW9ucy93ZXN0dXMyL29wZXJhdGlvbnNTdGF0dXMvREIzRTY1MjQtOEE2Qi00ODI2LUJCQ0QtMUM5RTgzRjYzQzM0P2FwaS12ZXJzaW9uPTIwMTctMDYtMTUtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/providers/Microsoft.EventGrid/locations/westus2/operationsStatus/DB3E6524-8A6B-4826-BBCD-1C9E83F63C34?api-version=2017-06-15-preview\",\r\n \"name\": \"db3e6524-8a6b-4826-bbcd-1c9e83f63c34\",\r\n \"status\": \"Succeeded\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:51 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "4553c1a9-86a9-4fac-ab36-3389de13879f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14953"
+ ],
+ "x-ms-correlation-request-id": [
+ "78aefd79-3391-4f10-9885-d6ea39a87d3e"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061151Z:78aefd79-3391-4f10-9885-d6ea39a87d3e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjk/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"endpoint\": \"https://testtopic129.westus2-1.eventgrid.azure.net/api/events\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": null,\r\n \"id\": \"/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129\",\r\n \"name\": \"testtopic129\",\r\n \"type\": \"Microsoft.EventGrid/topics\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:51 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "47eb763e-9b11-4e53-a0be-b8d686e636ef"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14952"
+ ],
+ "x-ms-correlation-request-id": [
+ "13cfeaad-61b2-4807-9ee6-b577c690ac03"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061151Z:13cfeaad-61b2-4807-9ee6-b577c690ac03"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129/listKeys?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "44a9c580-8d6f-4c65-be28-d41b4c50b861"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"key1\": \"jWZYJlTW46m3ck0ml3owl4+JiZEPeiuIj4aXX3Pmy8E=\",\r\n \"key2\": \"J8kdHPtHb+aJVxKgnJwiDzCGPw3O4SnyKu8hR7R+Ckg=\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:51 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "202f0159-2fad-4115-9993-47931ed812e4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-correlation-request-id": [
+ "5f1a1cce-db8c-40b2-ab84-8029eb15ae6c"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061151Z:5f1a1cce-db8c-40b2-ab84-8029eb15ae6c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129/listKeys?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "45ebb3cc-4fbc-43b4-9d0f-9c3ad188bf09"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"key1\": \"s4bSKqTxXHQcWkDXAyfGUHifwxCD7/OtNMCtUL5WHaE=\",\r\n \"key2\": \"J8kdHPtHb+aJVxKgnJwiDzCGPw3O4SnyKu8hR7R+Ckg=\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:52 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "e60597d5-a3df-41e6-8c45-61737a4c3f26"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "5ed05f97-162b-416b-bb56-a25365f767f8"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061152Z:5ed05f97-162b-416b-bb56-a25365f767f8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129/listKeys?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjkvbGlzdEtleXM/YXBpLXZlcnNpb249MjAxNy0wNi0xNS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a6c3c344-a0d7-4b04-bba0-c86d0817e7b7"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"key1\": \"s4bSKqTxXHQcWkDXAyfGUHifwxCD7/OtNMCtUL5WHaE=\",\r\n \"key2\": \"o5PEOAugNti06eswW4c23uTxvoNIEcLOdpIVdGQZxPI=\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:52 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "430f4667-a215-4f63-b73b-a015fc78284d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1190"
+ ],
+ "x-ms-correlation-request-id": [
+ "8efce236-d66c-45da-928a-b253a5f54895"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061152Z:8efce236-d66c-45da-928a-b253a5f54895"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129/regenerateKey?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjkvcmVnZW5lcmF0ZUtleT9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"keyName\": \"Key1\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "25"
+ ],
+ "x-ms-client-request-id": [
+ "f9aff852-a9d2-4f66-977a-7dc52fe20559"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"key1\": \"s4bSKqTxXHQcWkDXAyfGUHifwxCD7/OtNMCtUL5WHaE=\",\r\n \"key2\": \"J8kdHPtHb+aJVxKgnJwiDzCGPw3O4SnyKu8hR7R+Ckg=\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:51 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "e6f3e6ca-5530-48d6-92e3-00f41f29b708"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1193"
+ ],
+ "x-ms-correlation-request-id": [
+ "5ea86a8b-62ba-4d7c-992b-862415566874"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061152Z:5ea86a8b-62ba-4d7c-992b-862415566874"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourceGroups/eg-topicseventtest-6581/providers/Microsoft.EventGrid/topics/testtopic129/regenerateKey?api-version=2017-06-15-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlR3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRXZlbnRHcmlkL3RvcGljcy90ZXN0dG9waWMxMjkvcmVnZW5lcmF0ZUtleT9hcGktdmVyc2lvbj0yMDE3LTA2LTE1LXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"keyName\": \"Key2\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "25"
+ ],
+ "x-ms-client-request-id": [
+ "d1044251-e99b-4e95-9ff1-d0990e86c950"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.EventGrid.EventGridManagementClient/1.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"key1\": \"s4bSKqTxXHQcWkDXAyfGUHifwxCD7/OtNMCtUL5WHaE=\",\r\n \"key2\": \"o5PEOAugNti06eswW4c23uTxvoNIEcLOdpIVdGQZxPI=\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:52 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Transfer-Encoding": [
+ "chunked"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "Vary": [
+ "Accept-Encoding"
+ ],
+ "x-ms-request-id": [
+ "dda94d6e-4330-48e0-8bee-83ca3c50b245"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1191"
+ ],
+ "x-ms-correlation-request-id": [
+ "de5c6c8c-3360-4203-a168-fd4e6e997239"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061152Z:de5c6c8c-3360-4203-a168-fd4e6e997239"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/resourcegroups/eg-topicseventtest-6581?api-version=2017-05-10",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZDhkY2Q1OGItZTIyZC00M2U3LWE5N2YtMTVmYTI5ZDhjOGVhL3Jlc291cmNlZ3JvdXBzL2VnLXRvcGljc2V2ZW50dGVzdC02NTgxP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "f5230694-d035-40c8-9dc6-36717eba790d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.25211.01",
+ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 17 Aug 2017 06:11:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1FRzoyRFRPUElDU0VWRU5UVEVTVDoyRDY1ODEtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2017-05-10"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1188"
+ ],
+ "x-ms-request-id": [
+ "57903a20-dd57-464f-83a9-59a07abc14fe"
+ ],
+ "x-ms-correlation-request-id": [
+ "57903a20-dd57-464f-83a9-59a07abc14fe"
+ ],
+ "x-ms-routing-request-id": [
+ "AUSTRALIASOUTHEAST:20170817T061155Z:57903a20-dd57-464f-83a9-59a07abc14fe"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ]
+ },
+ "StatusCode": 202
+ }
+ ],
+ "Names": {
+ "TopicsSharedAccessKeys": [
+ "eg-topicseventtest-6581",
+ "testtopic129"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "d8dcd58b-e22d-43e7-a97f-15fa29d8c8ea"
+ }
+}
\ No newline at end of file
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/TopicTypesOperationScenarioTests.cs b/src/SDKs/EventGrid/EventGrid.Tests/TopicTypesOperationScenarioTests.cs
new file mode 100644
index 000000000000..7aecd07c3427
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/TopicTypesOperationScenarioTests.cs
@@ -0,0 +1,78 @@
+using System.Linq;
+using System.Collections.Generic;
+using Microsoft.Azure.Management.EventGrid;
+using Microsoft.Azure.Management.EventGrid.Models;
+using Microsoft.Azure.Management.ResourceManager.Models;
+using Xunit;
+
+namespace EventGrid.Tests
+{
+ public class TopicTypesOperationScenarioTests
+ {
+ [Fact]
+ public void ListTopicTypes()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ EventGridManagementClient client = context.GetClient();
+
+ // List all topic types
+ IEnumerable listTopicTypes = client.TopicTypes.List();
+ Assert.NotNull(listTopicTypes);
+ Assert.True(listTopicTypes.Any());
+ foreach(TopicTypeInfo topicType in listTopicTypes)
+ {
+ Assert.NotNull(topicType.Name);
+ Assert.NotNull(topicType.Type);
+ Assert.NotNull(topicType.Provider);
+ }
+ }
+ }
+
+ [Theory]
+ [InlineData("Microsoft.Resources.Subscriptions")]
+ [InlineData("Microsoft.Resources.ResourceGroups")]
+ [InlineData("Microsoft.Eventhub.Namespaces")]
+ [InlineData("Microsoft.Storage.StorageAccounts")]
+ public void GetTopicTypes(string topicTypeName)
+ {
+ using (TestContext context = new TestContext(this, nameof(GetTopicTypes) + topicTypeName))
+ {
+ EventGridManagementClient client = context.GetClient();
+
+ // Get specific topic type
+ TopicTypeInfo getTopicType = client.TopicTypes.Get(topicTypeName);
+ Assert.NotNull(getTopicType);
+ Assert.NotNull(getTopicType.Name);
+ Assert.NotNull(getTopicType.Type);
+ Assert.NotNull(getTopicType.Provider);
+ }
+ }
+
+ [Theory]
+ [InlineData("Microsoft.Resources.Subscriptions")]
+ [InlineData("Microsoft.Resources.ResourceGroups")]
+ [InlineData("Microsoft.Eventhub.Namespaces")]
+ [InlineData("Microsoft.Storage.StorageAccounts")]
+ public void ListTopicTypeEventTypes(string topicTypeName)
+ {
+ using (TestContext context = new TestContext(this, nameof(ListTopicTypeEventTypes) + topicTypeName))
+ {
+ EventGridManagementClient client = context.GetClient();
+
+ // Get specific topic type
+ IEnumerable eventTypes = client.TopicTypes.ListEventTypes(topicTypeName);
+ Assert.NotNull(eventTypes);
+ foreach(EventType et in eventTypes)
+ {
+ Assert.NotNull(et);
+ Assert.NotNull(et.Name);
+ Assert.NotNull(et.Type);
+ Assert.NotNull(et.Description);
+ Assert.NotNull(et.DisplayName);
+ Assert.NotNull(et.SchemaUrl);
+ }
+ }
+ }
+ }
+}
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/TopicsOperationScenarioTests.cs b/src/SDKs/EventGrid/EventGrid.Tests/TopicsOperationScenarioTests.cs
new file mode 100644
index 000000000000..c77cdaadeb93
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/TopicsOperationScenarioTests.cs
@@ -0,0 +1,163 @@
+using System.Linq;
+using System.Collections.Generic;
+using Microsoft.Azure.Management.EventGrid;
+using Microsoft.Azure.Management.EventGrid.Models;
+using Microsoft.Azure.Management.ResourceManager.Models;
+using Xunit;
+using System;
+using System.Net;
+using System.Net.Http;
+using Newtonsoft.Json;
+using Microsoft.Azure.Management.Storage;
+using Microsoft.Azure.Management.Storage.Models;
+
+namespace EventGrid.Tests
+{
+ public class TopicsOperationScenarioTests
+ {
+ private const string EventGridLocation = "westus2";
+
+ [Fact]
+ public void TopicsCRUD()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-topicstest-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+
+ // Create topic
+ string topicName = context.GenerateName("testtopic");
+ Topic createTopic = client.Topics.CreateOrUpdate(resourceGroup.Name, topicName, new Topic
+ {
+ Location = resourceGroup.Location,
+ });
+ Assert.NotNull(createTopic);
+ string topicId = createTopic.Id;
+
+ // Get topic
+ Topic getTopic = client.Topics.Get(resourceGroup.Name, topicName);
+ Assert.NotNull(getTopic);
+
+ // List topics by resource group
+ IEnumerable listRgTopics = client.Topics.ListByResourceGroup(resourceGroup.Name);
+ Assert.NotNull(listRgTopics);
+ Assert.Equal(1, listRgTopics.Count());
+ Topic listRgTopicSingle = listRgTopics.First();
+ Assert.Equal(topicName, listRgTopicSingle.Name);
+ Assert.Equal(topicId, listRgTopicSingle.Id);
+
+ // List topics by resource group
+ IEnumerable listSubTopics = client.Topics.ListBySubscription();
+ Assert.NotNull(listSubTopics);
+ Assert.True(listSubTopics.Any());
+ Topic listSubTopicSingle = listSubTopics.First(x=> topicId.Equals(x?.Id));
+ Assert.Equal(topicName, listSubTopicSingle.Name);
+
+ // Update topic with same name and location, aka, create if not exists
+ Topic updateTopic = client.Topics.CreateOrUpdate(resourceGroup.Name, topicName, new Topic
+ {
+ Location = resourceGroup.Location,
+ });
+ Assert.NotNull(updateTopic);
+
+ // Delete topic
+ client.Topics.Delete(resourceGroup.Name, topicName);
+
+ // Confirm that if it doesn't exist, delete doesn't throw
+ client.Topics.Delete(resourceGroup.Name, topicName);
+ }
+ }
+
+ [Fact(Skip = "Doesn't seem fully implemented on Azure's side")]
+ public void TopicsEventTypes()
+ {
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-topicseventtest-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+
+ // List event types
+ string provider = "provider";
+ string resourceType = "type";
+ string resourceName = "name";
+ IEnumerable listEventTypes = client.Topics.ListEventTypes(resourceGroup.Name, provider, resourceType, resourceName);
+ Assert.NotNull(listEventTypes);
+ Assert.True(listEventTypes.Any());
+ foreach(EventType eventType in listEventTypes)
+ {
+ Assert.NotNull(eventType.Name);
+ Assert.NotNull(eventType.SchemaUrl);
+ Assert.NotNull(eventType.DisplayName);
+ Assert.NotNull(eventType.Description);
+ Assert.NotNull(eventType.Type);
+ }
+ }
+ }
+
+ [Fact]
+ public void TopicsSharedAccessKeys()
+ {
+ const string Key1Name = "Key1";
+ const string Key2Name = "Key2";
+
+ using (TestContext context = new TestContext(this))
+ {
+ ResourceGroup resourceGroup = context.CreateResourceGroup("eg-topicseventtest-", EventGridLocation);
+ EventGridManagementClient client = context.GetClient();
+
+ // Create topic
+ string topicName = context.GenerateName("testtopic");
+ Topic createTopic = client.Topics.CreateOrUpdate(resourceGroup.Name, topicName, new Topic
+ {
+ Location = resourceGroup.Location,
+ });
+ Assert.NotNull(createTopic);
+
+ // List access keys
+ TopicSharedAccessKeys sharedAccessKeys = client.Topics.ListSharedAccessKeys(resourceGroup.Name, topicName);
+ Assert.NotNull(sharedAccessKeys);
+ Assert.NotNull(sharedAccessKeys.Key1);
+ Assert.NotNull(sharedAccessKeys.Key2);
+
+ string originalKey1 = sharedAccessKeys.Key1;
+ string originalKey2 = sharedAccessKeys.Key2;
+
+ // Regenerate key 1
+ TopicSharedAccessKeys regenKey1AccessKeys = client.Topics.RegenerateKey(resourceGroup.Name, topicName, Key1Name);
+ Assert.NotNull(regenKey1AccessKeys);
+ Assert.NotNull(regenKey1AccessKeys.Key1);
+ Assert.NotNull(regenKey1AccessKeys.Key2);
+ Assert.NotEqual(originalKey1, regenKey1AccessKeys.Key1);
+ Assert.Equal(originalKey2, regenKey1AccessKeys.Key2);
+ string newKey1 = regenKey1AccessKeys.Key1;
+
+ // List post regen key 1
+ TopicSharedAccessKeys afterRegenKey1AccessKeys = client.Topics.ListSharedAccessKeys(resourceGroup.Name, topicName);
+ Assert.NotNull(afterRegenKey1AccessKeys);
+ Assert.NotNull(afterRegenKey1AccessKeys.Key1);
+ Assert.NotNull(afterRegenKey1AccessKeys.Key2);
+ Assert.Equal(newKey1, afterRegenKey1AccessKeys.Key1);
+ Assert.Equal(originalKey2, afterRegenKey1AccessKeys.Key2);
+
+ // Regenerate key 2
+ TopicSharedAccessKeys regenKey2AccessKeys = client.Topics.RegenerateKey(resourceGroup.Name, topicName, Key2Name);
+ Assert.NotNull(regenKey2AccessKeys);
+ Assert.NotNull(regenKey2AccessKeys.Key1);
+ Assert.NotNull(regenKey2AccessKeys.Key2);
+ Assert.Equal(newKey1, regenKey2AccessKeys.Key1);
+ Assert.NotEqual(originalKey2, regenKey2AccessKeys.Key2);
+ string newKey2 = regenKey2AccessKeys.Key2;
+
+ // List post regen key 2
+ TopicSharedAccessKeys afterRegenKey2AccessKeys = client.Topics.ListSharedAccessKeys(resourceGroup.Name, topicName);
+ Assert.NotNull(afterRegenKey2AccessKeys);
+ Assert.NotNull(afterRegenKey2AccessKeys.Key1);
+ Assert.NotNull(afterRegenKey2AccessKeys.Key2);
+ Assert.NotEqual(originalKey1, afterRegenKey2AccessKeys.Key1);
+ Assert.NotEqual(originalKey2, afterRegenKey2AccessKeys.Key2);
+ Assert.Equal(newKey1, afterRegenKey2AccessKeys.Key1);
+ Assert.Equal(newKey2, afterRegenKey2AccessKeys.Key2);
+ }
+ }
+ }
+}
diff --git a/src/SDKs/EventGrid/EventGrid.Tests/Utilities/TestContext.cs b/src/SDKs/EventGrid/EventGrid.Tests/Utilities/TestContext.cs
new file mode 100644
index 000000000000..0ae531dd9616
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.Tests/Utilities/TestContext.cs
@@ -0,0 +1,100 @@
+using System;
+using System.Collections.Generic;
+using System.Runtime.CompilerServices;
+using Microsoft.Azure.Management.ResourceManager;
+using Microsoft.Azure.Management.ResourceManager.Models;
+using Microsoft.Azure.Test.HttpRecorder;
+using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
+
+namespace EventGrid.Tests
+{
+ class TestContext : IDisposable
+ {
+ public const string DefaultTestPrefix = "defaulttestprefix-";
+ public const string DefaultResourceGroupPrefix = "testresourcegroup-";
+ public const string DefaultLocationId = "japaneast";
+ public const string DefaultLocation = "Japan East";
+
+ private readonly MockContext _mockContext;
+ private readonly Dictionary _serviceClientCache = new Dictionary();
+ private readonly List _resourceGroups = new List();
+ private bool _disposedValue = false; // To detect redundant calls
+
+ public TestContext(
+ object suiteObject,
+ [CallerMemberName]
+ string testName="error_determining_test_name")
+ {
+ _mockContext = MockContext.Start(suiteObject.GetType().FullName, testName);
+ }
+
+ public TServiceClient GetClient() where TServiceClient : class, IDisposable
+ {
+ if (_serviceClientCache.TryGetValue(typeof(TServiceClient), out IDisposable clientObject))
+ {
+ return (TServiceClient)clientObject;
+ }
+
+ TServiceClient client = _mockContext.GetServiceClient();
+ _serviceClientCache.Add(typeof(TServiceClient), client);
+ return client;
+ }
+
+ public ResourceGroup CreateResourceGroup(string prefix = DefaultResourceGroupPrefix, string location = DefaultLocationId, [CallerMemberName] string methodName = "GenerateName_failed")
+ {
+ ResourceManagementClient resourceClient = GetClient();
+
+ string rgName = GenerateName(prefix, methodName);
+ ResourceGroup resourceGroup = resourceClient.ResourceGroups.CreateOrUpdate(rgName,
+ new ResourceGroup
+ {
+ Location = location,
+ Tags = new Dictionary() { { rgName, DateTime.UtcNow.ToString("u") } }
+ });
+
+ _resourceGroups.Add(resourceGroup);
+
+ return resourceGroup;
+ }
+
+ public string GenerateName(string prefix = DefaultTestPrefix, [CallerMemberName] string methodName="GenerateName_failed")
+ {
+ try
+ {
+ return HttpMockServer.GetAssetName(methodName, prefix);
+ }
+ catch (KeyNotFoundException e)
+ {
+ throw new KeyNotFoundException(string.Format("Generated name not found for calling method: {0}", methodName), e);
+ }
+ }
+
+ protected virtual void Dispose(bool disposing)
+ {
+ if (!_disposedValue)
+ {
+ if (disposing)
+ {
+ // Begin deleting resource groups
+ ResourceManagementClient resourceClient = GetClient();
+ _resourceGroups.ForEach(rg => resourceClient.ResourceGroups.BeginDelete(rg.Name));
+
+ // Dispose clients
+ foreach (IDisposable client in _serviceClientCache.Values)
+ {
+ client.Dispose();
+ }
+
+ // Dispose context
+ _mockContext.Dispose();
+ }
+ _disposedValue = true;
+ }
+ }
+
+ public void Dispose()
+ {
+ Dispose(true);
+ }
+ }
+}
diff --git a/src/SDKs/EventGrid/EventGrid.sln b/src/SDKs/EventGrid/EventGrid.sln
new file mode 100644
index 000000000000..76cc8c296fb5
--- /dev/null
+++ b/src/SDKs/EventGrid/EventGrid.sln
@@ -0,0 +1,28 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.26403.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EventGrid.Tests", "EventGrid.Tests\EventGrid.Tests.csproj", "{ED7E6801-79DE-4CDC-A5E8-200A926A12D3}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.EventGrid", "Management.EventGrid\Microsoft.Azure.Management.EventGrid.csproj", "{B097CFC5-8CED-4A5A-9BDA-46799430B502}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {ED7E6801-79DE-4CDC-A5E8-200A926A12D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ED7E6801-79DE-4CDC-A5E8-200A926A12D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ED7E6801-79DE-4CDC-A5E8-200A926A12D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ED7E6801-79DE-4CDC-A5E8-200A926A12D3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B097CFC5-8CED-4A5A-9BDA-46799430B502}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B097CFC5-8CED-4A5A-9BDA-46799430B502}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B097CFC5-8CED-4A5A-9BDA-46799430B502}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B097CFC5-8CED-4A5A-9BDA-46799430B502}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/EventGridManagementClient.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/EventGridManagementClient.cs
new file mode 100644
index 000000000000..42552f37d6f5
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/EventGridManagementClient.cs
@@ -0,0 +1,339 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Microsoft.Rest.Serialization;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+
+ ///
+ /// Azure EventGrid Management Client
+ ///
+ public partial class EventGridManagementClient : ServiceClient, IEventGridManagementClient, IAzureClient
+ {
+ ///
+ /// The base URI of the service.
+ ///
+ public System.Uri BaseUri { get; set; }
+
+ ///
+ /// Gets or sets json serialization settings.
+ ///
+ public JsonSerializerSettings SerializationSettings { get; private set; }
+
+ ///
+ /// Gets or sets json deserialization settings.
+ ///
+ public JsonSerializerSettings DeserializationSettings { get; private set; }
+
+ ///
+ /// Credentials needed for the client to connect to Azure.
+ ///
+ public ServiceClientCredentials Credentials { get; private set; }
+
+ ///
+ /// Subscription credentials that uniquely identify a Microsoft Azure
+ /// subscription. The subscription ID forms part of the URI for every service
+ /// call.
+ ///
+ public string SubscriptionId { get; set; }
+
+ ///
+ /// Version of the API to be used with the client request.
+ ///
+ public string ApiVersion { get; private set; }
+
+ ///
+ /// Gets or sets the preferred language for the response.
+ ///
+ public string AcceptLanguage { get; set; }
+
+ ///
+ /// Gets or sets the retry timeout in seconds for Long Running Operations.
+ /// Default value is 30.
+ ///
+ public int? LongRunningOperationRetryTimeout { get; set; }
+
+ ///
+ /// When set to true a unique x-ms-client-request-id value is generated and
+ /// included in each request. Default is true.
+ ///
+ public bool? GenerateClientRequestId { get; set; }
+
+ ///
+ /// Gets the IEventSubscriptionsOperations.
+ ///
+ public virtual IEventSubscriptionsOperations EventSubscriptions { get; private set; }
+
+ ///
+ /// Gets the IOperations.
+ ///
+ public virtual IOperations Operations { get; private set; }
+
+ ///
+ /// Gets the ITopicsOperations.
+ ///
+ public virtual ITopicsOperations Topics { get; private set; }
+
+ ///
+ /// Gets the ITopicTypesOperations.
+ ///
+ public virtual ITopicTypesOperations TopicTypes { get; private set; }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ protected EventGridManagementClient(params DelegatingHandler[] handlers) : base(handlers)
+ {
+ Initialize();
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ protected EventGridManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers)
+ {
+ Initialize();
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ protected EventGridManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ BaseUri = baseUri;
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ protected EventGridManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ BaseUri = baseUri;
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public EventGridManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
+ {
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ Credentials = credentials;
+ if (Credentials != null)
+ {
+ Credentials.InitializeServiceClient(this);
+ }
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public EventGridManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)
+ {
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ Credentials = credentials;
+ if (Credentials != null)
+ {
+ Credentials.InitializeServiceClient(this);
+ }
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public EventGridManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ BaseUri = baseUri;
+ Credentials = credentials;
+ if (Credentials != null)
+ {
+ Credentials.InitializeServiceClient(this);
+ }
+ }
+
+ ///
+ /// Initializes a new instance of the EventGridManagementClient class.
+ ///
+ ///
+ /// Optional. The base URI of the service.
+ ///
+ ///
+ /// Required. Credentials needed for the client to connect to Azure.
+ ///
+ ///
+ /// Optional. The http client handler used to handle http transport.
+ ///
+ ///
+ /// Optional. The delegating handlers to add to the http client pipeline.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ public EventGridManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)
+ {
+ if (baseUri == null)
+ {
+ throw new System.ArgumentNullException("baseUri");
+ }
+ if (credentials == null)
+ {
+ throw new System.ArgumentNullException("credentials");
+ }
+ BaseUri = baseUri;
+ Credentials = credentials;
+ if (Credentials != null)
+ {
+ Credentials.InitializeServiceClient(this);
+ }
+ }
+
+ ///
+ /// An optional partial-method to perform custom initialization.
+ ///
+ partial void CustomInitialize();
+ ///
+ /// Initializes client properties.
+ ///
+ private void Initialize()
+ {
+ EventSubscriptions = new EventSubscriptionsOperations(this);
+ Operations = new Operations(this);
+ Topics = new TopicsOperations(this);
+ TopicTypes = new TopicTypesOperations(this);
+ BaseUri = new System.Uri("https://management.azure.com");
+ ApiVersion = "2017-06-15-preview";
+ AcceptLanguage = "en-US";
+ LongRunningOperationRetryTimeout = 30;
+ GenerateClientRequestId = true;
+ SerializationSettings = new JsonSerializerSettings
+ {
+ Formatting = Newtonsoft.Json.Formatting.Indented,
+ DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
+ DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
+ NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
+ ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
+ ContractResolver = new ReadOnlyJsonContractResolver(),
+ Converters = new List
+ {
+ new Iso8601TimeSpanConverter()
+ }
+ };
+ SerializationSettings.Converters.Add(new TransformationJsonConverter());
+ DeserializationSettings = new JsonSerializerSettings
+ {
+ DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
+ DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
+ NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
+ ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
+ ContractResolver = new ReadOnlyJsonContractResolver(),
+ Converters = new List
+ {
+ new Iso8601TimeSpanConverter()
+ }
+ };
+ CustomInitialize();
+ DeserializationSettings.Converters.Add(new TransformationJsonConverter());
+ DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
+ }
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/EventSubscriptionsOperations.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/EventSubscriptionsOperations.cs
new file mode 100644
index 000000000000..66b311957de0
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/EventSubscriptionsOperations.cs
@@ -0,0 +1,2980 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// EventSubscriptionsOperations operations.
+ ///
+ internal partial class EventSubscriptionsOperations : IServiceOperations, IEventSubscriptionsOperations
+ {
+ ///
+ /// Initializes a new instance of the EventSubscriptionsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal EventSubscriptionsOperations(EventGridManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the EventGridManagementClient
+ ///
+ public EventGridManagementClient Client { get; private set; }
+
+ ///
+ /// Get an event subscription
+ ///
+ ///
+ /// Get properties of an event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (scope == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scope");
+ }
+ if (eventSubscriptionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("scope", scope);
+ tracingParameters.Add("eventSubscriptionName", eventSubscriptionName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}").ToString();
+ _url = _url.Replace("{scope}", scope);
+ _url = _url.Replace("{eventSubscriptionName}", System.Uri.EscapeDataString(eventSubscriptionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified scope.
+ /// Existing event subscriptions cannot be updated with this API and should
+ /// instead use the Update event subscription API.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to be
+ /// created. The scope can be a subscription, or a resource group, or a top
+ /// level resource belonging to a resource provider namespace, or an EventGrid
+ /// topic. For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription names must
+ /// be between 3 and 64 characters in length and use alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(scope, eventSubscriptionName, eventSubscriptionInfo, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(scope, eventSubscriptionName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a subscription,
+ /// or a resource group, or a top level resource belonging to a resource
+ /// provider namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> UpdateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get full URL of an event subscription
+ ///
+ ///
+ /// Get the full endpoint URL for an event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetFullUrlWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (scope == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scope");
+ }
+ if (eventSubscriptionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("scope", scope);
+ tracingParameters.Add("eventSubscriptionName", eventSubscriptionName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetFullUrl", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl").ToString();
+ _url = _url.Replace("{scope}", scope);
+ _url = _url.Replace("{eventSubscriptionName}", System.Uri.EscapeDataString(eventSubscriptionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Get an aggregated list of all global event subscriptions under an Azure
+ /// subscription
+ ///
+ ///
+ /// List all aggregated global event subscriptions under a specific Azure
+ /// subscription
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListGlobalBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListGlobalBySubscription", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all global event subscriptions for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under an Azure subscription for a topic
+ /// type.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListGlobalBySubscriptionForTopicTypeWithHttpMessagesAsync(string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (topicTypeName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "topicTypeName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("topicTypeName", topicTypeName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListGlobalBySubscriptionForTopicType", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{topicTypeName}", System.Uri.EscapeDataString(topicTypeName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all global event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all global event subscriptions under a specific Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListGlobalByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListGlobalByResourceGroup", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all global event subscriptions under a resource group for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under a resource group for a specific
+ /// topic type.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListGlobalByResourceGroupForTopicTypeWithHttpMessagesAsync(string resourceGroupName, string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (topicTypeName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "topicTypeName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("topicTypeName", topicTypeName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListGlobalByResourceGroupForTopicType", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topicTypes/{topicTypeName}/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{topicTypeName}", System.Uri.EscapeDataString(topicTypeName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListRegionalBySubscriptionWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListRegionalBySubscription", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and resource group
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListRegionalByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListRegionalByResourceGroup", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription for a
+ /// topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and topic type.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListRegionalBySubscriptionForTopicTypeWithHttpMessagesAsync(string location, string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (topicTypeName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "topicTypeName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("topicTypeName", topicTypeName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListRegionalBySubscriptionForTopicType", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{topicTypeName}", System.Uri.EscapeDataString(topicTypeName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription and
+ /// resource group for a topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and resource group and topic type
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListRegionalByResourceGroupForTopicTypeWithHttpMessagesAsync(string resourceGroupName, string location, string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (topicTypeName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "topicTypeName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("topicTypeName", topicTypeName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListRegionalByResourceGroupForTopicType", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{topicTypeName}", System.Uri.EscapeDataString(topicTypeName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// List all event subscriptions for a specific topic
+ ///
+ ///
+ /// List all event subscriptions that have been created for a specific topic
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Namespace of the provider of the topic
+ ///
+ ///
+ /// Name of the resource type
+ ///
+ ///
+ /// Name of the resource
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListByResourceWithHttpMessagesAsync(string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (providerNamespace == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "providerNamespace");
+ }
+ if (resourceTypeName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceTypeName");
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("providerNamespace", providerNamespace);
+ tracingParameters.Add("resourceTypeName", resourceTypeName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByResource", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{providerNamespace}", System.Uri.EscapeDataString(providerNamespace));
+ _url = _url.Replace("{resourceTypeName}", System.Uri.EscapeDataString(resourceTypeName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified scope.
+ /// Existing event subscriptions cannot be updated with this API and should
+ /// instead use the Update event subscription API.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to be
+ /// created. The scope can be a subscription, or a resource group, or a top
+ /// level resource belonging to a resource provider namespace, or an EventGrid
+ /// topic. For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription names must
+ /// be between 3 and 64 characters in length and use alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> BeginCreateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (scope == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scope");
+ }
+ if (eventSubscriptionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionName");
+ }
+ if (eventSubscriptionInfo == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionInfo");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("scope", scope);
+ tracingParameters.Add("eventSubscriptionName", eventSubscriptionName);
+ tracingParameters.Add("eventSubscriptionInfo", eventSubscriptionInfo);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}").ToString();
+ _url = _url.Replace("{scope}", scope);
+ _url = _url.Replace("{eventSubscriptionName}", System.Uri.EscapeDataString(eventSubscriptionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(eventSubscriptionInfo != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(eventSubscriptionInfo, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 201)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task BeginDeleteWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (scope == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scope");
+ }
+ if (eventSubscriptionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("scope", scope);
+ tracingParameters.Add("eventSubscriptionName", eventSubscriptionName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}").ToString();
+ _url = _url.Replace("{scope}", scope);
+ _url = _url.Replace("{eventSubscriptionName}", System.Uri.EscapeDataString(eventSubscriptionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a subscription,
+ /// or a resource group, or a top level resource belonging to a resource
+ /// provider namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> BeginUpdateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (scope == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scope");
+ }
+ if (eventSubscriptionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionName");
+ }
+ if (eventSubscriptionUpdateParameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionUpdateParameters");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("scope", scope);
+ tracingParameters.Add("eventSubscriptionName", eventSubscriptionName);
+ tracingParameters.Add("eventSubscriptionUpdateParameters", eventSubscriptionUpdateParameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}").ToString();
+ _url = _url.Replace("{scope}", scope);
+ _url = _url.Replace("{eventSubscriptionName}", System.Uri.EscapeDataString(eventSubscriptionName));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(eventSubscriptionUpdateParameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(eventSubscriptionUpdateParameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 201)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/EventSubscriptionsOperationsExtensions.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/EventSubscriptionsOperationsExtensions.cs
new file mode 100644
index 000000000000..eca50a9e0b64
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/EventSubscriptionsOperationsExtensions.cs
@@ -0,0 +1,1005 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for EventSubscriptionsOperations.
+ ///
+ public static partial class EventSubscriptionsOperationsExtensions
+ {
+ ///
+ /// Get an event subscription
+ ///
+ ///
+ /// Get properties of an event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ public static EventSubscription Get(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName)
+ {
+ return operations.GetAsync(scope, eventSubscriptionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get an event subscription
+ ///
+ ///
+ /// Get properties of an event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(scope, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified scope.
+ /// Existing event subscriptions cannot be updated with this API and should
+ /// instead use the Update event subscription API.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to be
+ /// created. The scope can be a subscription, or a resource group, or a top
+ /// level resource belonging to a resource provider namespace, or an EventGrid
+ /// topic. For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription names must
+ /// be between 3 and 64 characters in length and use alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ public static EventSubscription Create(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo)
+ {
+ return operations.CreateAsync(scope, eventSubscriptionName, eventSubscriptionInfo).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified scope.
+ /// Existing event subscriptions cannot be updated with this API and should
+ /// instead use the Update event subscription API.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to be
+ /// created. The scope can be a subscription, or a resource group, or a top
+ /// level resource belonging to a resource provider namespace, or an EventGrid
+ /// topic. For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription names must
+ /// be between 3 and 64 characters in length and use alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateWithHttpMessagesAsync(scope, eventSubscriptionName, eventSubscriptionInfo, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ public static void Delete(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName)
+ {
+ operations.DeleteAsync(scope, eventSubscriptionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(scope, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a subscription,
+ /// or a resource group, or a top level resource belonging to a resource
+ /// provider namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ public static EventSubscription Update(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters)
+ {
+ return operations.UpdateAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a subscription,
+ /// or a resource group, or a top level resource belonging to a resource
+ /// provider namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task UpdateAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Get full URL of an event subscription
+ ///
+ ///
+ /// Get the full endpoint URL for an event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ public static EventSubscriptionFullUrl GetFullUrl(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName)
+ {
+ return operations.GetFullUrlAsync(scope, eventSubscriptionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get full URL of an event subscription
+ ///
+ ///
+ /// Get the full endpoint URL for an event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetFullUrlAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetFullUrlWithHttpMessagesAsync(scope, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Get an aggregated list of all global event subscriptions under an Azure
+ /// subscription
+ ///
+ ///
+ /// List all aggregated global event subscriptions under a specific Azure
+ /// subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ public static IEnumerable ListGlobalBySubscription(this IEventSubscriptionsOperations operations)
+ {
+ return operations.ListGlobalBySubscriptionAsync().GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Get an aggregated list of all global event subscriptions under an Azure
+ /// subscription
+ ///
+ ///
+ /// List all aggregated global event subscriptions under a specific Azure
+ /// subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListGlobalBySubscriptionAsync(this IEventSubscriptionsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListGlobalBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all global event subscriptions for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under an Azure subscription for a topic
+ /// type.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ public static IEnumerable ListGlobalBySubscriptionForTopicType(this IEventSubscriptionsOperations operations, string topicTypeName)
+ {
+ return operations.ListGlobalBySubscriptionForTopicTypeAsync(topicTypeName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all global event subscriptions for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under an Azure subscription for a topic
+ /// type.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListGlobalBySubscriptionForTopicTypeAsync(this IEventSubscriptionsOperations operations, string topicTypeName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListGlobalBySubscriptionForTopicTypeWithHttpMessagesAsync(topicTypeName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all global event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all global event subscriptions under a specific Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ public static IEnumerable ListGlobalByResourceGroup(this IEventSubscriptionsOperations operations, string resourceGroupName)
+ {
+ return operations.ListGlobalByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all global event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all global event subscriptions under a specific Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListGlobalByResourceGroupAsync(this IEventSubscriptionsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListGlobalByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all global event subscriptions under a resource group for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under a resource group for a specific
+ /// topic type.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ public static IEnumerable ListGlobalByResourceGroupForTopicType(this IEventSubscriptionsOperations operations, string resourceGroupName, string topicTypeName)
+ {
+ return operations.ListGlobalByResourceGroupForTopicTypeAsync(resourceGroupName, topicTypeName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all global event subscriptions under a resource group for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under a resource group for a specific
+ /// topic type.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListGlobalByResourceGroupForTopicTypeAsync(this IEventSubscriptionsOperations operations, string resourceGroupName, string topicTypeName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListGlobalByResourceGroupForTopicTypeWithHttpMessagesAsync(resourceGroupName, topicTypeName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the location
+ ///
+ public static IEnumerable ListRegionalBySubscription(this IEventSubscriptionsOperations operations, string location)
+ {
+ return operations.ListRegionalBySubscriptionAsync(location).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListRegionalBySubscriptionAsync(this IEventSubscriptionsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListRegionalBySubscriptionWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and resource group
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ public static IEnumerable ListRegionalByResourceGroup(this IEventSubscriptionsOperations operations, string resourceGroupName, string location)
+ {
+ return operations.ListRegionalByResourceGroupAsync(resourceGroupName, location).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and resource group
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListRegionalByResourceGroupAsync(this IEventSubscriptionsOperations operations, string resourceGroupName, string location, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListRegionalByResourceGroupWithHttpMessagesAsync(resourceGroupName, location, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription for a
+ /// topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and topic type.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ public static IEnumerable ListRegionalBySubscriptionForTopicType(this IEventSubscriptionsOperations operations, string location, string topicTypeName)
+ {
+ return operations.ListRegionalBySubscriptionForTopicTypeAsync(location, topicTypeName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription for a
+ /// topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and topic type.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListRegionalBySubscriptionForTopicTypeAsync(this IEventSubscriptionsOperations operations, string location, string topicTypeName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListRegionalBySubscriptionForTopicTypeWithHttpMessagesAsync(location, topicTypeName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription and
+ /// resource group for a topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and resource group and topic type
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ public static IEnumerable ListRegionalByResourceGroupForTopicType(this IEventSubscriptionsOperations operations, string resourceGroupName, string location, string topicTypeName)
+ {
+ return operations.ListRegionalByResourceGroupForTopicTypeAsync(resourceGroupName, location, topicTypeName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all regional event subscriptions under an Azure subscription and
+ /// resource group for a topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a specific Azure
+ /// subscription and resource group and topic type
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListRegionalByResourceGroupForTopicTypeAsync(this IEventSubscriptionsOperations operations, string resourceGroupName, string location, string topicTypeName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListRegionalByResourceGroupForTopicTypeWithHttpMessagesAsync(resourceGroupName, location, topicTypeName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// List all event subscriptions for a specific topic
+ ///
+ ///
+ /// List all event subscriptions that have been created for a specific topic
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Namespace of the provider of the topic
+ ///
+ ///
+ /// Name of the resource type
+ ///
+ ///
+ /// Name of the resource
+ ///
+ public static IEnumerable ListByResource(this IEventSubscriptionsOperations operations, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName)
+ {
+ return operations.ListByResourceAsync(resourceGroupName, providerNamespace, resourceTypeName, resourceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List all event subscriptions for a specific topic
+ ///
+ ///
+ /// List all event subscriptions that have been created for a specific topic
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Namespace of the provider of the topic
+ ///
+ ///
+ /// Name of the resource type
+ ///
+ ///
+ /// Name of the resource
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByResourceAsync(this IEventSubscriptionsOperations operations, string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByResourceWithHttpMessagesAsync(resourceGroupName, providerNamespace, resourceTypeName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified scope.
+ /// Existing event subscriptions cannot be updated with this API and should
+ /// instead use the Update event subscription API.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to be
+ /// created. The scope can be a subscription, or a resource group, or a top
+ /// level resource belonging to a resource provider namespace, or an EventGrid
+ /// topic. For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription names must
+ /// be between 3 and 64 characters in length and use alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ public static EventSubscription BeginCreate(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo)
+ {
+ return operations.BeginCreateAsync(scope, eventSubscriptionName, eventSubscriptionInfo).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified scope.
+ /// Existing event subscriptions cannot be updated with this API and should
+ /// instead use the Update event subscription API.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to be
+ /// created. The scope can be a subscription, or a resource group, or a top
+ /// level resource belonging to a resource provider namespace, or an EventGrid
+ /// topic. For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription names must
+ /// be between 3 and 64 characters in length and use alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginCreateAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginCreateWithHttpMessagesAsync(scope, eventSubscriptionName, eventSubscriptionInfo, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ public static void BeginDelete(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName)
+ {
+ operations.BeginDeleteAsync(scope, eventSubscriptionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a subscription, or a
+ /// resource group, or a top level resource belonging to a resource provider
+ /// namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginDeleteAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginDeleteWithHttpMessagesAsync(scope, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a subscription,
+ /// or a resource group, or a top level resource belonging to a resource
+ /// provider namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ public static EventSubscription BeginUpdate(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters)
+ {
+ return operations.BeginUpdateAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a subscription,
+ /// or a resource group, or a top level resource belonging to a resource
+ /// provider namespace, or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
+ /// resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginUpdateAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(scope, eventSubscriptionName, eventSubscriptionUpdateParameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/IEventGridManagementClient.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/IEventGridManagementClient.cs
new file mode 100644
index 000000000000..93bb44edbcec
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/IEventGridManagementClient.cs
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+
+ ///
+ /// Azure EventGrid Management Client
+ ///
+ public partial interface IEventGridManagementClient : System.IDisposable
+ {
+ ///
+ /// The base URI of the service.
+ ///
+ System.Uri BaseUri { get; set; }
+
+ ///
+ /// Gets or sets json serialization settings.
+ ///
+ JsonSerializerSettings SerializationSettings { get; }
+
+ ///
+ /// Gets or sets json deserialization settings.
+ ///
+ JsonSerializerSettings DeserializationSettings { get; }
+
+ ///
+ /// Credentials needed for the client to connect to Azure.
+ ///
+ ServiceClientCredentials Credentials { get; }
+
+ ///
+ /// Subscription credentials that uniquely identify a Microsoft Azure
+ /// subscription. The subscription ID forms part of the URI for every
+ /// service call.
+ ///
+ string SubscriptionId { get; set; }
+
+ ///
+ /// Version of the API to be used with the client request.
+ ///
+ string ApiVersion { get; }
+
+ ///
+ /// Gets or sets the preferred language for the response.
+ ///
+ string AcceptLanguage { get; set; }
+
+ ///
+ /// Gets or sets the retry timeout in seconds for Long Running
+ /// Operations. Default value is 30.
+ ///
+ int? LongRunningOperationRetryTimeout { get; set; }
+
+ ///
+ /// When set to true a unique x-ms-client-request-id value is generated
+ /// and included in each request. Default is true.
+ ///
+ bool? GenerateClientRequestId { get; set; }
+
+
+ ///
+ /// Gets the IEventSubscriptionsOperations.
+ ///
+ IEventSubscriptionsOperations EventSubscriptions { get; }
+
+ ///
+ /// Gets the IOperations.
+ ///
+ IOperations Operations { get; }
+
+ ///
+ /// Gets the ITopicsOperations.
+ ///
+ ITopicsOperations Topics { get; }
+
+ ///
+ /// Gets the ITopicTypesOperations.
+ ///
+ ITopicTypesOperations TopicTypes { get; }
+
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/IEventSubscriptionsOperations.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/IEventSubscriptionsOperations.cs
new file mode 100644
index 000000000000..c809d1872116
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/IEventSubscriptionsOperations.cs
@@ -0,0 +1,608 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// EventSubscriptionsOperations operations.
+ ///
+ public partial interface IEventSubscriptionsOperations
+ {
+ ///
+ /// Get an event subscription
+ ///
+ ///
+ /// Get properties of an event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a
+ /// subscription, or a resource group, or a top level resource
+ /// belonging to a resource provider namespace, or an EventGrid topic.
+ /// For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified
+ /// scope. Existing event subscriptions cannot be updated with this API
+ /// and should instead use the Update event subscription API.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to
+ /// be created. The scope can be a subscription, or a resource group,
+ /// or a top level resource belonging to a resource provider namespace,
+ /// or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription
+ /// names must be between 3 and 64 characters in length and use
+ /// alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a
+ /// subscription, or a resource group, or a top level resource
+ /// belonging to a resource provider namespace, or an EventGrid topic.
+ /// For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a
+ /// subscription, or a resource group, or a top level resource
+ /// belonging to a resource provider namespace, or an EventGrid topic.
+ /// For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> UpdateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get full URL of an event subscription
+ ///
+ ///
+ /// Get the full endpoint URL for an event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a
+ /// subscription, or a resource group, or a top level resource
+ /// belonging to a resource provider namespace, or an EventGrid topic.
+ /// For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetFullUrlWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get an aggregated list of all global event subscriptions under an
+ /// Azure subscription
+ ///
+ ///
+ /// List all aggregated global event subscriptions under a specific
+ /// Azure subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListGlobalBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all global event subscriptions for a topic type
+ ///
+ ///
+ /// List all global event subscriptions under an Azure subscription for
+ /// a topic type.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListGlobalBySubscriptionForTopicTypeWithHttpMessagesAsync(string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all global event subscriptions under an Azure subscription and
+ /// resource group
+ ///
+ ///
+ /// List all global event subscriptions under a specific Azure
+ /// subscription and resource group
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListGlobalByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all global event subscriptions under a resource group for a
+ /// topic type
+ ///
+ ///
+ /// List all global event subscriptions under a resource group for a
+ /// specific topic type.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListGlobalByResourceGroupForTopicTypeWithHttpMessagesAsync(string resourceGroupName, string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ ///
+ ///
+ /// List all event subscriptions from the given location under a
+ /// specific Azure subscription
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListRegionalBySubscriptionWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ /// and resource group
+ ///
+ ///
+ /// List all event subscriptions from the given location under a
+ /// specific Azure subscription and resource group
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListRegionalByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ /// for a topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a
+ /// specific Azure subscription and topic type.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListRegionalBySubscriptionForTopicTypeWithHttpMessagesAsync(string location, string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all regional event subscriptions under an Azure subscription
+ /// and resource group for a topic type
+ ///
+ ///
+ /// List all event subscriptions from the given location under a
+ /// specific Azure subscription and resource group and topic type
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the location
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListRegionalByResourceGroupForTopicTypeWithHttpMessagesAsync(string resourceGroupName, string location, string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List all event subscriptions for a specific topic
+ ///
+ ///
+ /// List all event subscriptions that have been created for a specific
+ /// topic
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Namespace of the provider of the topic
+ ///
+ ///
+ /// Name of the resource type
+ ///
+ ///
+ /// Name of the resource
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByResourceWithHttpMessagesAsync(string resourceGroupName, string providerNamespace, string resourceTypeName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create an event subscription
+ ///
+ ///
+ /// Asynchronously creates a new event subscription to the specified
+ /// scope. Existing event subscriptions cannot be updated with this API
+ /// and should instead use the Update event subscription API.
+ ///
+ ///
+ /// The scope of the resource to which the event subscription needs to
+ /// be created. The scope can be a subscription, or a resource group,
+ /// or a top level resource belonging to a resource provider namespace,
+ /// or an EventGrid topic. For example, use
+ /// '/subscriptions/{subscriptionId}/' for a subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created. Event subscription
+ /// names must be between 3 and 64 characters in length and use
+ /// alphanumeric letters only.
+ ///
+ ///
+ /// Event subscription properties containing the destination and filter
+ /// information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete an event subscription
+ ///
+ ///
+ /// Delete an existing event subscription
+ ///
+ ///
+ /// The scope of the event subscription. The scope can be a
+ /// subscription, or a resource group, or a top level resource
+ /// belonging to a resource provider namespace, or an EventGrid topic.
+ /// For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Update an event subscription
+ ///
+ ///
+ /// Asynchronously updates an existing event subscription.
+ ///
+ ///
+ /// The scope of existing event subscription. The scope can be a
+ /// subscription, or a resource group, or a top level resource
+ /// belonging to a resource provider namespace, or an EventGrid topic.
+ /// For example, use '/subscriptions/{subscriptionId}/' for a
+ /// subscription,
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
+ /// for a resource group, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
+ /// for a resource, and
+ /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
+ /// for an EventGrid topic.
+ ///
+ ///
+ /// Name of the event subscription to be created
+ ///
+ ///
+ /// Updated event subscription information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginUpdateWithHttpMessagesAsync(string scope, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/IOperations.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/IOperations.cs
new file mode 100644
index 000000000000..9490ac4323c7
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/IOperations.cs
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Operations operations.
+ ///
+ public partial interface IOperations
+ {
+ ///
+ /// List available operations
+ ///
+ ///
+ /// List the available operations supported by the Microsoft.EventGrid
+ /// resource provider
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/ITopicTypesOperations.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/ITopicTypesOperations.cs
new file mode 100644
index 000000000000..ee2b0267204d
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/ITopicTypesOperations.cs
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// TopicTypesOperations operations.
+ ///
+ public partial interface ITopicTypesOperations
+ {
+ ///
+ /// List topic types
+ ///
+ ///
+ /// List all registered topic types
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Get a topic type
+ ///
+ ///
+ /// Get information about a topic type
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List event types
+ ///
+ ///
+ /// List event types for a topic type
+ ///
+ ///
+ /// Name of the topic type
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListEventTypesWithHttpMessagesAsync(string topicTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/SDKs/EventGrid/Management.EventGrid/Generated/ITopicsOperations.cs b/src/SDKs/EventGrid/Management.EventGrid/Generated/ITopicsOperations.cs
new file mode 100644
index 000000000000..5d9ee120a5c0
--- /dev/null
+++ b/src/SDKs/EventGrid/Management.EventGrid/Generated/ITopicsOperations.cs
@@ -0,0 +1,307 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+
+namespace Microsoft.Azure.Management.EventGrid
+{
+ using Microsoft.Azure;
+ using Microsoft.Azure.Management;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// TopicsOperations operations.
+ ///
+ public partial interface ITopicsOperations
+ {
+ ///
+ /// Get a topic
+ ///
+ ///
+ /// Get properties of a topic
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create a topic
+ ///
+ ///
+ /// Asynchronously creates a new topic with the specified parameters.
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic
+ ///
+ ///
+ /// Topic information
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string topicName, Topic topicInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete a topic
+ ///
+ ///
+ /// Delete existing topic
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List topics under an Azure subscription
+ ///
+ ///
+ /// List all the topics under an Azure subscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List topics under a resource group
+ ///
+ ///
+ /// List all the topics under a resource group
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// List keys for a topic
+ ///
+ ///
+ /// List the two keys used to publish to a topic
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListSharedAccessKeysWithHttpMessagesAsync(string resourceGroupName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Regenerate key for a topic
+ ///
+ ///
+ /// Regenerate a shared access key for a topic
+ ///
+ ///
+ /// The name of the resource group within the user's subscription.
+ ///
+ ///
+ /// Name of the topic
+ ///
+ ///
+ /// Key name to regenerate key1 or key2
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string topicName, string keyName, Dictionary