Repository: cloud-custodian/cloud-custodian

Issue:
Add event stream support to Azure Auto-Tag-User action
Related to issue #2177.

The auto-tag-user actions needs to be able to support an event stream. Related AWS functionality: http://capitalone.github.io/cloud-custodian/docs/usecases/ec2-auto-tag-user.html

Example: After a resource has been created, the activity can be picked up by Event Hub, and the event can trigger an Azure function to run custodian to automatically tag that resource.


Discussion:

Resolving patch:
diff --git a/tools/c7n_azure/c7n_azure/actions.py b/tools/c7n_azure/c7n_azure/actions.py
--- a/tools/c7n_azure/c7n_azure/actions.py
+++ b/tools/c7n_azure/c7n_azure/actions.py
@@ -15,8 +15,11 @@
 Actions to perform on Azure resources
 """
 import datetime
+import logging
 from datetime import timedelta
 
+import jmespath
+from c7n_azure import constants
 from c7n_azure.storage_utils import StorageUtilities
 from c7n_azure.utils import utcnow
 from c7n_azure.tags import TagHelper
@@ -24,7 +27,7 @@
 from msrestazure.azure_exceptions import CloudError
 
 from c7n import utils
-from c7n.actions import BaseAction, BaseNotify
+from c7n.actions import BaseAction, BaseNotify, EventAction
 from c7n.filters import FilterValidationError
 from c7n.filters.core import PolicyValidationError
 from c7n.filters.offhours import Time
@@ -117,7 +120,7 @@ def process_resource(self, resource):
         TagHelper.remove_tags(self, resource, tags_to_delete)
 
 
-class AutoTagUser(BaseAction):
+class AutoTagUser(EventAction):
     """Attempts to tag a resource with the first user who created/modified it.
 
     .. code-block:: yaml
@@ -141,6 +144,11 @@ class AutoTagUser(BaseAction):
     query_select = "eventTimestamp, operationName, caller"
     max_query_days = 90
 
+    # compiled JMES paths
+    sp_jmes_path = jmespath.compile(constants.EVENT_GRID_SP_NAME_JMES_PATH)
+    user_jmes_path = jmespath.compile(constants.EVENT_GRID_USER_NAME_JMES_PATH)
+    principal_type_jmes_path = jmespath.compile(constants.EVENT_GRID_PRINCIPAL_TYPE_JMES_PATH)
+
     schema = utils.type_schema(
         'auto-tag-user',
         required=['tag'],
@@ -150,65 +158,85 @@ class AutoTagUser(BaseAction):
 
     def __init__(self, data=None, manager=None, log_dir=None):
         super(AutoTagUser, self).__init__(data, manager, log_dir)
+        self.log = logging.getLogger('custodian.azure.actions.auto-tag-user')
 
     def validate(self):
+
         if self.manager.action_registry.get('tag') is None:
             raise FilterValidationError("Resource does not support tagging")
 
+        if self.manager.data.get('mode', {}).get('type') == 'azure-event-grid' \
+                and self.data.get('days') is not None:
+            raise PolicyValidationError(
+                "Auto tag user in event mode does not use days.")
+
         if (self.data.get('days') is not None and
                 (self.data.get('days') < 1 or self.data.get('days') > 90)):
             raise FilterValidationError("Days must be between 1 and 90")
 
         return self
 
-    def process(self, resources):
+    def process(self, resources, event=None):
         self.session = self.manager.get_session()
         self.client = self.manager.get_client('azure.mgmt.monitor.MonitorManagementClient')
         self.tag_key = self.data['tag']
         self.should_update = self.data.get('update', False)
+
         with self.executor_factory(max_workers=3) as w:
-            list(w.map(self.process_resource, resources))
+            if event:
+                list(w.map(self.process_resource, resources, event))
+            else:
+                list(w.map(self.process_resource, resources))
 
-    def process_resource(self, resource):
+    def process_resource(self, resource, event_item=None):
         # if the auto-tag-user policy set update to False (or it's unset) then we
         # will skip writing their UserName tag and not overwrite pre-existing values
         if not self.should_update and resource.get('tags', {}).get(self.tag_key, None):
             return
 
         user = self.default_user
-
-        # Calculate start time
-        delta_days = self.data.get('days', self.max_query_days)
-        start_time = utcnow() - datetime.timedelta(days=delta_days)
-
-        # resource group type
-        if self.manager.type == 'resourcegroup':
-            resource_type = "Microsoft.Resources/subscriptions/resourcegroups"
-            query_filter = " and ".join([
-                "eventTimestamp ge '%s'" % start_time,
-                "resourceGroupName eq '%s'" % resource['name'],
-                "eventChannels eq 'Operation'"
-            ])
-        # other Azure resources
+        if event_item:
+            principal_type = self.principal_type_jmes_path.search(event_item)
+            if principal_type == 'User':
+                user = self.user_jmes_path.search(event_item) or user
+            elif principal_type == 'ServicePrincipal':
+                user = self.sp_jmes_path.search(event_item) or user
+            else:
+                self.log.error('Principal type of event cannot be determined.')
+                return
         else:
-            resource_type = resource['type']
-            query_filter = " and ".join([
-                "eventTimestamp ge '%s'" % start_time,
-                "resourceUri eq '%s'" % resource['id'],
-                "eventChannels eq 'Operation'"
-            ])
-
-        # fetch activity logs
-        logs = self.client.activity_logs.list(
-            filter=query_filter,
-            select=self.query_select
-        )
-
-        # get the user who issued the first operation
-        operation_name = "%s/write" % resource_type
-        first_op = self.get_first_operation(logs, operation_name)
-        if first_op is not None:
-            user = first_op.caller
+            # Calculate start time
+            delta_days = self.data.get('days', self.max_query_days)
+            start_time = utcnow() - datetime.timedelta(days=delta_days)
+
+            # resource group type
+            if self.manager.type == 'resourcegroup':
+                resource_type = "Microsoft.Resources/subscriptions/resourcegroups"
+                query_filter = " and ".join([
+                    "eventTimestamp ge '%s'" % start_time,
+                    "resourceGroupName eq '%s'" % resource['name'],
+                    "eventChannels eq 'Operation'"
+                ])
+            # other Azure resources
+            else:
+                resource_type = resource['type']
+                query_filter = " and ".join([
+                    "eventTimestamp ge '%s'" % start_time,
+                    "resourceUri eq '%s'" % resource['id'],
+                    "eventChannels eq 'Operation'"
+                ])
+
+            # fetch activity logs
+            logs = self.client.activity_logs.list(
+                filter=query_filter,
+                select=self.query_select
+            )
+
+            # get the user who issued the first operation
+            operation_name = "%s/write" % resource_type
+            first_op = self.get_first_operation(logs, operation_name)
+            if first_op is not None:
+                user = first_op.caller
 
         # issue tag action to label user
         try:
diff --git a/tools/c7n_azure/c7n_azure/constants.py b/tools/c7n_azure/c7n_azure/constants.py
--- a/tools/c7n_azure/c7n_azure/constants.py
+++ b/tools/c7n_azure/c7n_azure/constants.py
@@ -8,6 +8,14 @@
 FUNCTION_TIME_TRIGGER_MODE = 'azure-periodic'
 FUNCTION_KEY_URL = 'hostruntime/admin/host/systemkeys/_master?api-version=2018-02-01'
 
+"""
+Event Grid Mode
+"""
+EVENT_GRID_USER_NAME_JMES_PATH = \
+    'data.claims."http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"'
+EVENT_GRID_SP_NAME_JMES_PATH = 'data.claims.appid'
+EVENT_GRID_PRINCIPAL_TYPE_JMES_PATH = 'data.authorization.evidence.principalType'
+
 """
 Environment Variables
 """
diff --git a/tools/c7n_azure/c7n_azure/policy.py b/tools/c7n_azure/c7n_azure/policy.py
--- a/tools/c7n_azure/c7n_azure/policy.py
+++ b/tools/c7n_azure/c7n_azure/policy.py
@@ -309,7 +309,7 @@ def _create_storage_queue(self, queue_name, session):
             self.function_params.storage_account['name'])
 
         try:
-            StorageUtilities.create_queue_from_storage_account(storage_account, queue_name)
+            StorageUtilities.create_queue_from_storage_account(storage_account, queue_name, session)
             self.log.info("Storage queue creation succeeded")
             return storage_account
         except Exception as e:


Test patch:
diff --git a/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_mode_with_days_fails_validation.yaml b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_mode_with_days_fails_validation.yaml
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_mode_with_days_fails_validation.yaml
@@ -0,0 +1,102 @@
+interactions:
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.0
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GH51AA1T16SIrSvr4o2lZrWe/53RNoye6LmlMCx8dTP4PTaA7I7Si
+        rSMxAmQ//o2TX/L/AL8nmoQ/CAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 08:44:59 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [df6307c8-3093-4b8c-bdd5-234b65414e03]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3984,Microsoft.Compute/LowCostGet30Min;31882']
+      x-ms-ratelimit-remaining-subscription-reads: ['11987']
+      x-ms-request-id: [91e1f6c8-b7ff-43f1-8641-58168bba2e9b]
+      x-ms-routing-request-id: ['WESTUS2:20181102T084459Z:df6307c8-3093-4b8c-bdd5-234b65414e03']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.0
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GH51AA1T16SIrSvr4o2lZrWe/53RNoye6LmlMCx8dTP4PTaA7I7Si
+        rSMxAmQ//o2TX/L/AL8nmoQ/CAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 08:45:10 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [f6324f31-aac5-481b-8165-ba55f33bd909]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3983,Microsoft.Compute/LowCostGet30Min;31895']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [64d41172-b890-4cd5-beba-5fbf24200a55]
+      x-ms-routing-request-id: ['WESTUS2:20181102T084511Z:f6324f31-aac5-481b-8165-ba55f33bd909']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+version: 1
diff --git a/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_sp_event.yaml b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_sp_event.yaml
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_sp_event.yaml
@@ -0,0 +1,891 @@
+interactions:
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:30 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [10cad888-a0b5-4e7b-8901-82a4c1920ede]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31804']
+      x-ms-ratelimit-remaining-subscription-reads: ['11986']
+      x-ms-request-id: [d9b2b99a-1d30-4e14-ba13-6ffad4443a41]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173731Z:10cad888-a0b5-4e7b-8901-82a4c1920ede']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:43 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [ae56d2fb-0baa-489d-87a0-0096cedd3668]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31803']
+      x-ms-ratelimit-remaining-subscription-reads: ['11990']
+      x-ms-request-id: [e388244d-b124-4dd7-8fc1-638985ca90c3]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173743Z:ae56d2fb-0baa-489d-87a0-0096cedd3668']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:43 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [9b7dbd3f-0c33-4344-9bc2-5915b01d9f4f]
+      x-ms-ratelimit-remaining-subscription-reads: ['11997']
+      x-ms-request-id: [9b7dbd3f-0c33-4344-9bc2-5915b01d9f4f]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173743Z:9b7dbd3f-0c33-4344-9bc2-5915b01d9f4f']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:43 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [0dba9081-7433-4297-99a9-a30006e765b3]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31802']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [e993b379-d5b0-4117-8014-641a0778a37c]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173743Z:0dba9081-7433-4297-99a9-a30006e765b3']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1528']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHird29e/v3/fGAeX5oCqFDIqsaBN2eCiU8f8n/A7Gm2FN/CAAA
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/a076ec55-16cf-41c1-ad75-6091a0ce2d93?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:44 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [9d73d471-e1be-453c-aeeb-00f084dd9516]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1180']
+      x-ms-ratelimit-remaining-subscription-writes: ['1198']
+      x-ms-request-id: [a076ec55-16cf-41c1-ad75-6091a0ce2d93]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173744Z:9d73d471-e1be-453c-aeeb-00f084dd9516']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHird29e/v3/fGAeX5oCqFDIqsaBN2eCiU8f8n/A7Gm2FN/CAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:54 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [976624ba-310b-4484-8e4f-d0eac9c64cae]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31801']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [6a4100dc-4546-4908-a3e8-843fd1d35104]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173755Z:976624ba-310b-4484-8e4f-d0eac9c64cae']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:59 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [baf5d5d9-9fa9-4eb3-9031-f6a156b8b2c6]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29920']
+      x-ms-ratelimit-remaining-subscription-reads: ['11997']
+      x-ms-request-id: [6bd52900-b524-4a32-890f-01e2b0fce2e9]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173800Z:baf5d5d9-9fa9-4eb3-9031-f6a156b8b2c6']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:37:59 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [45a6a078-e944-4610-ac18-1cdf40de5159]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29919']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [833a9096-54ff-43c1-9be6-1747a1b6c29c]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173800Z:45a6a078-e944-4610-ac18-1cdf40de5159']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:00 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [8800b745-c83b-436e-a4e2-315705ce1e4e]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29918']
+      x-ms-ratelimit-remaining-subscription-reads: ['11998']
+      x-ms-request-id: [07ab78b3-8e34-4400-b6e4-32b5d73abba1]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173800Z:8800b745-c83b-436e-a4e2-315705ce1e4e']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:00 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [0c03e45c-3f40-44a2-b8ef-ebf281921d3f]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29917']
+      x-ms-ratelimit-remaining-subscription-reads: ['11984']
+      x-ms-request-id: [40a36b89-a54b-40ef-8adc-59a8eb0c3fcd]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173800Z:0c03e45c-3f40-44a2-b8ef-ebf281921d3f']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:00 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [c1783f04-2f52-4ea4-9c79-0cc792a0b26c]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29916']
+      x-ms-ratelimit-remaining-subscription-reads: ['11993']
+      x-ms-request-id: [c36a5b6b-d757-42a4-947c-26f96ffb6905]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173800Z:c1783f04-2f52-4ea4-9c79-0cc792a0b26c']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2aq1b5xAoVT16SIrSry1u3dv/74/HnDPD00jdEhkdYOg29OhhOcv+X8AhVVx94AIAAA=
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:07 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [9b6fd32b-1ec4-48a7-a43b-fcb1ec2c456a]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31800']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [29fb09fa-fe07-438b-b9cb-0e98b543adf7]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173807Z:9b6fd32b-1ec4-48a7-a43b-fcb1ec2c456a']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        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
+        h7/k+7/k/wHf7X//tBUAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['2239']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:06 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [c5db3ad7-c0db-4a02-9691-48d8b9ae3c37]
+      x-ms-original-request-ids: [73e5a7c1-8b9b-4852-a9aa-4cc678206dc1, 9ba03be5-7fb8-4853-96c0-9e89067a282f]
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [c5db3ad7-c0db-4a02-9691-48d8b9ae3c37]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173807Z:c5db3ad7-c0db-4a02-9691-48d8b9ae3c37']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:07 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [d0a25dd7-b8b9-4976-9f78-e3eaaebc3d5d]
+      x-ms-ratelimit-remaining-subscription-reads: ['11997']
+      x-ms-request-id: [d0a25dd7-b8b9-4976-9f78-e3eaaebc3d5d]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173807Z:d0a25dd7-b8b9-4976-9f78-e3eaaebc3d5d']
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1503']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHNyLyb05fv/n9f/KLKH8MEMEKvwyhpyQJz1/y/wBAoNBEYQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/a925f9cd-4469-4228-b1d6-3d99a58f51b4?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:08 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [cc870e65-bfea-4ca0-b2b1-a6b05f6b9b71]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1179']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [a925f9cd-4469-4228-b1d6-3d99a58f51b4]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173808Z:cc870e65-bfea-4ca0-b2b1-a6b05f6b9b71']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UdNm9Xtm2KRf/Qo/WhvZ/dge3d3e2fvze6DR/cePNrfH+9+urf36aef7Ow82tn5aMTv5MvZ8Buf
+        jh/u3/v00/3wFeqmXTd44/V6Os3zWT7Tb5aZQMp2HnyaT+/f3979dHq+vb873d3OZg/ub3+683A3
+        25nme7OH9z76jZNf8v8A0NjLgrcAAAA=
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:14 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [7b8fe16b-311d-4ef7-b17e-06dc2a358f98]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29914']
+      x-ms-ratelimit-remaining-subscription-reads: ['11997']
+      x-ms-request-id: [beae626d-f92e-47b4-9ef4-9e75ba5e4c3d]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173814Z:7b8fe16b-311d-4ef7-b17e-06dc2a358f98']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:14 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [63a703a3-6c16-4b42-9b8e-47731aa69e87]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3967,Microsoft.Compute/LowCostGet30Min;31793']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [c7608ec8-cd6e-4384-a49d-563105f881a1]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173815Z:63a703a3-6c16-4b42-9b8e-47731aa69e87']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHD03kO0Swwi9D6ClJwvOX/D9X2/2+YQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:38:19 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [a4de48fd-c1ac-4888-b9e5-a5fe850ea61a]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3970,Microsoft.Compute/LowCostGet30Min;31796']
+      x-ms-ratelimit-remaining-subscription-reads: ['11983']
+      x-ms-request-id: [b7fc1ea8-5f1e-4fac-b8a4-9741eb3703d6]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173819Z:a4de48fd-c1ac-4888-b9e5-a5fe850ea61a']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+version: 1
diff --git a/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_sp_event_missing_info.yaml b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_sp_event_missing_info.yaml
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_sp_event_missing_info.yaml
@@ -0,0 +1,656 @@
+interactions:
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:06 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [4f433327-4c8f-4191-9676-10f9832f369b]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3981,Microsoft.Compute/LowCostGet30Min;31758']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [4a0ea77f-01f6-40bc-8426-a45a7d6a28d5]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174207Z:4f433327-4c8f-4191-9676-10f9832f369b']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:08 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [7b26aaa8-f4fe-46ec-8f25-813b88abe375]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3980,Microsoft.Compute/LowCostGet30Min;31757']
+      x-ms-ratelimit-remaining-subscription-reads: ['11993']
+      x-ms-request-id: [e4ecefa5-980e-4fb3-8f8f-190ede7c23fe]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174208Z:7b26aaa8-f4fe-46ec-8f25-813b88abe375']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:08 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [6b55cc0c-6a52-4d9a-97af-c33377267d20]
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [6b55cc0c-6a52-4d9a-97af-c33377267d20]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174208Z:6b55cc0c-6a52-4d9a-97af-c33377267d20']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:08 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [0c7c6dd2-6ad6-4264-af38-47a6fac968f9]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3979,Microsoft.Compute/LowCostGet30Min;31756']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [e0eed137-baa9-4fe3-8f1d-6dfe2e842e2f]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174209Z:0c7c6dd2-6ad6-4264-af38-47a6fac968f9']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1530']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHira+Wb5fV1dIfEdjnh6YSOkSyykEQ7ilRwvOX/D/StdXHgQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/23b1b4d5-5173-4802-8f23-59d206dc6183?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:10 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [6ae7334c-6cea-4667-b828-173d86109f89]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1174']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [23b1b4d5-5173-4802-8f23-59d206dc6183]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174210Z:6ae7334c-6cea-4667-b828-173d86109f89']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHira+Wb5fV1dIfEdjnh6YSOkSyykEQ7ilRwvOX/D/StdXHgQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:10 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [22f486b0-3696-4d9a-b64d-46a3c9432012]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31755']
+      x-ms-ratelimit-remaining-subscription-reads: ['11998']
+      x-ms-request-id: [8043cfcc-ecbd-4d8c-ac34-c81354a0a548]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174210Z:22f486b0-3696-4d9a-b64d-46a3c9432012']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHira+Wb5fV1dIfEdjnh6YSOkSyykEQ7ilRwvOX/D/StdXHgQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:21 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [7d9e6a30-ec36-42f0-85cf-07dba731cf5e]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31754']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [8fabc84d-9c47-499f-aab4-51e12df07871]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174222Z:7d9e6a30-ec36-42f0-85cf-07dba731cf5e']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ
+        uc4/evS9X/zRqq5Wed0WefPRI/p8cTb76NFHu/cf3p9Ndve3Z9n+3vb+/fOD7cn57qfbD/KD3fzh
+        w+nOQT77aPTRPKtnV1mdv6yr86IkeADwuvgB/fbRk6wppr//8c5Hv2T0UdNWdXbhNysW9Per/Dyv
+        8+WUP1mtJ2XRzPOa3j3JltWymGYl9VGdUyP67KvJetmuX+f1Jf1JIN+u6cPdT8c7++Od7edvXtNn
+        9E1TVEv6vMzavGnRddU8LZq36KBq3lyvqKuPnhfL9TtqvswW+HM6RdvLxe//JTf9/Xd//yyfTWcH
+        D+59Otmb7e/cf/hw7+E0v3e+dy9/cG9nf/KQ3p3WOXXx5aqV/p7V1eIMQ8JX2XReLC/o01d5Nvtu
+        XbT4dJEt6esZegAyBah8t1lPmmldMJTmbpY9PHj4YH+yfX+2l23vzx4ebGcPDrLtewd75/ce7N6f
+        7TzI79Z5U63raf55Xa1XzV2g/vtfLu7SLF4WMxr/3S+KaV011Xk7PqkWq3Wb351Rn83drzHMX0L0
+        m2VthvbEHcQs5ZpGu9MnHbrY+/0PHhLXHDzcybN7n+4ToIeE+cHk3t6DvXuf7p5n+0SGDt1OF6v2
+        Gh9bmr2olv/vIhf+vMXQfskv+T5Rq2o8Hp8KwPqFEOtysX9/8YumF9mD1dvmqqBBZrNFsfyqyWsl
+        J3pc05/0VQkePamW58XFus4wYEAkXLJJmb/MmuaqqmfH63aeL1sSFGlwnpVNTlg0OZG5xYwBp2Xe
+        UuO3HmL6ydmSkDvPppB8mtsfBo1fSM93exjcXVz/5BcviulHTMZZkV0sq4ZG5tNzUlXtU/cNPsqX
+        oAch3tbrnAYueuaruqChzNt21Ty6ezegepMxZS8X40lZTcbTqs7HV8VyVl01Y0LqLs3jCCrxsoAm
+        IZZ83RK/ErTX6+k0z2fUFzVoRZG4cRneuSzqdp2VXzA7E11pIiszOx8Rldr5lCaszso1vmuzCx4F
+        KEa/UxP8JqqZBjOd57M1hv5Rtfxs64vtr0YHdw5JHcrvu/RH+4PPVi01PYFUVfXpIitKav7V8u2y
+        uloC029qUt+cvn7z+//kF9FJHRi8FSFCUBncfvJLRqTwY4bn4OF0Nr03Pd8+39slwzPZub892c0+
+        JQRnB7uT872d6ewBwdtkeGjGljP6/vd/utf8/pf3qC/DF17rb9L+fJD1+en1YjWp3jmtfHC+u3fw
+        6b3pvXv7+/uzyb0Dmq57987P9yefPsw/vX+PXiXpph6+5OkkEO9tfJQcx9NpRWNSvAzZXr9++vs/
+        f4UBfVO8c/zi6e+zffz6dCPzkGojrfv+1CAi41XM/edPPnp0bwcfeDYL6mSTVtYeabhdbZwty3VF
+        pCQZxpS9rzJWjdTM0ZaZa/p75ddAif7MWvr4o7vzapHf1X7ujqnt3YygVDUNZvb7v0Xr0Uf04ymN
+        h5rT99t1k6XH9Dy59+IH2cnu9XTvlP46fnr8E8dP6OeT4594Wl435ZMv8190+eDzr+b3Vp9/+6ee
+        f/nT3/7O9U5WzN78Pjuv7z1ZHTz8avqd0wdvfvDgB7/P+qdfnOzeW1/dn18+ubd+OH1R/vS97/zU
+        d05ffrXzfPHpV7/X3v3vfvf3/u5PfPF7zS6//ez68rvXv/fvc/2TP/XtT59+Xn/xydPnFz/98KvF
+        d7948YPPv/357v0nb2ar+9/ZPf3Jd69/cu/3Op2tT5fLafHt9sHv9brdXd+d5usnv0+2/1N7D19k
+        3/3O84ftV5/8XvVP/8T8vP1ifvGD529+78Un2fQnqhff/s6bnYP1cUEUX1T7J2fz/df3pr/Xq4N3
+        B7Pf57vffr1Yf/7p1VfvPln+1E985/5Pzb97+ub1/MX8DY3z4KvZ7u7zZy9P2k9/4vr3evqd2VlV
+        /t7L7MVPL49ff+ds+ntfLubzBy/uT+ZfrXYPXmevX757e/17ffcnfu+7X726Oz3+9vL4q7vHb+7+
+        ou/Mm2q1nJ391E9/9eVXP/17z1+ei11iBoaQ/+QXxxc02TLL9IVncYmRyrK6On3X5ks0/ZKUHLME
+        fautydAQx/zwLDIJ9vV21uRRARw2ySoaD8mFx+C/UaMMlAgjwPwgS2xGSh1/gwS7lcbqmjsl193c
+        zDzBOX76vLools+qWtQ+7N7/25CU6bpcZETWpqG5JsdETMKN4Eg9lc6/uSKjt2726ENyZmhCfjHN
+        D+FFOpF8fOILhfr6umnzxXHTFBdLmkRMckFKYpWV7AHsHExn+d7ebPtgb2+HQs97+fZkfzffzvL7
+        +w/3sk93zg/wEqGfLVt+48He+cODg8n59sGn57vb+7vZ+fbD3WyyvTd7MJ3t7O7OJvsPiPKECzW+
+        +3NLeMJczYv5ACxBgEhLdFyh/OF5dv5w/5xQIwdon6KN7clk7/723s7Ow+mDfPfew73bu0Kv937/
+        yz3qy0ij13qzK2RH9l2Rzad587atVtSxcYz0i+3dHfpQ3KK62d+mMdHft3SKFAa9EFJnmzSCcwYe
+        kDdw8ODg0+zTbGf/02k2oehrRrmI/dlOfjDd/5ReJzVM/XzJs0tg/t/uGhHcYc1sWIkcDecavSdF
+        iNx4HfwA92h37wE+IX8CAIjbbusfoVsa97CPRN9jBnteEg8MLBCYzJEaCXKaqgW1nX61IqTA/viW
+        UPr/s0EFLQ8+vU+allCHBVTb6aH/s2tVyRUlUubK3Sp7v/9JWWB+oI9pUKA0SQuxPokJicCarIMx
+        uqrI3ZANp3aUHsH6xs3D/dmDB/d2dx9IbLifk1bMJju7pPEne5OdT6f39ncP6CXilf8vmgewBmGv
+        0uV/+Eu+/0v+Hwhz2JC2FQAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['2241']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:21 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [207cd17f-9aef-4dd0-899f-5d84018de405]
+      x-ms-original-request-ids: [5114dabc-2d93-4cec-9064-af9cfcc4efb3, 3d7a59b4-29e9-4385-8370-438101fa7fde]
+      x-ms-ratelimit-remaining-subscription-reads: ['11998']
+      x-ms-request-id: [207cd17f-9aef-4dd0-899f-5d84018de405]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174222Z:207cd17f-9aef-4dd0-899f-5d84018de405']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:21 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [45350a99-0739-40ce-a19b-5a2f30f4dde6]
+      x-ms-ratelimit-remaining-subscription-reads: ['11993']
+      x-ms-request-id: [45350a99-0739-40ce-a19b-5a2f30f4dde6]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174222Z:45350a99-0739-40ce-a19b-5a2f30f4dde6']
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1503']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHNyLyb05fv/n9f/KLKH8MEMEKvwyhpyQJz1/y/wBAoNBEYQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/8110b123-0c6e-47e9-92a9-f51f0b2b631b?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:23 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [62f4963c-6504-44c2-89e8-fa85a8841d5c]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1173']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [8110b123-0c6e-47e9-92a9-f51f0b2b631b]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174224Z:62f4963c-6504-44c2-89e8-fa85a8841d5c']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHD03kO0Swwi9D6ClJwvOX/D9X2/2+YQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:42:34 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [39663922-2a90-4b4b-ab88-45011ea288f1]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31753']
+      x-ms-ratelimit-remaining-subscription-reads: ['11996']
+      x-ms-request-id: [d226d316-4c0d-4557-b386-52fbff7f5ec1]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174234Z:39663922-2a90-4b4b-ab88-45011ea288f1']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+version: 1
diff --git a/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_unsupported_principal_type.yaml b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_unsupported_principal_type.yaml
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_unsupported_principal_type.yaml
@@ -0,0 +1,733 @@
+interactions:
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:11 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [4c02e25e-5de9-4e32-a1f3-280d43dad328]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3985,Microsoft.Compute/LowCostGet30Min;31738']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [c7799801-7218-4436-81e4-2efb4a936149]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174911Z:4c02e25e-5de9-4e32-a1f3-280d43dad328']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:22 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [5a38e89f-707f-4a41-990a-d50056fb94df]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3984,Microsoft.Compute/LowCostGet30Min;31737']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [b4168213-7ef5-4559-8db7-33f55786313d]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174923Z:5a38e89f-707f-4a41-990a-d50056fb94df']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:22 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [e84084d9-bb8d-4629-ba26-2b52a2ff421c]
+      x-ms-ratelimit-remaining-subscription-reads: ['11991']
+      x-ms-request-id: [e84084d9-bb8d-4629-ba26-2b52a2ff421c]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174923Z:e84084d9-bb8d-4629-ba26-2b52a2ff421c']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:23 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [ae7c405c-7578-4ce0-9422-b32049a986a3]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3983,Microsoft.Compute/LowCostGet30Min;31736']
+      x-ms-ratelimit-remaining-subscription-reads: ['11993']
+      x-ms-request-id: [748bf21b-34e5-4035-b997-014be133c421]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174924Z:ae7c405c-7578-4ce0-9422-b32049a986a3']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:34 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [98992faf-893f-49a0-8802-f8f5bab8d101]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3982,Microsoft.Compute/LowCostGet30Min;31735']
+      x-ms-ratelimit-remaining-subscription-reads: ['11996']
+      x-ms-request-id: [dcbf5b25-00f8-4f6c-83e2-8946041b4256]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174935Z:98992faf-893f-49a0-8802-f8f5bab8d101']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:39 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [0f9f2922-3c13-43e4-a4c4-e2533b55e136]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29898']
+      x-ms-ratelimit-remaining-subscription-reads: ['11998']
+      x-ms-request-id: [35aa8819-5287-4a5c-8483-b94f15a7deeb]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174939Z:0f9f2922-3c13-43e4-a4c4-e2533b55e136']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:39 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [14c97c00-5f32-4163-baf8-396af221fb7f]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29897']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [a22b7d7c-8df6-42d3-b6a3-3448f8545abe]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174940Z:14c97c00-5f32-4163-baf8-396af221fb7f']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [b8f032ef-9675-4ed5-9f66-4e6b19f36148]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29896']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [998c2537-fe28-4a8d-a6d2-98a93bafdb4d]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174940Z:b8f032ef-9675-4ed5-9f66-4e6b19f36148']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:39 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [c1a3b59a-129f-43f9-b7a7-c95e1cd42aa2]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29895']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [a1c774b2-2318-463f-bbd6-b97f352ea622]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174940Z:c1a3b59a-129f-43f9-b7a7-c95e1cd42aa2']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-06-01
+  response:
+    body: {string: "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\":
+        \"The entity was not found.\"\r\n  }\r\n}"}
+    headers:
+      Cache-Control: [no-cache]
+      Content-Length: ['92']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:39 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [9b3b799e-3ec9-477e-8655-7f56ac9a99d0]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29894']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [688650a0-5c84-4fe6-b636-898a9c4eb59e]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174940Z:9b3b799e-3ec9-477e-8655-7f56ac9a99d0']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 404, message: Not Found}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UdNm9Xtm2KRf/Qo/WhvZ/dge3d3e2fvze6DR/cePNrfH+9+urf36aef7Ow82tn5aMTv5MvZ8Buf
+        jh/u3/v00/3wFeqmXTd44/V6Os3zWT7Tb5aZQMp2HnyaT+/f3979dHq+vb873d3OZg/ub3+683A3
+        25nme7OH9z76jZNf8v8A0NjLgrcAAAA=
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [4cae0fcb-a450-4561-a179-ae66de7dca73]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29893']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [9da62614-fac2-41a6-a027-c8a26ffd8b97]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174941Z:4cae0fcb-a450-4561-a179-ae66de7dca73']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UdNm9Xtm2KRf/Qo/WhvZ/dge3d3e2fvze6DR/cOHu0cjPce7D3Yebj3yc7Oo52dj0b8Ur6cDb6y
+        uzveObh/b3//YfAK9dOuG7zxej2d5vksn+k3y0wgZQ/37p8/nM629/c/fbi9v7d3sD3ZnX26fW/2
+        8GF2/+D8/u5k/6PfOPkl/w+a96NeuAAAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [ffa237ba-7bb9-4d21-814e-599aa1ccf53c]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29892']
+      x-ms-ratelimit-remaining-subscription-reads: ['11996']
+      x-ms-request-id: [6c64c77d-905c-45e5-9863-12bf2c6e8f9e]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174941Z:ffa237ba-7bb9-4d21-814e-599aa1ccf53c']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vhGZP7N6es3v/9PfhFlkAEiWOmXIfS0JOH5S/4f//3SymIIAAA=
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [96437392-65a3-4b59-b66e-f8f8640435f5]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3980,Microsoft.Compute/LowCostGet30Min;31733']
+      x-ms-ratelimit-remaining-subscription-reads: ['11990']
+      x-ms-request-id: [a450974e-4ac0-408c-b746-247d6164dfd3]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174941Z:96437392-65a3-4b59-b66e-f8f8640435f5']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [b2c53d55-b017-4f66-a611-8a19869fdd95]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3979,Microsoft.Compute/LowCostGet30Min;31732']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [e0fcebc6-76ff-4f27-a80c-622b73138541]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174941Z:b2c53d55-b017-4f66-a611-8a19869fdd95']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UdNm9Xtm2KRf/Qo/WhvZ/dge3d3e2fvze6DR/t7j/buje89vHd/Z2f3k52dRzs7H434pXw5G37l
+        /nj3/sO9vYMHwSvUT7tu8Mbr9XSa57N8pt8sM4F0sLu7M9ndu7e9M/00395/kD/cfriXPdw+v797
+        vjPZm3x6b3fy0W+c/JL/B97IoV+4AAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [f7369a76-458d-4371-b8f3-f65f4ac228a0]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29891']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [d52839db-4f1c-4a01-91e4-727bf6685308]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174941Z:f7369a76-458d-4371-b8f3-f65f4ac228a0']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/locations/southcentralus/operations/ea42f556-5106-4743-99b0-c129bfa71a47?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UdNm9Xtm2KRf/Qo/WhvZ/dge3d3e2fvze6DR/t7j3Yejj/d3f303qeffrKz82hn56MRv5QvZ4Ov
+        7O6O7z14cO9++AZ1064bvPB6PZ3m+Syf6TfLTAHdm+xO9mf3t+/vPri3vX+ws7d9cL53b/v+w9ne
+        zqez6ae7B/c++o2TX/L/AAUG1s+3AAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:41 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [5c3d6bb4-1c12-4732-b52d-3117134d405c]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29890']
+      x-ms-ratelimit-remaining-subscription-reads: ['11990']
+      x-ms-request-id: [18939617-0004-4302-9937-1d938a573398]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174941Z:5c3d6bb4-1c12-4732-b52d-3117134d405c']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:49:47 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [0e13e3c9-4aaf-46e5-a294-4d1453a7febf]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3981,Microsoft.Compute/LowCostGet30Min;31734']
+      x-ms-ratelimit-remaining-subscription-reads: ['11993']
+      x-ms-request-id: [84daa8d5-d422-4997-9f80-e08ba0e2a905]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174947Z:0e13e3c9-4aaf-46e5-a294-4d1453a7febf']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+version: 1
diff --git a/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_user_event.yaml b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_user_event.yaml
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_user_event.yaml
@@ -0,0 +1,659 @@
+interactions:
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:26 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [d79d4a7f-9201-4384-8adb-53c9046a9ba9]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3987,Microsoft.Compute/LowCostGet30Min;31819']
+      x-ms-ratelimit-remaining-subscription-reads: ['11997']
+      x-ms-request-id: [67cb6c81-00a4-4b50-bbca-f87e661afdd9]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173626Z:d79d4a7f-9201-4384-8adb-53c9046a9ba9']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:26 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [d30c1ce0-7a95-47c5-af69-ec098a1fe449]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3986,Microsoft.Compute/LowCostGet30Min;31818']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [87215673-0234-4002-8cde-080ff9b978de]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173626Z:d30c1ce0-7a95-47c5-af69-ec098a1fe449']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:26 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [7765d565-1768-49dd-bc4b-b7ff79b13565]
+      x-ms-ratelimit-remaining-subscription-reads: ['11991']
+      x-ms-request-id: [7765d565-1768-49dd-bc4b-b7ff79b13565]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173626Z:7765d565-1768-49dd-bc4b-b7ff79b13565']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:26 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [c5ef030a-98d9-4d01-bde0-6c03ff9bf037]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3985,Microsoft.Compute/LowCostGet30Min;31817']
+      x-ms-ratelimit-remaining-subscription-reads: ['11998']
+      x-ms-request-id: [b81bd491-236e-4f63-b5e5-f4b7f77dd82b]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173627Z:c5ef030a-98d9-4d01-bde0-6c03ff9bf037']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1542']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHirWlZrWe/53RNtKRZWhKFFv7owEo/NPXQIZhVFIJ8T6ESnr/k/wFYm6tK
+        jQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/e48b1823-0603-47db-83cf-c794cf135d9e?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:27 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [bdf8f0f4-bdd8-40a4-be34-c0a049bf6799]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1182']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [e48b1823-0603-47db-83cf-c794cf135d9e]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173628Z:bdf8f0f4-bdd8-40a4-be34-c0a049bf6799']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHirWlZrWe/53RNtKRZWhKFFv7owEo/NPXQIZhVFIJ8T6ESnr/k/wFYm6tK
+        jQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:27 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [a688dace-c4b4-43a7-b86e-fa3608191a3a]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3984,Microsoft.Compute/LowCostGet30Min;31816']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [aaa9e6dc-107f-4522-8bcd-1a36d64b4e61]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173628Z:a688dace-c4b4-43a7-b86e-fa3608191a3a']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHirWlZrWe/53RNtKRZWhKFFv7owEo/NPXQIZhVFIJ8T6ESnr/k/wFYm6tK
+        jQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [25c1764c-acbf-49d3-919c-fe89448ddbc4]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3982,Microsoft.Compute/LowCostGet30Min;31814']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [afbcaa5d-c749-4bf4-8b43-7113916ea8ad]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173640Z:25c1764c-acbf-49d3-919c-fe89448ddbc4']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ
+        uc4/evS9X/zRqq5Wed0WefPRI/p8cTb76NFHu/cf3p9Ndve3Z9n+3vb+/fOD7cn57qfbD/KD3fzh
+        w+nOQT77aPTRPKtnV1mdv6yr86IkeADwuvgB/fbRk6wppr//8c5Hv2T0UdNWdXbhNysW9Per/Dyv
+        8+WUP1mtJ2XRzPOa3j3JltWymGYl9VGdUyP67KvJetmuX+f1Jf1JIN+u6cPdT8c7++Od7edvXtNn
+        9E1TVEv6vMzavGnRddU8LZq36KBq3lyvqKuPnhfL9TtqvswW+HM6RdvLxe//JTf9/Xd//yyfTWcH
+        D+59Otmb7e/cf/hw7+E0v3e+dy9/cG9nf/KQ3p3WOXXx5aqV/p7V1eIMQ8JX2XReLC/o01d5Nvtu
+        XbT4dJEt6esZegAyBah8t1lPmmldMJTmbpY9PHj4YH+yfX+2l23vzx4ebGcPDrLtewd75/ce7N6f
+        7TzI79Z5U63raf55Xa1XzV2g/vtfLu7SLF4WMxr/3S+KaV011Xk7PqkWq3Wb351Rn83drzHMX0L0
+        m2VthvbEHcQs5ZpGu9MnHbrY+/0PHhLXHDzcybN7n+4ToIeE+cHk3t6DvXuf7p5n+0SGDt1OF6v2
+        Gh9bmr2olv/vIhf+vMXQfskv+T5Rq2o8Hp8KwPqFEOtysX9/8YumF9mD1dvmqqBBZrNFsfyqyWsl
+        J3pc05/0VQkePamW58XFus4wYEAkXLJJmb/MmuaqqmfH63aeL1sSFGlwnpVNTlg0OZG5xYwBp2Xe
+        UuO3HmL6ydmSkDvPppB8mtsfBo1fSM93exjcXVz/5BcviulHTMZZkV0sq4ZG5tNzUlXtU/cNPsqX
+        oAch3tbrnAYueuaruqChzNt21Ty6ezegepMxZS8X40lZTcbTqs7HV8VyVl01Y0LqLs3jCCrxsoAm
+        IZZ83RK/ErTX6+k0z2fUFzVoRZG4cRneuSzqdp2VXzA7E11pIiszOx8Rldr5lCaszso1vmuzCx4F
+        KEa/UxP8JqqZBjOd57M1hv5Rtfxs64vtr0YHdw5JHcrvu/RH+4PPVi01PYFUVfXpIitKaj4tq/Xs
+        95yuiRxEySWNcgGsv6kJfnP6+s3v/5NfRCd4gBBWnAhZZXb7yS8ZkfKPGaGDh9PZ9N70fPt8b5eM
+        0GTn/vZkN/uUEJwd7E7O93amswcEb5MRotlbzuj73//pXvP7X96jvgyPeK2/SVv0QZbop9eL1aR6
+        5zT0wfnu3sGn96b37u3v788m9w5ouu7dOz/fn3z6MP/0/j16lSSdeviSp5NAvLchUnIcT6cVjUnx
+        MmR7/frp7//8FQb0TfHO8Yunv8/28evTjcxDao408PtTg4iMVzH3nz/56NG9HXzg2S+olk0aWnuk
+        4XY1c7Ys1xWRkuQZU/a+ilm1UzNHW2au6e+VXwMl+jNr6eOP7s6rRX5X+7k7prZ3M4JS1TSY2e//
+        Fq1HH9GPpzQeak7fb9dNlh7T8+Teix9kJ7vX071T+uv46fFPHD+hn0+Of+Jped2UT77Mf9Hlg8+/
+        mt9bff7tn3r+5U9/+zvXO1kxe/P77Ly+92R18PCr6XdOH7z5wYMf/D7rn35xsntvfXV/fvnk3vrh
+        9EX50/e+81PfOX351c7zxadf/V5797/73d/7uz/xxe81u/z2s+vL717/3r/P9U/+1Lc/ffp5/cUn
+        T59f/PTDrxbf/eLFDz7/9ue795+8ma3uf2f39Cffvf7Jvd/rdLY+XS6nxbfbB7/X63Z3fXear5/8
+        Ptn+T+09fJF99zvPH7ZfffJ71T/9E/Pz9ov5xQ+ev/m9F59k05+oXnz7O292DtbHBVF8Ue2fnM33
+        X9+b/l6vDt4dzH6f73779WL9+adXX737ZPlTP/Gd+z81/+7pm9fzF/M3NM6Dr2a7u8+fvTxpP/2J
+        69/r6XdmZ1X5ey+zFz+9PH79nbPp7325mM8fvLg/mX+12j14nb1++e7t9e/13Z/4ve9+9eru9Pjb
+        y+Ov7h6/ufuLvjNvqtVydvZTP/3Vl1/99O89f3kuNooZGEL+k18cX9BkyyzTF571JUYqy+rq9F2b
+        L9H0S1JyzBL0rbYmo0Mc88OzziTY19tZk0cFcNg8q2g8JHcegyezYsywh/nXNNBAiTACzA+yymak
+        1PE3SLBbaayuuVNy3c3NzBOc46fPq4ti+ayqRe3D7v2/DUmZrstFRmRtGpprclLEJNwIjtRT6Xyd
+        KzJ662aPPiTHhibkF9P8EF6kE8nfJ75QqK+vmzZfHDdNcbGkScQkF6QkVlnJHsDOwXSW7+3Ntg/2
+        9nYoDL2Xb0/2d/PtLL+//3Av+3Tn/AAvEfrZsuU3HuydPzw4mJxvH3x6vru9v5udbz/czSbbe7MH
+        09nO7u5ssv+AKE+4UOO7P7eEJ8zVvJgPwBIEiLRExxXKH55n5w/3zwk1coD2KfLYnkz27m/v7ew8
+        nD7Id+893Lu9K/R67/e/3KO+jDR6rTe7QnZk3xXZfJo3b9tqRR0bx0i/2N7doQ/FLaqb/W0aE/19
+        S6dIYdALIXW2SSM4Z+ABeQMHDw4+zT7NdvY/nWYTisRmlJfYn+3kB9P9T+l1UsPUz5c8uwTm/+2u
+        EcEd1syGlcjRcK7Re1KEyI3XwQ9wj3b3HuAT8icAgLjttv4RuqVxD/tI9D1msOcl8cDAAoHJHKmR
+        IKepWlDb6VcrQgrsj28Jpf8/G1TQ8uDT+6RpCXVYQLWdHvo/u1aVXFEiZa7crbL3+5+UBeYH+pgG
+        BUqTtBDrk5iQCKzJOhijq4rcDdlwakfpEaxv3Dzcnz14cG9394HEhvs5acVssrNLGn+yN9n5dHpv
+        f/eAXiJe+f+ieQBrEPYqXf6Hv+T7v+T/AVPK2aTCFQAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['2256']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [556d36a3-a55d-4ef4-8710-e0a86ad2b41d]
+      x-ms-original-request-ids: [6077bd55-49ba-4ae0-9773-29168d5b1a84, bd98b0c7-b0ce-45ce-84da-c3d55fb16ba3]
+      x-ms-ratelimit-remaining-subscription-reads: ['11987']
+      x-ms-request-id: [556d36a3-a55d-4ef4-8710-e0a86ad2b41d]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173640Z:556d36a3-a55d-4ef4-8710-e0a86ad2b41d']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:40 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [c3ac3435-cbca-4d3f-8ea8-faf74d506df1]
+      x-ms-ratelimit-remaining-subscription-reads: ['11996']
+      x-ms-request-id: [c3ac3435-cbca-4d3f-8ea8-faf74d506df1]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173640Z:c3ac3435-cbca-4d3f-8ea8-faf74d506df1']
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1503']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHNyLyb05fv/n9f/KLKH8MEMEKvwyhpyQJz1/y/wBAoNBEYQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/599bbea7-fe31-44cc-8ddd-e15fe9d5a61a?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:41 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [b7163b71-92fa-41b2-a24f-1fe43b156ebb]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1181']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [599bbea7-fe31-44cc-8ddd-e15fe9d5a61a]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173641Z:b7163b71-92fa-41b2-a24f-1fe43b156ebb']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHD03kO0Swwi9D6ClJwvOX/D9X2/2+YQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:36:51 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [001aa769-5302-492b-ab10-31cdebd483c2]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3985,Microsoft.Compute/LowCostGet30Min;31812']
+      x-ms-ratelimit-remaining-subscription-reads: ['11992']
+      x-ms-request-id: [d34cd298-4a06-4132-9012-888620406e42]
+      x-ms-routing-request-id: ['WESTUS2:20181102T173652Z:001aa769-5302-492b-ab10-31cdebd483c2']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+version: 1
diff --git a/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_user_event_missing_info.yaml b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_user_event_missing_info.yaml
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests/cassettes/TagsTest.test_auto_tag_user_event_grid_user_event_missing_info.yaml
@@ -0,0 +1,656 @@
+interactions:
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:03 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [3298d661-8298-4412-bdaf-d7245be19af1]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31751']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [9690608d-4530-4a1d-9d87-ed8e64636b3f]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174803Z:3298d661-8298-4412-bdaf-d7245be19af1']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:02 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [c23746bf-4282-47c1-8495-d78d5f0b8947]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31750']
+      x-ms-ratelimit-remaining-subscription-reads: ['11999']
+      x-ms-request-id: [098d8989-069c-469c-80fd-e42b07716a7f]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174803Z:c23746bf-4282-47c1-8495-d78d5f0b8947']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:03 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [cfe83be2-5c9b-43a8-b66d-d24c7a8ed4cd]
+      x-ms-ratelimit-remaining-subscription-reads: ['11996']
+      x-ms-request-id: [cfe83be2-5c9b-43a8-b66d-d24c7a8ed4cd]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174804Z:cfe83be2-5c9b-43a8-b66d-d24c7a8ed4cd']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPF6PZ3m+YyQQStp+1GrmtrRxrD7ZVG366z8gsWT5kbal5Vl
+        go+I3O18SoxRZ+XaNGizC48GzH30EX3Cv15SSyviHzXTeT5bMz0/qpafbX2x/dXo4M4hmS75fZf+
+        aH/w2UpMj2IM/vihyXyHCFb6ZQg9LUl4/pL/B+iG/zBiCAAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:04 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [b1417cbc-2d69-49dc-898c-dc6d9c6e6054]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31749']
+      x-ms-ratelimit-remaining-subscription-reads: ['11998']
+      x-ms-request-id: [05348942-2b5d-40eb-9a86-c48fdc53ee28]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174804Z:b1417cbc-2d69-49dc-898c-dc6d9c6e6054']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1530']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHira+Wb5fV1dIfEdjnh6YSOkSyykEQ7ilRwvOX/D/StdXHgQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/fd5a5065-6436-4f3a-911d-9a3f9dd159a7?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:04 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [f152c83f-5717-4379-bfe7-092412acd2c6]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1174']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [fd5a5065-6436-4f3a-911d-9a3f9dd159a7]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174805Z:f152c83f-5717-4379-bfe7-092412acd2c6']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHira+Wb5fV1dIfEdjnh6YSOkSyykEQ7ilRwvOX/D/StdXHgQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:05 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [cd0023f2-0601-483e-8667-5f3fe12bedbd]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31748']
+      x-ms-ratelimit-remaining-subscription-reads: ['11994']
+      x-ms-request-id: [35a2d9d2-9fd6-44f1-b09d-ab47728910a0]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174805Z:cd0023f2-0601-483e-8667-5f3fe12bedbd']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WrX3jBPqkqk8XWVHira+Wb5fV1dIfEdjnh6YSOkSyykEQ7ilRwvOX/D/StdXHgQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:17 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [03a2a4eb-ee53-4298-ab9e-6d78c5c94c24]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31747']
+      x-ms-ratelimit-remaining-subscription-reads: ['11995']
+      x-ms-request-id: [6a8cc4b9-9227-4952-b784-5bcee1a830e5]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174817Z:03a2a4eb-ee53-4298-ab9e-6d78c5c94c24']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ
+        uc4/evS9X/zRqq5Wed0WefPRI/p8cTb76NFHu/cf3p9Ndve3Z9n+3vb+/fOD7cn57qfbD/KD3fzh
+        w+nOQT77aPTRPKtnV1mdv6yr86IkeADwuvgB/fbRk6wppr//8c5Hv2T0UdNWdXbhNysW9Per/Dyv
+        8+WUP1mtJ2XRzPOa3j3JltWymGYl9VGdUyP67KvJetmuX+f1Jf1JIN+u6cPdT8c7++Od7edvXtNn
+        9E1TVEv6vMzavGnRddU8LZq36KBq3lyvqKuPnhfL9TtqvswW+HM6RdvLxe//JTf9/Xd//yyfTWcH
+        D+59Otmb7e/cf/hw7+E0v3e+dy9/cG9nf/KQ3p3WOXXx5aqV/p7V1eIMQ8JX2XReLC/o01d5Nvtu
+        XbT4dJEt6esZegAyBah8t1lPmmldMJTmbpY9PHj4YH+yfX+2l23vzx4ebGcPDrLtewd75/ce7N6f
+        7TzI79Z5U63raf55Xa1XzV2g/vtfLu7SLF4WMxr/3S+KaV011Xk7PqkWq3Wb351Rn83drzHMX0L0
+        m2VthvbEHcQs5ZpGu9MnHbrY+/0PHhLXHDzcybN7n+4ToIeE+cHk3t6DvXuf7p5n+0SGDt1OF6v2
+        Gh9bmr2olv/vIhf+vMXQfskv+T5Rq2o8Hp8KwPqFEOtysX9/8YumF9mD1dvmqqBBZrNFsfyqyWsl
+        J3pc05/0VQkePamW58XFus4wYEAkXLJJmb/MmuaqqmfH63aeL1sSFGlwnpVNTlg0OZG5xYwBp2Xe
+        UuO3HmL6ydmSkDvPppB8mtsfBo1fSM93exjcXVz/5BcviulHTMZZkV0sq4ZG5tNzUlXtU/cNPsqX
+        oAch3tbrnAYueuaruqChzNt21Ty6ezegepMxZS8X40lZTcbTqs7HV8VyVl01Y0LqLs3jCCrxsoAm
+        IZZ83RK/ErTX6+k0z2fUFzVoRZG4cRneuSzqdp2VXzA7E11pIiszOx8Rldr5lCaszso1vmuzCx4F
+        KEa/UxP8JqqZBjOd57M1hv5Rtfxs64vtr0YHdw5JHcrvu/RH+4PPVi01PYFUVfXpIitKav7V8u2y
+        uloC029qUt+cvn7z+//kF9FJHRi8FSFCUBncfvJLRqTwY4bn4OF0Nr03Pd8+39slwzPZub892c0+
+        JQRnB7uT872d6ewBwdtkeGjGljP6/vd/utf8/pf3qC/DF17rb9L+fJD1+en1YjWp3jmtfHC+u3fw
+        6b3pvXv7+/uzyb0Dmq57987P9yefPsw/vX+PXiXpph6+5OkkEO9tfJQcx9NpRWNSvAzZXr9++vs/
+        f4UBfVO8c/zi6e+zffz6dCPzkGojrfv+1CAi41XM/edPPnp0bwcfeDYL6mSTVtYeabhdbZwty3VF
+        pCQZxpS9rzJWjdTM0ZaZa/p75ddAif7MWvr4o7vzapHf1X7ujqnt3YygVDUNZvb7v0Xr0Uf04ymN
+        h5rT99t1k6XH9Dy59+IH2cnu9XTvlP46fnr8E8dP6OeT4594Wl435ZMv8190+eDzr+b3Vp9/+6ee
+        f/nT3/7O9U5WzN78Pjuv7z1ZHTz8avqd0wdvfvDgB7/P+qdfnOzeW1/dn18+ubd+OH1R/vS97/zU
+        d05ffrXzfPHpV7/X3v3vfvf3/u5PfPF7zS6//ez68rvXv/fvc/2TP/XtT59+Xn/xydPnFz/98KvF
+        d7948YPPv/357v0nb2ar+9/ZPf3Jd69/cu/3Op2tT5fLafHt9sHv9brdXd+d5usnv0+2/1N7D19k
+        3/3O84ftV5/8XvVP/8T8vP1ifvGD529+78Un2fQnqhff/s6bnYP1cUEUX1T7J2fz/df3pr/Xq4N3
+        B7Pf57vffr1Yf/7p1VfvPln+1E985/5Pzb97+ub1/MX8DY3z4KvZ7u7zZy9P2k9/4vr3evqd2VlV
+        /t7L7MVPL49ff+ds+ntfLubzBy/uT+ZfrXYPXmevX757e/17ffcnfu+7X726Oz3+9vL4q7vHb+7+
+        ou/Mm2q1nJ391E9/9eVXP/17z1+ei11iBoaQ/+QXxxc02TLL9IVncYmRyrK6On3X5ks0/ZKUHLME
+        fautydAQx/zwLDIJ9vV21uRRARw2ySoaD8mFx+C/UaMMlAgjwPwgS2xGSh1/gwS7lcbqmjsl193c
+        zDzBOX76vLools+qWtQ+7N7/25CU6bpcZETWpqG5JsdETMKN4Eg9lc6/uSKjt2726ENyZmhCfjHN
+        D+FFOpF8fOILhfr6umnzxXHTFBdLmkRMckFKYpWV7AHsHExn+d7ebPtgb2+HQs97+fZkfzffzvL7
+        +w/3sk93zg/wEqGfLVt+48He+cODg8n59sGn57vb+7vZ+fbD3WyyvTd7MJ3t7O7OJvsPiPKECzW+
+        +3NLeMJczYv5ACxBgEhLdFyh/OF5dv5w/5xQIwdon6KN7clk7/723s7Ow+mDfPfew73bu0Kv937/
+        yz3qy0ij13qzK2RH9l2Rzad587atVtSxcYz0i+3dHfpQ3KK62d+mMdHft3SKFAa9EFJnmzSCcwYe
+        kDdw8ODg0+zTbGf/02k2oehrRrmI/dlOfjDd/5ReJzVM/XzJs0tg/t/uGhHcYc1sWIkcDecavSdF
+        iNx4HfwA92h37wE+IX8CAIjbbusfoVsa97CPRN9jBnteEg8MLBCYzJEaCXKaqgW1nX61IqTA/viW
+        UPr/s0EFLQ8+vU+allCHBVTb6aH/s2tVyRUlUubK3Sp7v/9JWWB+oI9pUKA0SQuxPokJicCarIMx
+        uqrI3ZANp3aUHsH6xs3D/dmDB/d2dx9IbLifk1bMJju7pPEne5OdT6f39ncP6CXilf8vmgewBmGv
+        0uV/+Eu+/0v+Hwhz2JC2FQAA
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['2241']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:18 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [bfe01beb-d6ec-455a-b99b-448d5d4f0779]
+      x-ms-original-request-ids: [fec66db2-de70-4d91-b822-3f35a701cf4d, 853c470f-0984-4917-8f7d-12b4244e75d1]
+      x-ms-ratelimit-remaining-subscription-reads: ['11991']
+      x-ms-request-id: [bfe01beb-d6ec-455a-b99b-448d5d4f0779]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174818Z:bfe01beb-d6ec-455a-b99b-448d5d4f0779']
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute?api-version=2018-05-01
+  response:
+    body:
+      string: !!binary |
+        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
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Length: ['3233']
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:18 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [9a93fa98-e96f-451d-ab3d-b0f829f5845d]
+      x-ms-ratelimit-remaining-subscription-reads: ['11993']
+      x-ms-request-id: [9a93fa98-e96f-451d-ab3d-b0f829f5845d]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174818Z:9a93fa98-e96f-451d-ab3d-b0f829f5845d']
+    status: {code: 200, message: OK}
+- request:
+    body: mock_body
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      Content-Length: ['1503']
+      Content-Type: [application/json; charset=utf-8]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          resourcemanagementclient/2.0.0 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: PATCH
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHNyLyb05fv/n9f/KLKH8MEMEKvwyhpyQJz1/y/wBAoNBEYQgAAA==
+    headers:
+      Azure-AsyncOperation: ['https://management.azure.com/subscriptions/aa98974b-5d2a-4d98-a78a-382f3715d07e/providers/Microsoft.Compute/locations/southcentralus/operations/5d02ed56-87c8-40e9-a772-892c0c95e133?api-version=2018-10-01']
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:18 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [8004de65-e600-4b13-a8e4-1415509e2c3e]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1173']
+      x-ms-ratelimit-remaining-subscription-writes: ['1199']
+      x-ms-request-id: [5d02ed56-87c8-40e9-a772-892c0c95e133]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174819Z:8004de65-e600-4b13-a8e4-1415509e2c3e']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+- request:
+    body: null
+    headers:
+      Accept: [application/json]
+      Accept-Encoding: ['gzip, deflate']
+      Connection: [keep-alive]
+      User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.1 msrest_azure/0.5.1
+          computemanagementclient/4.3.1 Azure-SDK-For-Python]
+      accept-language: [en-US]
+    method: GET
+    uri: https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2018-10-01
+  response:
+    body:
+      string: !!binary |
+        H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl
+        VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk
+        6UerulrldVvkzUePUv6IPrxcnM3oz4927z+8P5vs7m/Psv297f375wfbk/PdT7cf5Ae7+cOH052D
+        fPbRSF+aZ/XsKqvzl3V1XpQ5va/g6LvLxeviB/jooydZU0x//+Odj+S7X2Lebtqqzi6iLxcL+uJV
+        fp7X+XIafEVfrtaTsmjmeU2ff3SSLatlMc1KgxSej6pzehVffzVZL9v167y+pL/9Fs3bNb7f/XS8
+        sz/e2X7+5nXwNTVvimqJJmXW5k2ryDv0qVHVPC2at9TGx65q3lyvgPJHz4vl+l0AdZkt+JvpFCAv
+        F7//lwzh99/9/bN8Np0dPLj36WRvtr9z/+HDvYfT/N753r38wb2d/cnDAMy0zgmnL1etYvisrhZn
+        oFjYKpvOi+UFGrzKs9l366INGyyyJb0zAwbUyBsDfVcwM9xt1pNmWhfcU3M3yx4ePHywP9m+P9vL
+        tvdnDw+2swcH2fa9g73zew927892HuR367yp1vU0/7yu1qvmLgb6+18u7hLTXRYzourdL4ppXTXV
+        eTs+qRardZvfnREGzd2vQRSH8i8xv3rTM8vaDJDA5t8zn6adgZZrkHDHvoWnP0/AcO/3P3hIsnHw
+        cCfP7n26T3g8pIEfTO7tPdi79+nuebbvU5egdKfpdLFqr7tt3CS9qJbB/NC3G2aIvv25nCP8eQuC
+        +BjbKfJ+/b78YiaNhCemDaaCQ/1Cp+VysX9/8YumF9mD1dvmqnBE+yibLYrlV01emxkEumv622tT
+        QixPquV5cbGuM1CNGtrOqAGNLZuU+cusaa6qena8buf5siUdo23Ps7LJTXuDOr3X5DTjLXNbd1zL
+        vCVQb73BmY/OljSw82wKZfy9X8xz+rM9pS+k57s9DO4urn/yixfF9KNf8n2L+azILpZVQ8OPTs2k
+        qtqnron/HX2bL0FIGlLa1utcQeIxuv+ruqAvP5q37ap5dPduMK1NxjN1uRhPymoynlZ1Pr4qlrPq
+        qhkT6nctcyk3WZR5zNDeJFivWxJBdPHVitQBfcBvSdOPWlXUjjSG2y+Lul1n5RcsnTQ10r6sLA98
+        RNRu51Piizor16ZBm114JGDmo4/oE/71klpaCf+omc7z2ZrJ+VG1/Gzri+2vRgd3Dslyye+79Ef7
+        g89WYnkUY7DHD03kO0Swwi9D6ClJwvOX/D9X2/2+YQgAAA==
+    headers:
+      Cache-Control: [no-cache]
+      Content-Encoding: [gzip]
+      Content-Type: [application/json; charset=utf-8]
+      Date: ['Fri, 02 Nov 2018 17:48:29 GMT']
+      Expires: ['-1']
+      Pragma: [no-cache]
+      Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
+      Strict-Transport-Security: [max-age=31536000; includeSubDomains]
+      Vary: [Accept-Encoding]
+      X-Content-Type-Options: [nosniff]
+      x-ms-correlation-request-id: [41e9e7c3-0570-4088-a97c-a2a92cadabad]
+      x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31746']
+      x-ms-ratelimit-remaining-subscription-reads: ['11996']
+      x-ms-request-id: [ff3d2c61-e112-4190-832d-ab11c1a824f6]
+      x-ms-routing-request-id: ['WESTUS2:20181102T174829Z:41e9e7c3-0570-4088-a97c-a2a92cadabad']
+      x-ms-served-by: [5bf72e87-b853-4001-bd50-8d9de6e6ce78_131849759755509736]
+    status: {code: 200, message: OK}
+version: 1
diff --git a/tools/c7n_azure/tests/test_tags.py b/tools/c7n_azure/tests/test_tags.py
--- a/tools/c7n_azure/tests/test_tags.py
+++ b/tools/c7n_azure/tests/test_tags.py
@@ -18,14 +18,15 @@
 import re
 
 from azure_common import BaseTest, arm_template, TEST_DATE
+from c7n_azure.actions import AutoTagUser
 from c7n_azure.session import Session
 from mock import patch
 
+from c7n.exceptions import PolicyValidationError
 from c7n.filters import FilterValidationError
 
 
 class TagsTest(BaseTest):
-
     # regex for identifying valid email addresses
     EMAIL_REGEX = "[^@]+@[^@]+\.[^@]+"
 
@@ -49,14 +50,15 @@ def tearDown(self):
                 'resource': 'azure.vm',
                 'filters': [
                     {'type': 'value',
-                    'key': 'name',
-                    'op': 'eq',
-                    'value_type': 'normalize',
-                    'value': 'cctestvm'}
+                     'key': 'name',
+                     'op': 'eq',
+                     'value_type': 'normalize',
+                     'value': 'cctestvm'}
                 ],
                 'actions': [
                     {'type': 'untag',
-                    'tags': [k for k in self.after_tags.keys() if k not in self.before_tags.keys()]}
+                     'tags':
+                         [k for k in self.after_tags.keys() if k not in self.before_tags.keys()]}
                 ],
             })
             p.run()
@@ -65,10 +67,14 @@ def tearDown(self):
         self.assertEqual(self.before_tags, self.after_tags)
         super(TagsTest, self).tearDown()
 
-    def get_tags(self, rg_name, vm_name):
+    def get_tags(self, rg_name=rg_name, vm_name=vm_name):
         vm = self.client.virtual_machines.get(rg_name, vm_name)
         return vm.tags
 
+    def get_vm_resource_id(self, rg_name=rg_name, vm_name=vm_name):
+        vm = self.client.virtual_machines.get(rg_name, vm_name)
+        return vm.id
+
     def dict_diff(self, a, b):
         return set(a.items()) ^ set(b.items())
 
@@ -484,6 +490,259 @@ def test_auto_tag_days_must_be_btwn_1_and_90(self):
             })
             p.run()
 
+    def test_auto_tag_user_event_grid_mode_with_days_fails_validation(self):
+        self.assertRaises(
+            PolicyValidationError,
+            self.load_policy,
+            {
+                'name': 'test-azure-tag',
+                'resource': 'azure.resourcegroup',
+                'mode': {
+                    'type': 'azure-event-grid',
+                    'events': [
+                        {
+                            'resourceProvider': 'Microsoft.Resources/subscriptions/resourceGroups',
+                            'event': 'write'
+                        }
+                    ]},
+                'actions': [
+                    {'type': 'auto-tag-user',
+                     'tag': 'CreatorEmail',
+                     'days': 40}
+                ],
+            },
+            session_factory=None,
+            validate=True,
+        )
+
+    @arm_template('vm.json')
+    def test_auto_tag_user_event_grid_user_event(self):
+        policy = self.load_policy(
+            {
+                'name': 'test-azure-tag',
+                'resource': 'azure.vm',
+                'mode': {
+                    'type': 'azure-event-grid',
+                    'events': [
+                        {
+                            'resourceProvider': 'Microsoft.Compute/virtualMachines',
+                            'event': 'write'
+                        }
+                    ]},
+                'actions': [
+                    {'type': 'auto-tag-user',
+                     'tag': 'CreatorEmail',
+                     'update': True}
+                ],
+            },
+            session_factory=None,
+            validate=True,
+        )
+
+        vm_id = self.get_vm_resource_id()
+
+        event = [{
+            'subject': vm_id,
+            'data': {
+                'authorization': {
+                    'evidence': {
+                        'principalType': 'User'
+                    }
+                },
+                'claims': {
+                    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name':
+                        'cloud@custodian.com',
+                },
+                'operationName': 'Microsoft.Compute/virtualMachines/write',
+            }
+        }]
+
+        policy.push(event, None)
+
+        after_tags = self.get_tags()
+        self.assertEqual(after_tags['CreatorEmail'], 'cloud@custodian.com')
+
+    @arm_template('vm.json')
+    def test_auto_tag_user_event_grid_sp_event(self):
+        policy = self.load_policy(
+            {
+                'name': 'test-azure-tag',
+                'resource': 'azure.vm',
+                'mode': {
+                    'type': 'azure-event-grid',
+                    'events': [
+                        {
+                            'resourceProvider': 'Microsoft.Compute/virtualMachines',
+                            'event': 'write'
+                        }
+                    ]},
+                'actions': [
+                    {'type': 'auto-tag-user',
+                     'tag': 'CreatorEmail',
+                     'update': True}
+                ],
+            },
+            session_factory=None,
+            validate=True,
+        )
+
+        vm_id = self.get_vm_resource_id()
+
+        event = [{
+            'subject': vm_id,
+            'data': {
+                'authorization': {
+                    'evidence': {
+                        'principalType': 'ServicePrincipal'
+                    }
+                },
+                'claims': {
+                    'appid': '12345',
+                },
+                'operationName': 'Microsoft.Compute/virtualMachines/write',
+            }
+        }]
+
+        policy.push(event, None)
+
+        after_tags = self.get_tags()
+        self.assertEqual(after_tags['CreatorEmail'], '12345')
+
+    @arm_template('vm.json')
+    def test_auto_tag_user_event_grid_user_event_missing_info(self):
+        policy = self.load_policy(
+            {
+                'name': 'test-azure-tag',
+                'resource': 'azure.vm',
+                'mode': {
+                    'type': 'azure-event-grid',
+                    'events': [
+                        {
+                            'resourceProvider': 'Microsoft.Compute/virtualMachines',
+                            'event': 'write'
+                        }
+                    ]},
+                'actions': [
+                    {'type': 'auto-tag-user',
+                     'tag': 'CreatorEmail',
+                     'update': True}
+                ],
+            },
+            session_factory=None,
+            validate=True,
+        )
+
+        vm_id = self.get_vm_resource_id()
+
+        event = [{
+            'subject': vm_id,
+            'data': {
+                'authorization': {
+                    'evidence': {
+                        'principalType': 'User'
+                    }
+                },
+                'claims': {
+                },
+                'operationName': 'Microsoft.Compute/virtualMachines/write',
+            }
+        }]
+
+        policy.push(event, None)
+
+        after_tags = self.get_tags()
+        self.assertEqual(after_tags['CreatorEmail'], AutoTagUser.default_user)
+
+    @arm_template('vm.json')
+    def test_auto_tag_user_event_grid_sp_event_missing_info(self):
+        policy = self.load_policy(
+            {
+                'name': 'test-azure-tag',
+                'resource': 'azure.vm',
+                'mode': {
+                    'type': 'azure-event-grid',
+                    'events': [
+                        {
+                            'resourceProvider': 'Microsoft.Compute/virtualMachines',
+                            'event': 'write'
+                        }
+                    ]},
+                'actions': [
+                    {'type': 'auto-tag-user',
+                     'tag': 'CreatorEmail',
+                     'update': True}
+                ],
+            },
+            session_factory=None,
+            validate=True,
+        )
+
+        vm_id = self.get_vm_resource_id()
+
+        event = [{
+            'subject': vm_id,
+            'data': {
+                'authorization': {
+                    'evidence': {
+                        'principalType': 'ServicePrincipal'
+                    }
+                },
+                'claims': {
+                },
+                'operationName': 'Microsoft.Compute/virtualMachines/write',
+            }
+        }]
+
+        policy.push(event, None)
+
+        after_tags = self.get_tags()
+        self.assertEqual(after_tags['CreatorEmail'], AutoTagUser.default_user)
+
+    @arm_template('vm.json')
+    def test_auto_tag_user_event_grid_unsupported_principal_type(self):
+        policy = self.load_policy(
+            {
+                'name': 'test-azure-tag',
+                'resource': 'azure.vm',
+                'mode': {
+                    'type': 'azure-event-grid',
+                    'events': [
+                        {
+                            'resourceProvider': 'Microsoft.Compute/virtualMachines',
+                            'event': 'write'
+                        }
+                    ]},
+                'actions': [
+                    {'type': 'auto-tag-user',
+                     'tag': 'CreatorEmail',
+                     'update': True}
+                ],
+            },
+            session_factory=None,
+            validate=True,
+        )
+
+        vm_id = self.get_vm_resource_id()
+
+        event = [{
+            'subject': vm_id,
+            'data': {
+                'authorization': {
+                    'evidence': {
+                        'principalType': 'UnknownType'
+                    }
+                },
+                'claims': {
+                },
+                'operationName': 'Microsoft.Compute/virtualMachines/write',
+            }
+        }]
+
+        policy.push(event, None)
+
+        after_tags = self.get_tags()
+        self.assertNotIn('CreatorEmail', after_tags)
+
     def test_tag_trim_space_must_be_btwn_0_and_15(self):
         with self.assertRaises(FilterValidationError):
             p = self.load_policy({
@@ -759,14 +1018,14 @@ def test_mark_for_op(self, date_mock):
                 'resource': 'azure.vm',
                 'filters': [
                     {'type': 'value',
-                    'key': 'name',
-                    'op': 'eq',
-                    'value_type': 'normalize',
-                    'value': 'cctestvm'}],
+                     'key': 'name',
+                     'op': 'eq',
+                     'value_type': 'normalize',
+                     'value': 'cctestvm'}],
                 'actions': [
                     {'type': 'mark-for-op',
-                    'op': 'stop',
-                    'days': self.DAYS}
+                     'op': 'stop',
+                     'days': self.DAYS}
                 ]
             }
             p = self.load_policy(policy)
@@ -778,12 +1037,12 @@ def test_mark_for_op(self, date_mock):
                 'resource': 'azure.vm',
                 'filters': [
                     {'type': 'value',
-                    'key': 'name',
-                    'op': 'eq',
-                    'value_type': 'normalize',
-                    'value': 'cctestvm'},
+                     'key': 'name',
+                     'op': 'eq',
+                     'value_type': 'normalize',
+                     'value': 'cctestvm'},
                     {'type': 'marked-for-op',
-                    'op': 'stop'}]
+                     'op': 'stop'}]
             }
             p = self.load_policy(policy)
             resources = p.run()
@@ -795,12 +1054,12 @@ def test_mark_for_op(self, date_mock):
                 'resource': 'azure.vm',
                 'filters': [
                     {'type': 'value',
-                    'key': 'name',
-                    'op': 'eq',
-                    'value_type': 'normalize',
-                    'value': 'cctestvm'},
+                     'key': 'name',
+                     'op': 'eq',
+                     'value_type': 'normalize',
+                     'value': 'cctestvm'},
                     {'type': 'marked-for-op',
-                    'op': 'stop'}]
+                     'op': 'stop'}]
             }
             p = self.load_policy(policy)
             resources = p.run()