Repository: cloud-custodian/cloud-custodian

Issue:
azure add feature to get vm extensions 
**Is your feature request related to a problem? Please describe.**
We need to evaluate the list of extensions deployed on a Azure VM and generate a compliance report.

**Describe the solution you'd like**
Add new filter to retrieve extensions attached to the VM

**Describe alternatives you've considered**
NA

**Additional context**
Resource Type: `Microsoft.Compute/virtualMachines/extensions`
https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachines/extensions?tabs=json


Discussion:

Resolving patch:
diff --git a/tools/c7n_azure/c7n_azure/resources/vm.py b/tools/c7n_azure/c7n_azure/resources/vm.py
--- a/tools/c7n_azure/c7n_azure/resources/vm.py
+++ b/tools/c7n_azure/c7n_azure/resources/vm.py
@@ -180,6 +180,87 @@ def __call__(self, i):
         return super(InstanceViewFilter, self).__call__(i['instanceView'])
 
 
+@VirtualMachine.filter_registry.register('vm-extensions')
+class VMExtensionsFilter(ValueFilter):
+    """
+        Provides a value filter targetting the virtual machine
+        extensions array.  Requires an additional API call per
+        virtual machine to retrieve the extensions.
+
+        Here is an example of the data returned:
+
+        .. code-block:: json
+
+          [{
+            "id": "/subscriptions/...",
+            "name": "CustomScript",
+            "type": "Microsoft.Compute/virtualMachines/extensions",
+            "location": "centralus",
+            "properties": {
+              "publisher": "Microsoft.Azure.Extensions",
+              "type": "CustomScript",
+              "typeHandlerVersion": "2.0",
+              "autoUpgradeMinorVersion": true,
+              "settings": {
+                "fileUris": []
+              },
+              "provisioningState": "Succeeded"
+            }
+          }]
+
+        :examples:
+
+        Find VM's with Custom Script extensions
+
+        .. code-block:: yaml
+
+            policies:
+              - name: vm-with-customscript
+                description: |
+                  Find all virtual machines with a custom
+                  script extension installed.
+                resource: azure.vm
+                filters:
+                  - type: vm-extensions
+                    op: in
+                    key: "[].properties.type"
+                    value: CustomScript
+                    value_type: swap
+
+
+        Find VM's without the OMS agent installed
+
+        .. code-block:: yaml
+
+            policies:
+              - name: vm-without-oms
+                description: |
+                  Find all virtual machines without the
+                  OMS agent installed.
+                resource: azure.vm
+                filters:
+                  - type: vm-extensions
+                    op: not-in
+                    key: "[].properties.type"
+                    value: OmsAgentForLinux
+                    value_type: swap
+
+        """
+    schema = type_schema('vm-extensions', rinherit=ValueFilter.schema)
+    annotate = False  # cannot annotate arrays
+
+    def __call__(self, i):
+        if 'c7n:vm-extensions' not in i:
+            client = self.manager.get_client()
+            extensions = (
+                client.virtual_machine_extensions
+                .list(i['resourceGroup'], i['name'])
+            )
+            i['c7n:vm-extensions'] = [e.serialize(True) for e in extensions.value]
+
+        return super(VMExtensionsFilter, self).__call__(i['c7n:vm-extensions'])
+
+
 @VirtualMachine.filter_registry.register('network-interface')
 class NetworkInterfaceFilter(RelatedResourceFilter):
 


Test patch:
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_delete.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_delete.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_delete.json
+++ /dev/null
@@ -1,401 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:43:58 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;118,Microsoft.Compute/HighCostGet30Min;657"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_by_name.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_by_name.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_by_name.json
+++ /dev/null
@@ -1,401 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:43:58 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;117,Microsoft.Compute/HighCostGet30Min;656"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_running.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_running.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_running.json
+++ /dev/null
@@ -1,564 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:43:59 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;116,Microsoft.Compute/HighCostGet30Min;655"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?$expand=instanceView&api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:43:59 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/LowCostGet3Min;3855,Microsoft.Compute/LowCostGet30Min;31098"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "4448"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "properties": {
-                            "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                            "hardwareProfile": {
-                                "vmSize": "Basic_A0"
-                            },
-                            "storageProfile": {
-                                "imageReference": {
-                                    "publisher": "Canonical",
-                                    "offer": "UbuntuServer",
-                                    "sku": "16.04.0-LTS",
-                                    "version": "latest"
-                                },
-                                "osDisk": {
-                                    "osType": "Linux",
-                                    "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                    "createOption": "FromImage",
-                                    "caching": "ReadWrite",
-                                    "managedDisk": {
-                                        "storageAccountType": "Standard_LRS",
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                    },
-                                    "diskSizeGB": 30
-                                },
-                                "dataDisks": [
-                                    {
-                                        "lun": 0,
-                                        "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                        "createOption": "Empty",
-                                        "caching": "None",
-                                        "managedDisk": {
-                                            "storageAccountType": "Standard_LRS",
-                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                        },
-                                        "diskSizeGB": 1023,
-                                        "toBeDetached": false
-                                    }
-                                ]
-                            },
-                            "osProfile": {
-                                "computerName": "vm45mqcga7pkswi",
-                                "adminUsername": "testuser",
-                                "linuxConfiguration": {
-                                    "disablePasswordAuthentication": false
-                                },
-                                "secrets": []
-                            },
-                            "networkProfile": {
-                                "networkInterfaces": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                    }
-                                ]
-                            },
-                            "diagnosticsProfile": {
-                                "bootDiagnostics": {
-                                    "enabled": true,
-                                    "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                }
-                            },
-                            "provisioningState": "Succeeded",
-                            "instanceView": {
-                                "computerName": "vm45mqcga7pkswi",
-                                "osName": "ubuntu",
-                                "osVersion": "16.04",
-                                "vmAgent": {
-                                    "vmAgentVersion": "2.2.40",
-                                    "statuses": [
-                                        {
-                                            "code": "ProvisioningState/succeeded",
-                                            "level": "Info",
-                                            "displayStatus": "Ready",
-                                            "message": "Guest Agent is running",
-                                            "time": "2019-05-02T19:43:59+00:00"
-                                        }
-                                    ],
-                                    "extensionHandlers": []
-                                },
-                                "disks": [
-                                    {
-                                        "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                        "statuses": [
-                                            {
-                                                "code": "ProvisioningState/succeeded",
-                                                "level": "Info",
-                                                "displayStatus": "Provisioning succeeded",
-                                                "time": "2019-05-01T22:24:01.6256725+00:00"
-                                            }
-                                        ]
-                                    },
-                                    {
-                                        "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                        "statuses": [
-                                            {
-                                                "code": "ProvisioningState/succeeded",
-                                                "level": "Info",
-                                                "displayStatus": "Provisioning succeeded",
-                                                "time": "2019-05-01T22:24:01.6256725+00:00"
-                                            }
-                                        ]
-                                    }
-                                ],
-                                "bootDiagnostics": {
-                                    "consoleScreenshotBlobUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/bootdiagnostics-cctestvm-e1182f4f-d46b-43c4-a797-feee1c1ae2bd/cctestvm.e1182f4f-d46b-43c4-a797-feee1c1ae2bd.screenshot.bmp",
-                                    "serialConsoleLogBlobUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/bootdiagnostics-cctestvm-e1182f4f-d46b-43c4-a797-feee1c1ae2bd/cctestvm.e1182f4f-d46b-43c4-a797-feee1c1ae2bd.serialconsole.log"
-                                },
-                                "statuses": [
-                                    {
-                                        "code": "ProvisioningState/succeeded",
-                                        "level": "Info",
-                                        "displayStatus": "Provisioning succeeded",
-                                        "time": "2019-05-02T19:43:55.787248+00:00"
-                                    },
-                                    {
-                                        "code": "PowerState/running",
-                                        "level": "Info",
-                                        "displayStatus": "VM running"
-                                    }
-                                ]
-                            }
-                        },
-                        "type": "Microsoft.Compute/virtualMachines",
-                        "location": "southcentralus",
-                        "tags": {
-                            "testtag": "testvalue",
-                            "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                        },
-                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                        "name": "cctestvm"
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_on_off_hours.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_on_off_hours.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_on_off_hours.json
+++ /dev/null
@@ -1,797 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:44:02 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;117,Microsoft.Compute/HighCostGet30Min;652"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:44:02 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;116,Microsoft.Compute/HighCostGet30Min;651"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_poweroff.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_poweroff.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_poweroff.json
+++ /dev/null
@@ -1,401 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:44:03 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;115,Microsoft.Compute/HighCostGet30Min;650"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_restart.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_restart.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_restart.json
+++ /dev/null
@@ -1,401 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:44:03 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;114,Microsoft.Compute/HighCostGet30Min;649"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_start.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_start.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_start.json
+++ /dev/null
@@ -1,401 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:44:04 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;113,Microsoft.Compute/HighCostGet30Min;648"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_stop.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.test_stop.json
deleted file mode 100644
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_stop.json
+++ /dev/null
@@ -1,401 +0,0 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "date": [
-                        "Thu, 02 May 2019 19:44:05 GMT"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;112,Microsoft.Compute/HighCostGet30Min;647"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "content-length": [
-                        "14723"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "05cdf281-8281-4faf-8cad-4bd7b7c3b0d5",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-0",
-                                "name": "k8s-agent-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "2a42a751-5265-4a02-8ff6-f5d605b56b69",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-1-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-1-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-1",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-1"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1/extensions/cse1"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-1",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-1",
-                                "name": "k8s-agent-C02B7042-1"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "6b40927a-e9fb-4818-8e3f-6070ec173080",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/AGENT-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-agent-C02B7042-2-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://00usm2nughsm6poagnt0.blob.core.windows.net/osdisk/k8s-agent-C02B7042-2-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": []
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-agent-C02B7042-2",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-agent-C02B7042-nic-2"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2/extensions/cse2"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-agent-C02B7042-2",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "agent",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-agent-C02B7042-2",
-                                "name": "k8s-agent-C02B7042-2"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "c030580e-cd45-4663-8379-850852e307ff",
-                                    "availabilitySet": {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/availabilitySets/MASTER-AVAILABILITYSET-C02B7042"
-                                    },
-                                    "hardwareProfile": {
-                                        "vmSize": "Standard_D2_v2"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04-LTS",
-                                            "version": "16.04.201708151"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "k8s-master-C02B7042-0-osdisk",
-                                            "createOption": "FromImage",
-                                            "vhd": {
-                                                "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-osdisk.vhd"
-                                            },
-                                            "caching": "ReadWrite",
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "k8s-master-C02B7042-0-etcddisk",
-                                                "createOption": "Empty",
-                                                "vhd": {
-                                                    "uri": "https://usm2nughsm6pomstr0.blob.core.windows.net/vhds/k8s-master-C02B7042-0-etcddisk.vhd"
-                                                },
-                                                "caching": "None",
-                                                "diskSizeGB": 128,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "k8s-master-C02B7042-0",
-                                        "adminUsername": "azureuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": true,
-                                            "ssh": {
-                                                "publicKeys": [
-                                                    {
-                                                        "path": "/home/azureuser/.ssh/authorized_keys",
-                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCu+HeCwOjvMmh3oL29xkt9RLmMnNI7OXqkEKeAC2k3TmywKhPe81IoB+BjJdURne0oamHHp7QwVVff1rOPsT0+Df0u0xzMPKzY6yq5RZy7ClNcptVTQxBYVRuNLoTqgvH79OnlLVHjU6ANtgMj+gC5ZPDyaou8v8V9zaFALcmaGxIPEwquuQBy9XHeYPgQyiVSrmRvL3ZX7hOdxAvqc3nHY8T5d96ojhvk1nXaOaewNELBeD4SfpqV96xtMsOWkdIrQdfiqmO0oTxDms+Ky/RuphhUlrd8XOdqEuaWvGLTK2y1KkdgHfdoe5LWdQAW7H8YHb5EgcqvBX+5wIj+ncHT"
-                                                    }
-                                                ]
-                                            }
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_containerservice/providers/Microsoft.Network/networkInterfaces/k8s-master-C02B7042-nic-0"
-                                            }
-                                        ]
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "resources": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0/extensions/cse0"
-                                    }
-                                ],
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "creationSource": "acs-k8s-master-C02B7042-0",
-                                    "orchestrator": "Kubernetes:1.7.7",
-                                    "poolName": "master",
-                                    "resourceNameSuffix": "C02B7042"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_CONTAINERSERVICE/providers/Microsoft.Compute/virtualMachines/k8s-master-C02B7042-0",
-                                "name": "k8s-master-C02B7042-0"
-                            },
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine.json
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine.json
@@ -0,0 +1,123 @@
+{
+    "version": 1,
+    "interactions": [
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:41:52 GMT"
+                    ],
+                    "x-ms-original-request-ids": [
+                        "04820a56-2374-430d-8be4-3fd61d5c3351",
+                        "648b5e18-6b70-45fc-a953-1d70e65ba801"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "value": [
+                            {
+                                "name": "cctestvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "testtag": "testvalue",
+                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                                },
+                                "properties": {
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_A1_v2"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "16.04.0-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "16.04.202104290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Standard_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": [
+                                            {
+                                                "lun": 0,
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                                "createOption": "Empty",
+                                                "caching": "None",
+                                                "managedDisk": {
+                                                    "storageAccountType": "Standard_LRS",
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                                },
+                                                "diskSizeGB": 1023,
+                                                "toBeDetached": false
+                                            }
+                                        ]
+                                    },
+                                    "osProfile": {
+                                        "computerName": "vmmilaytvhe7nwq",
+                                        "adminUsername": "testuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": []
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true,
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                }
+            }
+        }
+    ]
+}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_resize.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_extensions.json
similarity index 53%
rename from tools/c7n_azure/tests_azure/cassettes/VMTest.test_resize.json
rename to tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_extensions.json
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_resize.json
+++ b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_extensions.json
@@ -4,7 +4,7 @@
         {
             "request": {
                 "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-07-01",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
                 "body": null,
                 "headers": {}
             },
@@ -14,23 +14,21 @@
                     "message": "OK"
                 },
                 "headers": {
-                    "content-length": [
-                        "13321"
-                    ],
-                    "x-ms-original-request-ids": [
-                        "9d1f3d02-c6c7-4156-9fd2-bdbb42171d84",
-                        "e8840802-e918-4be7-b93f-7088f446009a",
-                        "3d275fd1-b8fa-4566-a6f7-fdca4c173438",
-                        "523d9744-2a32-418b-879c-ce20780f3a17"
-                    ],
-                    "date": [
-                        "Mon, 26 Oct 2020 18:12:58 GMT"
-                    ],
                     "cache-control": [
                         "no-cache"
                     ],
                     "content-type": [
                         "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:42:15 GMT"
+                    ],
+                    "x-ms-original-request-ids": [
+                        "b6636967-f0d6-4c42-ac4e-b0ceee5f2d47",
+                        "f959182b-6b43-473a-be9e-4c73f6a22aa0"
                     ]
                 },
                 "body": {
@@ -46,7 +44,7 @@
                                     "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
                                 },
                                 "properties": {
-                                    "vmId": "d565866c-9aaa-4ff1-a8ee-17bdc9ce4675",
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
                                     "hardwareProfile": {
                                         "vmSize": "Standard_A1_v2"
                                     },
@@ -56,28 +54,28 @@
                                             "offer": "UbuntuServer",
                                             "sku": "16.04.0-LTS",
                                             "version": "latest",
-                                            "exactVersion": "16.04.202010140"
+                                            "exactVersion": "16.04.202104290"
                                         },
                                         "osDisk": {
                                             "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_358aa817f747420abc4dd5794a268a7b",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
                                             "createOption": "FromImage",
                                             "caching": "ReadWrite",
                                             "managedDisk": {
                                                 "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_358aa817f747420abc4dd5794a268a7b"
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
                                             },
                                             "diskSizeGB": 30
                                         },
                                         "dataDisks": [
                                             {
                                                 "lun": 0,
-                                                "name": "cctestvm_disk2_880671278cbd4b5b8083bfe176d35dee",
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
                                                 "createOption": "Empty",
                                                 "caching": "None",
                                                 "managedDisk": {
                                                     "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_880671278cbd4b5b8083bfe176d35dee"
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
                                                 },
                                                 "diskSizeGB": 1023,
                                                 "toBeDetached": false
@@ -85,10 +83,13 @@
                                         ]
                                     },
                                     "osProfile": {
-                                        "computerName": "vmyd3b22k4ef27q",
+                                        "computerName": "vmmilaytvhe7nwq",
                                         "adminUsername": "testuser",
                                         "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
                                         },
                                         "secrets": []
                                     },
@@ -102,11 +103,16 @@
                                     "diagnosticsProfile": {
                                         "bootDiagnostics": {
                                             "enabled": true,
-                                            "storageUri": "https://yd3b22k4ef27qsalinuxvm.blob.core.windows.net/"
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
                                         }
                                     },
                                     "provisioningState": "Succeeded"
-                                }
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
                             }
                         ]
                     }
@@ -115,9 +121,9 @@
         },
         {
             "request": {
-                "method": "PATCH",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?api-version=2019-07-01",
-                "body": "mock_body",
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions?api-version=2020-12-01",
+                "body": null,
                 "headers": {}
             },
             "response": {
@@ -127,105 +133,48 @@
                 },
                 "headers": {
                     "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1198"
-                    ],
-                    "date": [
-                        "Mon, 26 Oct 2020 18:13:02 GMT"
-                    ],
-                    "azure-asyncnotification": [
-                        "Enabled"
+                        "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31998"
                     ],
                     "cache-control": [
                         "no-cache"
                     ],
-                    "azure-asyncoperation": [
-                        "https://management.azure.com/subscriptions/27847cfa-1b12-462a-9672-6dfb0f85e28c/providers/Microsoft.Compute/locations/southcentralus/operations/63039941-1414-44af-90c0-d3d90e4697c8?api-version=2019-07-01"
-                    ],
-                    "x-ms-ratelimit-remaining-subscription-writes": [
-                        "1198"
-                    ],
                     "content-type": [
                         "application/json; charset=utf-8"
                     ],
+                    "date": [
+                        "Mon, 24 May 2021 14:42:15 GMT"
+                    ],
                     "content-length": [
-                        "2387"
+                        "696"
                     ]
                 },
                 "body": {
                     "data": {
-                        "name": "cctestvm",
-                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                        "type": "Microsoft.Compute/virtualMachines",
-                        "location": "southcentralus",
-                        "tags": {
-                            "testtag": "testvalue",
-                            "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                        },
-                        "properties": {
-                            "vmId": "d565866c-9aaa-4ff1-a8ee-17bdc9ce4675",
-                            "hardwareProfile": {
-                                "vmSize": "Standard_A2_v2"
-                            },
-                            "storageProfile": {
-                                "imageReference": {
-                                    "publisher": "Canonical",
-                                    "offer": "UbuntuServer",
-                                    "sku": "16.04.0-LTS",
-                                    "version": "latest",
-                                    "exactVersion": "16.04.202010140"
-                                },
-                                "osDisk": {
-                                    "osType": "Linux",
-                                    "name": "cctestvm_OsDisk_1_358aa817f747420abc4dd5794a268a7b",
-                                    "createOption": "FromImage",
-                                    "caching": "ReadWrite",
-                                    "managedDisk": {
-                                        "storageAccountType": "Standard_LRS",
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_358aa817f747420abc4dd5794a268a7b"
-                                    },
-                                    "diskSizeGB": 30
-                                },
-                                "dataDisks": [
-                                    {
-                                        "lun": 0,
-                                        "name": "cctestvm_disk2_880671278cbd4b5b8083bfe176d35dee",
-                                        "createOption": "Empty",
-                                        "caching": "None",
-                                        "managedDisk": {
-                                            "storageAccountType": "Standard_LRS",
-                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_880671278cbd4b5b8083bfe176d35dee"
-                                        },
-                                        "diskSizeGB": 1023,
-                                        "toBeDetached": false
-                                    }
-                                ]
-                            },
-                            "osProfile": {
-                                "computerName": "vmyd3b22k4ef27q",
-                                "adminUsername": "testuser",
-                                "linuxConfiguration": {
-                                    "disablePasswordAuthentication": false
+                        "value": [
+                            {
+                                "name": "script1",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1",
+                                "type": "Microsoft.Compute/virtualMachines/extensions",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "displayName": "config-app"
                                 },
-                                "secrets": []
-                            },
-                            "networkProfile": {
-                                "networkInterfaces": [
-                                    {
-                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                "properties": {
+                                    "autoUpgradeMinorVersion": true,
+                                    "provisioningState": "Succeeded",
+                                    "publisher": "Microsoft.Azure.Extensions",
+                                    "type": "CustomScript",
+                                    "typeHandlerVersion": "2.1",
+                                    "settings": {
+                                        "skipDos2Unix": false,
+                                        "timestamp": 123456789
                                     }
-                                ]
-                            },
-                            "diagnosticsProfile": {
-                                "bootDiagnostics": {
-                                    "enabled": true,
-                                    "storageUri": "https://yd3b22k4ef27qsalinuxvm.blob.core.windows.net/"
                                 }
-                            },
-                            "provisioningState": "Updating"
-                        }
+                            }
+                        ]
                     }
                 }
             }
         }
     ]
-}
+}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_instance.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_instance.json
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_instance.json
@@ -0,0 +1,339 @@
+{
+    "version": 1,
+    "interactions": [
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:41:55 GMT"
+                    ],
+                    "x-ms-original-request-ids": [
+                        "804d0304-66f1-438a-b1e8-baefef7c83ef",
+                        "7e9ce28f-aa84-4393-82b9-821eeb47ddac"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "value": [
+                            {
+                                "name": "cctestvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "testtag": "testvalue",
+                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                                },
+                                "properties": {
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_A1_v2"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "16.04.0-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "16.04.202104290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Standard_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": [
+                                            {
+                                                "lun": 0,
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                                "createOption": "Empty",
+                                                "caching": "None",
+                                                "managedDisk": {
+                                                    "storageAccountType": "Standard_LRS",
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                                },
+                                                "diskSizeGB": 1023,
+                                                "toBeDetached": false
+                                            }
+                                        ]
+                                    },
+                                    "osProfile": {
+                                        "computerName": "vmmilaytvhe7nwq",
+                                        "adminUsername": "testuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": []
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true,
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm?$expand=instanceview&api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "x-ms-ratelimit-remaining-resource": [
+                        "Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31999"
+                    ],
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:41:55 GMT"
+                    ],
+                    "content-length": [
+                        "6141"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "name": "cctestvm",
+                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                        "type": "Microsoft.Compute/virtualMachines",
+                        "location": "southcentralus",
+                        "tags": {
+                            "testtag": "testvalue",
+                            "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                        },
+                        "properties": {
+                            "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                            "hardwareProfile": {
+                                "vmSize": "Standard_A1_v2"
+                            },
+                            "storageProfile": {
+                                "imageReference": {
+                                    "publisher": "Canonical",
+                                    "offer": "UbuntuServer",
+                                    "sku": "16.04.0-LTS",
+                                    "version": "latest",
+                                    "exactVersion": "16.04.202104290"
+                                },
+                                "osDisk": {
+                                    "osType": "Linux",
+                                    "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                    "createOption": "FromImage",
+                                    "caching": "ReadWrite",
+                                    "managedDisk": {
+                                        "storageAccountType": "Standard_LRS",
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                    },
+                                    "diskSizeGB": 30
+                                },
+                                "dataDisks": [
+                                    {
+                                        "lun": 0,
+                                        "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                        "createOption": "Empty",
+                                        "caching": "None",
+                                        "managedDisk": {
+                                            "storageAccountType": "Standard_LRS",
+                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                        },
+                                        "diskSizeGB": 1023,
+                                        "toBeDetached": false
+                                    }
+                                ]
+                            },
+                            "osProfile": {
+                                "computerName": "vmmilaytvhe7nwq",
+                                "adminUsername": "testuser",
+                                "linuxConfiguration": {
+                                    "disablePasswordAuthentication": false,
+                                    "patchSettings": {
+                                        "patchMode": "ImageDefault"
+                                    }
+                                },
+                                "secrets": []
+                            },
+                            "networkProfile": {
+                                "networkInterfaces": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                    }
+                                ]
+                            },
+                            "diagnosticsProfile": {
+                                "bootDiagnostics": {
+                                    "enabled": true,
+                                    "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                }
+                            },
+                            "provisioningState": "Succeeded",
+                            "instanceView": {
+                                "computerName": "vmmilaytvhe7nwq",
+                                "osName": "ubuntu",
+                                "osVersion": "16.04",
+                                "vmAgent": {
+                                    "vmAgentVersion": "2.2.54.2",
+                                    "statuses": [
+                                        {
+                                            "code": "ProvisioningState/succeeded",
+                                            "level": "Info",
+                                            "displayStatus": "Ready",
+                                            "message": "Guest Agent is running",
+                                            "time": "2021-05-24T14:41:43+00:00"
+                                        }
+                                    ],
+                                    "extensionHandlers": [
+                                        {
+                                            "type": "Microsoft.Azure.Extensions.CustomScript",
+                                            "typeHandlerVersion": "2.1.3",
+                                            "status": {
+                                                "code": "ProvisioningState/succeeded",
+                                                "level": "Info",
+                                                "displayStatus": "Ready",
+                                                "message": "Plugin enabled"
+                                            }
+                                        }
+                                    ]
+                                },
+                                "disks": [
+                                    {
+                                        "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                        "statuses": [
+                                            {
+                                                "code": "ProvisioningState/succeeded",
+                                                "level": "Info",
+                                                "displayStatus": "Provisioning succeeded",
+                                                "time": "2021-05-21T14:16:29.7966701+00:00"
+                                            }
+                                        ]
+                                    },
+                                    {
+                                        "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                        "statuses": [
+                                            {
+                                                "code": "ProvisioningState/succeeded",
+                                                "level": "Info",
+                                                "displayStatus": "Provisioning succeeded",
+                                                "time": "2021-05-21T14:16:29.7966701+00:00"
+                                            }
+                                        ]
+                                    }
+                                ],
+                                "bootDiagnostics": {
+                                    "consoleScreenshotBlobUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/bootdiagnostics-cctestvm-f6a6b9b2-9b99-45b0-8a18-025998fc74d0/cctestvm.f6a6b9b2-9b99-45b0-8a18-025998fc74d0.screenshot.bmp",
+                                    "serialConsoleLogBlobUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/bootdiagnostics-cctestvm-f6a6b9b2-9b99-45b0-8a18-025998fc74d0/cctestvm.f6a6b9b2-9b99-45b0-8a18-025998fc74d0.serialconsole.log"
+                                },
+                                "extensions": [
+                                    {
+                                        "name": "script1",
+                                        "type": "Microsoft.Azure.Extensions.CustomScript",
+                                        "typeHandlerVersion": "2.1.3",
+                                        "statuses": [
+                                            {
+                                                "code": "ProvisioningState/succeeded",
+                                                "level": "Info",
+                                                "displayStatus": "Provisioning succeeded",
+                                                "message": "Enable succeeded: \n[stdout]\nfoo\n\n[stderr]\n"
+                                            }
+                                        ]
+                                    }
+                                ],
+                                "hyperVGeneration": "V1",
+                                "statuses": [
+                                    {
+                                        "code": "ProvisioningState/succeeded",
+                                        "level": "Info",
+                                        "displayStatus": "Provisioning succeeded",
+                                        "time": "2021-05-24T12:39:13.2418711+00:00"
+                                    },
+                                    {
+                                        "code": "PowerState/running",
+                                        "level": "Info",
+                                        "displayStatus": "VM running"
+                                    }
+                                ]
+                            }
+                        },
+                        "resources": [
+                            {
+                                "name": "script1",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1",
+                                "type": "Microsoft.Compute/virtualMachines/extensions",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "displayName": "config-app"
+                                },
+                                "properties": {
+                                    "autoUpgradeMinorVersion": true,
+                                    "provisioningState": "Succeeded",
+                                    "publisher": "Microsoft.Azure.Extensions",
+                                    "type": "CustomScript",
+                                    "typeHandlerVersion": "2.1",
+                                    "settings": {
+                                        "skipDos2Unix": false,
+                                        "timestamp": 123456789
+                                    }
+                                }
+                            }
+                        ]
+                    }
+                }
+            }
+        }
+    ]
+}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_vm_with_public_ip.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_interface.json
similarity index 59%
rename from tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_vm_with_public_ip.json
rename to tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_interface.json
--- a/tools/c7n_azure/tests_azure/cassettes/VMTest.test_find_vm_with_public_ip.json
+++ b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_interface.json
@@ -1,1631 +1,2234 @@
-{
-    "version": 1,
-    "interactions": [
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;102,Microsoft.Compute/HighCostGet30Min;618"
-                    ],
-                    "date": [
-                        "Fri, 03 May 2019 19:54:40 GMT"
-                    ],
-                    "content-length": [
-                        "2623"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network?api-version=2018-05-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "content-length": [
-                        "51205"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "date": [
-                        "Fri, 03 May 2019 19:54:40 GMT"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network",
-                        "namespace": "Microsoft.Network",
-                        "authorizations": [],
-                        "resourceTypes": [
-                            {
-                                "resourceType": "virtualNetworks",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "natGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "publicIPAddresses",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkInterfaces",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateEndpoints",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "loadBalancers",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkSecurityGroups",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationSecurityGroups",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "serviceEndpointPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkIntentPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "routeTables",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "publicIPPrefixes",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "ddosCustomPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers/connectionMonitors",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers/lenses",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers/pingMeshes",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualNetworkGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "localNetworkGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "connections",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayWebApplicationFirewallPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/operations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/operationResults",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/CheckDnsNameAvailability",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/usages",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/virtualNetworkAvailableEndpointServices",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/availableDelegations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/availablePrivateEndpointResources",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/supportedVirtualMachineSizes",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/checkAcceleratedNetworkingSupport",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/validateResourceOwnership",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/setResourceOwnership",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/effectiveResourceOwnership",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "operations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnsOperationResults",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnsOperationStatuses",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "getDnsResourceReference",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "internalNotify",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/A",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/AAAA",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/CNAME",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/PTR",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/MX",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/TXT",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/SRV",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/SOA",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/NS",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/CAA",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/recordsets",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/all",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/virtualNetworkLinks",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsOperationResults",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsOperationStatuses",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/A",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/AAAA",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/CNAME",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/PTR",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/MX",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/TXT",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/SRV",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/SOA",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/all",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficmanagerprofiles",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficmanagerprofiles/heatMaps",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "checkTrafficManagerNameAvailability",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficManagerUserMetricsKeys",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficManagerGeographicHierarchies",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "expressRouteCircuits",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "expressRouteServiceProviders",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableWafRuleSets",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableSslOptions",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableServerVariables",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableRequestHeaders",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableResponseHeaders",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "routeFilters",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "bgpServiceCommunities",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualWans",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "vpnSites",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualHubs",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "vpnGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "secureGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "azureFirewalls",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "azureFirewallFqdnTags",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualNetworkTaps",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateLinkServices",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "ddosProtectionPlans",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkProfiles",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoorOperationResults",
-                                "apiVersions": [
-                                    "2019-04-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "checkFrontdoorNameAvailability",
-                                "apiVersions": [
-                                    "2019-04-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoors",
-                                "apiVersions": [
-                                    "2019-04-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoorWebApplicationFirewallPolicies",
-                                "apiVersions": [
-                                    "2019-03-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoorWebApplicationFirewallManagedRuleSets",
-                                "apiVersions": [
-                                    "2019-03-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "webApplicationFirewallPolicies",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/bareMetalTenants",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            }
-                        ],
-                        "registrationState": "Registered"
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic?api-version=2019-02-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "etag": [
-                        "W/\"979bce69-fdaf-4d71-bfb6-a0262a5f2cb3\""
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "date": [
-                        "Fri, 03 May 2019 19:54:41 GMT"
-                    ],
-                    "content-length": [
-                        "2018"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "name": "myVMNic",
-                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic",
-                        "etag": "W/\"979bce69-fdaf-4d71-bfb6-a0262a5f2cb3\"",
-                        "location": "southcentralus",
-                        "properties": {
-                            "provisioningState": "Succeeded",
-                            "resourceGuid": "e2410fbc-e314-4fde-b715-0a7494966146",
-                            "ipConfigurations": [
-                                {
-                                    "name": "ipconfig1",
-                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic/ipConfigurations/ipconfig1",
-                                    "etag": "W/\"979bce69-fdaf-4d71-bfb6-a0262a5f2cb3\"",
-                                    "type": "Microsoft.Network/networkInterfaces/ipConfigurations",
-                                    "properties": {
-                                        "provisioningState": "Succeeded",
-                                        "privateIPAddress": "10.0.0.4",
-                                        "privateIPAllocationMethod": "Dynamic",
-                                        "publicIPAddress": {
-                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/publicIPAddresses/myPublicIP"
-                                        },
-                                        "subnet": {
-                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/virtualNetworks/MyVNET/subnets/Subnet"
-                                        },
-                                        "primary": true,
-                                        "privateIPAddressVersion": "IPv4"
-                                    }
-                                }
-                            ],
-                            "dnsSettings": {
-                                "dnsServers": [],
-                                "appliedDnsServers": [],
-                                "internalDomainNameSuffix": "exgiii3jsope1igjcag5igqlkc.jx.internal.cloudapp.net"
-                            },
-                            "macAddress": "00-0D-3A-70-33-10",
-                            "enableAcceleratedNetworking": false,
-                            "enableIPForwarding": false,
-                            "primary": true,
-                            "virtualMachine": {
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm"
-                            },
-                            "hostedWorkloads": [],
-                            "tapConfigurations": []
-                        },
-                        "type": "Microsoft.Network/networkInterfaces"
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2019-03-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "x-ms-ratelimit-remaining-resource": [
-                        "Microsoft.Compute/HighCostGet3Min;101,Microsoft.Compute/HighCostGet30Min;617"
-                    ],
-                    "date": [
-                        "Fri, 03 May 2019 19:54:41 GMT"
-                    ],
-                    "content-length": [
-                        "2623"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "value": [
-                            {
-                                "properties": {
-                                    "vmId": "e1182f4f-d46b-43c4-a797-feee1c1ae2bd",
-                                    "hardwareProfile": {
-                                        "vmSize": "Basic_A0"
-                                    },
-                                    "storageProfile": {
-                                        "imageReference": {
-                                            "publisher": "Canonical",
-                                            "offer": "UbuntuServer",
-                                            "sku": "16.04.0-LTS",
-                                            "version": "latest"
-                                        },
-                                        "osDisk": {
-                                            "osType": "Linux",
-                                            "name": "cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2",
-                                            "createOption": "FromImage",
-                                            "caching": "ReadWrite",
-                                            "managedDisk": {
-                                                "storageAccountType": "Standard_LRS",
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_a9f308a2eb4a47d288b5ea13757ebfe2"
-                                            },
-                                            "diskSizeGB": 30
-                                        },
-                                        "dataDisks": [
-                                            {
-                                                "lun": 0,
-                                                "name": "cctestvm_disk2_977a393608a8458f960a28f8000151d7",
-                                                "createOption": "Empty",
-                                                "caching": "None",
-                                                "managedDisk": {
-                                                    "storageAccountType": "Standard_LRS",
-                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_977a393608a8458f960a28f8000151d7"
-                                                },
-                                                "diskSizeGB": 1023,
-                                                "toBeDetached": false
-                                            }
-                                        ]
-                                    },
-                                    "osProfile": {
-                                        "computerName": "vm45mqcga7pkswi",
-                                        "adminUsername": "testuser",
-                                        "linuxConfiguration": {
-                                            "disablePasswordAuthentication": false
-                                        },
-                                        "secrets": []
-                                    },
-                                    "networkProfile": {
-                                        "networkInterfaces": [
-                                            {
-                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
-                                            }
-                                        ]
-                                    },
-                                    "diagnosticsProfile": {
-                                        "bootDiagnostics": {
-                                            "enabled": true,
-                                            "storageUri": "https://45mqcga7pkswisalinuxvm.blob.core.windows.net/"
-                                        }
-                                    },
-                                    "provisioningState": "Succeeded"
-                                },
-                                "type": "Microsoft.Compute/virtualMachines",
-                                "location": "southcentralus",
-                                "tags": {
-                                    "testtag": "testvalue",
-                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
-                                },
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
-                                "name": "cctestvm"
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network?api-version=2018-05-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "content-length": [
-                        "51205"
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "date": [
-                        "Fri, 03 May 2019 19:54:42 GMT"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network",
-                        "namespace": "Microsoft.Network",
-                        "authorizations": [],
-                        "resourceTypes": [
-                            {
-                                "resourceType": "virtualNetworks",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "natGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "publicIPAddresses",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkInterfaces",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateEndpoints",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "loadBalancers",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkSecurityGroups",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationSecurityGroups",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "serviceEndpointPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkIntentPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "routeTables",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "publicIPPrefixes",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "ddosCustomPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers/connectionMonitors",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers/lenses",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkWatchers/pingMeshes",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualNetworkGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "localNetworkGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "connections",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayWebApplicationFirewallPolicies",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/operations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/operationResults",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/CheckDnsNameAvailability",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/usages",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/virtualNetworkAvailableEndpointServices",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/availableDelegations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/availablePrivateEndpointResources",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/supportedVirtualMachineSizes",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/checkAcceleratedNetworkingSupport",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/validateResourceOwnership",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/setResourceOwnership",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/effectiveResourceOwnership",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "operations",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnsOperationResults",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnsOperationStatuses",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "getDnsResourceReference",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "internalNotify",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/A",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/AAAA",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/CNAME",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/PTR",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/MX",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/TXT",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/SRV",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/SOA",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/NS",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/CAA",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/recordsets",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "dnszones/all",
-                                "apiVersions": [
-                                    "2018-05-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/virtualNetworkLinks",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsOperationResults",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsOperationStatuses",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/A",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/AAAA",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/CNAME",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/PTR",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/MX",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/TXT",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/SRV",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/SOA",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateDnsZones/all",
-                                "apiVersions": [
-                                    "2018-09-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficmanagerprofiles",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficmanagerprofiles/heatMaps",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "checkTrafficManagerNameAvailability",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficManagerUserMetricsKeys",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "trafficManagerGeographicHierarchies",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "expressRouteCircuits",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "expressRouteServiceProviders",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableWafRuleSets",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableSslOptions",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableServerVariables",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableRequestHeaders",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "applicationGatewayAvailableResponseHeaders",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "routeFilters",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "bgpServiceCommunities",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualWans",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "vpnSites",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualHubs",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "vpnGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "secureGateways",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "azureFirewalls",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "azureFirewallFqdnTags",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "virtualNetworkTaps",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "privateLinkServices",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "ddosProtectionPlans",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "networkProfiles",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoorOperationResults",
-                                "apiVersions": [
-                                    "2019-04-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "checkFrontdoorNameAvailability",
-                                "apiVersions": [
-                                    "2019-04-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoors",
-                                "apiVersions": [
-                                    "2019-04-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoorWebApplicationFirewallPolicies",
-                                "apiVersions": [
-                                    "2019-03-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "frontdoorWebApplicationFirewallManagedRuleSets",
-                                "apiVersions": [
-                                    "2019-03-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "webApplicationFirewallPolicies",
-                                "apiVersions": [
-                                    "2018-08-01"
-                                ]
-                            },
-                            {
-                                "resourceType": "locations/bareMetalTenants",
-                                "apiVersions": [
-                                    "2019-02-01"
-                                ]
-                            }
-                        ],
-                        "registrationState": "Registered"
-                    }
-                }
-            }
-        },
-        {
-            "request": {
-                "method": "GET",
-                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic?api-version=2019-02-01",
-                "body": null,
-                "headers": {}
-            },
-            "response": {
-                "status": {
-                    "code": 200,
-                    "message": "OK"
-                },
-                "headers": {
-                    "content-type": [
-                        "application/json; charset=utf-8"
-                    ],
-                    "etag": [
-                        "W/\"979bce69-fdaf-4d71-bfb6-a0262a5f2cb3\""
-                    ],
-                    "cache-control": [
-                        "no-cache"
-                    ],
-                    "date": [
-                        "Fri, 03 May 2019 19:54:42 GMT"
-                    ],
-                    "content-length": [
-                        "2018"
-                    ]
-                },
-                "body": {
-                    "data": {
-                        "name": "myVMNic",
-                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic",
-                        "etag": "W/\"979bce69-fdaf-4d71-bfb6-a0262a5f2cb3\"",
-                        "location": "southcentralus",
-                        "properties": {
-                            "provisioningState": "Succeeded",
-                            "resourceGuid": "e2410fbc-e314-4fde-b715-0a7494966146",
-                            "ipConfigurations": [
-                                {
-                                    "name": "ipconfig1",
-                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic/ipConfigurations/ipconfig1",
-                                    "etag": "W/\"979bce69-fdaf-4d71-bfb6-a0262a5f2cb3\"",
-                                    "type": "Microsoft.Network/networkInterfaces/ipConfigurations",
-                                    "properties": {
-                                        "provisioningState": "Succeeded",
-                                        "privateIPAddress": "10.0.0.4",
-                                        "privateIPAllocationMethod": "Dynamic",
-                                        "publicIPAddress": {
-                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/publicIPAddresses/myPublicIP"
-                                        },
-                                        "subnet": {
-                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/virtualNetworks/MyVNET/subnets/Subnet"
-                                        },
-                                        "primary": true,
-                                        "privateIPAddressVersion": "IPv4"
-                                    }
-                                }
-                            ],
-                            "dnsSettings": {
-                                "dnsServers": [],
-                                "appliedDnsServers": [],
-                                "internalDomainNameSuffix": "exgiii3jsope1igjcag5igqlkc.jx.internal.cloudapp.net"
-                            },
-                            "macAddress": "00-0D-3A-70-33-10",
-                            "enableAcceleratedNetworking": false,
-                            "enableIPForwarding": false,
-                            "primary": true,
-                            "virtualMachine": {
-                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm"
-                            },
-                            "hostedWorkloads": [],
-                            "tapConfigurations": []
-                        },
-                        "type": "Microsoft.Network/networkInterfaces"
-                    }
-                }
-            }
-        }
-    ]
+{
+    "version": 1,
+    "interactions": [
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:41:58 GMT"
+                    ],
+                    "x-ms-original-request-ids": [
+                        "e73f027e-dda9-43ca-9cf6-6abeb87e5dca",
+                        "a8eb1000-450d-45a2-ab0a-aafe022e2d4a"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "value": [
+                            {
+                                "name": "cctestvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "testtag": "testvalue",
+                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                                },
+                                "properties": {
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_A1_v2"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "16.04.0-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "16.04.202104290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Standard_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": [
+                                            {
+                                                "lun": 0,
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                                "createOption": "Empty",
+                                                "caching": "None",
+                                                "managedDisk": {
+                                                    "storageAccountType": "Standard_LRS",
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                                },
+                                                "diskSizeGB": 1023,
+                                                "toBeDetached": false
+                                            }
+                                        ]
+                                    },
+                                    "osProfile": {
+                                        "computerName": "vmmilaytvhe7nwq",
+                                        "adminUsername": "testuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": []
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true,
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network?api-version=2020-10-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "106757"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:41:59 GMT"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network",
+                        "namespace": "Microsoft.Network",
+                        "authorizations": [],
+                        "resourceTypes": [
+                            {
+                                "resourceType": "virtualNetworks",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworks/taggedTrafficConsumers",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "natGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "publicIPAddresses",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "customIpPrefixes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkInterfaces",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dscpConfigurations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateEndpoints",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateEndpointRedirectMaps",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "loadBalancers",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkSecurityGroups",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationSecurityGroups",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "serviceEndpointPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkIntentPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "routeTables",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "publicIPPrefixes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ddosCustomPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers/connectionMonitors",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers/flowLogs",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers/pingMeshes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworkGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "localNetworkGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "connections",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayWebApplicationFirewallPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/operations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/operationResults",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/CheckDnsNameAvailability",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/setLoadBalancerFrontendPublicIpAddresses",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/usages",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/virtualNetworkAvailableEndpointServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/availableDelegations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/serviceTags",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/availablePrivateEndpointTypes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/availableServiceAliases",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/checkPrivateLinkServiceVisibility",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/autoApprovedPrivateLinkServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/batchValidatePrivateEndpointsForResourceMove",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/batchNotifyPrivateEndpointsForResourceMove",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/supportedVirtualMachineSizes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/setAzureNetworkManagerConfiguration",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/getAzureNetworkManagerConfiguration",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/checkAcceleratedNetworkingSupport",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/validateResourceOwnership",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/setResourceOwnership",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/effectiveResourceOwnership",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "operations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnsOperationResults",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnsOperationStatuses",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "getDnsResourceReference",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "internalNotify",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/A",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/AAAA",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/CNAME",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/PTR",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/MX",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/TXT",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/SRV",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/SOA",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/NS",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/CAA",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/recordsets",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/all",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/virtualNetworkLinks",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsOperationResults",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsOperationStatuses",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZonesInternal",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/A",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/AAAA",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/CNAME",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/PTR",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/MX",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/TXT",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/SRV",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/SOA",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/all",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworks/privateDnsZoneLinks",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficmanagerprofiles",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficmanagerprofiles/heatMaps",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "checkTrafficManagerNameAvailability",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficManagerUserMetricsKeys",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficManagerGeographicHierarchies",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRouteCircuits",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRouteServiceProviders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableWafRuleSets",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableSslOptions",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableServerVariables",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableRequestHeaders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableResponseHeaders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "routeFilters",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "bgpServiceCommunities",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualWans",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "vpnSites",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "vpnServerConfigurations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualHubs",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "vpnGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "p2sVpnGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRouteGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRoutePortsLocations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "firewallPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ipGroups",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "azureWebCategories",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/nfvOperations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/nfvOperationResults",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "securityPartnerProviders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "azureFirewalls",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "azureFirewallFqdnTags",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworkTaps",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateLinkServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/privateLinkServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ddosProtectionPlans",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkProfiles",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoorOperationResults",
+                                "apiVersions": [
+                                    "2020-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "checkFrontdoorNameAvailability",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoors",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoors/frontendEndpoints",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoors/frontendEndpoints/customHttpsConfiguration",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoorWebApplicationFirewallPolicies",
+                                "apiVersions": [
+                                    "2020-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoorWebApplicationFirewallManagedRuleSets",
+                                "apiVersions": [
+                                    "2020-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkExperimentProfiles",
+                                "apiVersions": [
+                                    "2019-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/bareMetalTenants",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "bastionHosts",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualRouters",
+                                "apiVersions": [
+                                    "2020-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkVirtualAppliances",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ipAllocations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/commitInternalAzureNetworkManagerConfiguration",
+                                "apiVersions": [
+                                    "2021-02-01-preview"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/internalAzureVirtualNetworkManagerOperation",
+                                "apiVersions": [
+                                    "2021-02-01-preview"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkVirtualApplianceSkus",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            }
+                        ],
+                        "registrationState": "Registered",
+                        "registrationPolicy": "RegistrationRequired"
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic?api-version=2021-02-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "etag": [
+                        "W/\"a503bdac-e13b-40f9-8427-aeab2e49b658\""
+                    ],
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:42:01 GMT"
+                    ],
+                    "x-ms-arm-service-request-id": [
+                        "93c8a436-a41d-4d3d-a0a9-e86a4448e887"
+                    ],
+                    "content-length": [
+                        "2046"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "name": "myVMNic",
+                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic",
+                        "etag": "W/\"a503bdac-e13b-40f9-8427-aeab2e49b658\"",
+                        "location": "southcentralus",
+                        "properties": {
+                            "provisioningState": "Succeeded",
+                            "resourceGuid": "d338d82c-9b34-4003-a6b4-89b64ec322d8",
+                            "ipConfigurations": [
+                                {
+                                    "name": "ipconfig1",
+                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic/ipConfigurations/ipconfig1",
+                                    "etag": "W/\"a503bdac-e13b-40f9-8427-aeab2e49b658\"",
+                                    "type": "Microsoft.Network/networkInterfaces/ipConfigurations",
+                                    "properties": {
+                                        "provisioningState": "Succeeded",
+                                        "privateIPAddress": "10.0.0.4",
+                                        "privateIPAllocationMethod": "Dynamic",
+                                        "publicIPAddress": {
+                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/publicIPAddresses/myPublicIP"
+                                        },
+                                        "subnet": {
+                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/virtualNetworks/MyVNET/subnets/Subnet"
+                                        },
+                                        "primary": true,
+                                        "privateIPAddressVersion": "IPv4"
+                                    }
+                                }
+                            ],
+                            "dnsSettings": {
+                                "dnsServers": [],
+                                "appliedDnsServers": [],
+                                "internalDomainNameSuffix": "ao3dggu3qctennig2a434hofsf.jx.internal.cloudapp.net"
+                            },
+                            "macAddress": "00-0D-3A-EF-1C-8C",
+                            "enableAcceleratedNetworking": false,
+                            "enableIPForwarding": false,
+                            "primary": true,
+                            "virtualMachine": {
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm"
+                            },
+                            "hostedWorkloads": [],
+                            "tapConfigurations": [],
+                            "nicType": "Standard"
+                        },
+                        "type": "Microsoft.Network/networkInterfaces"
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:42:03 GMT"
+                    ],
+                    "x-ms-original-request-ids": [
+                        "344a61bc-dce8-4229-92be-5ef907049c0c",
+                        "6defb777-03eb-4ec4-a380-3a329fb03da4"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "value": [
+                            {
+                                "name": "erinvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/ERIN/providers/Microsoft.Compute/virtualMachines/erinvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "centralus",
+                                "tags": {
+                                    "Function": "Works"
+                                },
+                                "properties": {
+                                    "vmId": "03934a52-9025-44fa-b7d6-29a43d21fd3a",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_B1ls"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "18.04-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "18.04.202101290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "erinvm_OsDisk_1_426c2bbdcfa94699a7461c1bf6e843f6",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Premium_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/erin/providers/Microsoft.Compute/disks/erinvm_OsDisk_1_426c2bbdcfa94699a7461c1bf6e843f6"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": []
+                                    },
+                                    "osProfile": {
+                                        "computerName": "erinvm",
+                                        "adminUsername": "azureuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": true,
+                                            "ssh": {
+                                                "publicKeys": [
+                                                    {
+                                                        "path": "/home/azureuser/.ssh/authorized_keys",
+                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCrwvuw0D6bumrQ29hMlXevFuhn\r\nzqZKh7yVwqXCFpJt4nsvmDL4GbdZuaIcZUU2omHJM8UlW9I1ar+IuDO9u9CZuok7\r\n/6KpZn5/C5TvTt69BvqvP1eMldCWk6FAxKjxICjqHwr9a/KJWe9zCziEKUBR/nCf\r\nU/05NDGwkttVyqcaeogG3f8MKnOmzrkKudVUvuUDoFXtypaJkDs6Veoax3YqkZ//\r\nlmbtyHCc1IhC7Wl97RFmHHc6521nyxPXCHQHDGhRMrtAOXV+OQwa9hk2RnYlPnoJ\r\nECZ/LpKJpOjpEb8AoQB55Zu0itZwohXYAnvXF+sb1xe23WV67zakwaq0+ljMGGk7\r\ngL/0FdmC76jVy40t+EMS3jagRzOjIoqdzZH/g0sqNeUvtG9VdA/uPwUqn64ZRsvB\r\nNGXPLf2G02S6UvRFqCFO2ilVgS1Wr/S0fkNcjE3wghkwgqXcB3lVkefzfN9U241t\r\nsl/ueBVtE5WOSfzIJ3B5t3FJwuO/oYFepAn/G0c= generated-by-azure\r\n"
+                                                    }
+                                                ]
+                                            },
+                                            "provisionVMAgent": true,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": [],
+                                        "allowExtensionOperations": true,
+                                        "requireGuestProvisionSignal": true
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/erin/providers/Microsoft.Network/networkInterfaces/erinvm761"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "zones": [
+                                    "1"
+                                ],
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/ERIN/providers/Microsoft.Compute/virtualMachines/erinvm/extensions/OmsAgentForLinux"
+                                    }
+                                ]
+                            },
+                            {
+                                "name": "stefanvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/STEFAN/providers/Microsoft.Compute/virtualMachines/stefanvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "centralus",
+                                "identity": {
+                                    "type": "SystemAssigned",
+                                    "principalId": "513cf7d8-7f02-4edb-a66c-eeff06b63ac4",
+                                    "tenantId": "00000000-0000-0000-0000-000000000003"
+                                },
+                                "properties": {
+                                    "vmId": "078f2d6a-5ad8-4061-98de-cef497cf0fcc",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_D2s_v3"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "canonical",
+                                            "offer": "0001-com-ubuntu-server-focal",
+                                            "sku": "20_04-lts",
+                                            "version": "latest",
+                                            "exactVersion": "20.04.202105130"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "stefanvm_OsDisk_1_d74edd8dc091445c95c343aa26d8d3b0",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Premium_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/stefan/providers/Microsoft.Compute/disks/stefanvm_OsDisk_1_d74edd8dc091445c95c343aa26d8d3b0"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": []
+                                    },
+                                    "osProfile": {
+                                        "computerName": "stefanvm",
+                                        "adminUsername": "stefangordon",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": true,
+                                            "ssh": {
+                                                "publicKeys": [
+                                                    {
+                                                        "path": "/home/stefangordon/.ssh/authorized_keys",
+                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDS/HbjMl4A7hiflAY+h0ZKf5QJ\r\nbl8L5mZ+0BNX9K8U2FxzigeNvwmnNnSVOBcReSE1d4MK8b89+zj6YiLBqj+sbdPN\r\nEqdFvnfinEIODlSojoDGPGeS2TLYqA+74hs24mzDw/7M5DhEkP+5MiNTQ/+mL+EJ\r\n9mcGL3LC0WweCNsavX/qopy7BydmznEyIcBXUqfanq1PxwxrWhmHFK649XOooplZ\r\n+NF3cROadwxAutnlJu1GvABptOQ7Aw6sjuYZbegL/iLeAGhPdzAUZEgGFkkF0qCi\r\n37yrtlE7kaBWmPwdiL0c8kImIHO8mj/5uxuRwiJYwC2rLPwjDhV4DrFGtm/0NgO0\r\nJm7VnpCzFyT3wHoKeVt8vKslEQlkrJCNaLcvk6lLbHjdfIgtt161Loj1gZmyMZQi\r\nyjyadoJOTWx5ZzylvB/U2MmA03wf5qDn/NcFyr706xwqksH1miAXuRd5B7lG9jSO\r\n+2fCehfrmGBFVpIWkNVMJEzgx/TbxHTENwKmccs= generated-by-azure\r\n"
+                                                    }
+                                                ]
+                                            },
+                                            "provisionVMAgent": true,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": [],
+                                        "allowExtensionOperations": true,
+                                        "requireGuestProvisionSignal": true
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/stefan/providers/Microsoft.Network/networkInterfaces/stefanvm542"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded",
+                                    "priority": "Spot",
+                                    "evictionPolicy": "Deallocate",
+                                    "billingProfile": {
+                                        "maxPrice": -1.0
+                                    }
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/STEFAN/providers/Microsoft.Compute/virtualMachines/stefanvm/extensions/CustomScript"
+                                    },
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/STEFAN/providers/Microsoft.Compute/virtualMachines/stefanvm/extensions/OmsAgentForLinux"
+                                    }
+                                ]
+                            },
+                            {
+                                "name": "cctestvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "testtag": "testvalue",
+                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                                },
+                                "properties": {
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_A1_v2"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "16.04.0-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "16.04.202104290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Standard_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": [
+                                            {
+                                                "lun": 0,
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                                "createOption": "Empty",
+                                                "caching": "None",
+                                                "managedDisk": {
+                                                    "storageAccountType": "Standard_LRS",
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                                },
+                                                "diskSizeGB": 1023,
+                                                "toBeDetached": false
+                                            }
+                                        ]
+                                    },
+                                    "osProfile": {
+                                        "computerName": "vmmilaytvhe7nwq",
+                                        "adminUsername": "testuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": []
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true,
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network?api-version=2020-10-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "content-length": [
+                        "106757"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:42:05 GMT"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Network",
+                        "namespace": "Microsoft.Network",
+                        "authorizations": [],
+                        "resourceTypes": [
+                            {
+                                "resourceType": "virtualNetworks",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworks/taggedTrafficConsumers",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "natGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "publicIPAddresses",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "customIpPrefixes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkInterfaces",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dscpConfigurations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateEndpoints",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateEndpointRedirectMaps",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "loadBalancers",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkSecurityGroups",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationSecurityGroups",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "serviceEndpointPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkIntentPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "routeTables",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "publicIPPrefixes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ddosCustomPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers/connectionMonitors",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers/flowLogs",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkWatchers/pingMeshes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworkGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "localNetworkGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "connections",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayWebApplicationFirewallPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/operations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/operationResults",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/CheckDnsNameAvailability",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/setLoadBalancerFrontendPublicIpAddresses",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/usages",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/virtualNetworkAvailableEndpointServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/availableDelegations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/serviceTags",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/availablePrivateEndpointTypes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/availableServiceAliases",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/checkPrivateLinkServiceVisibility",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/autoApprovedPrivateLinkServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/batchValidatePrivateEndpointsForResourceMove",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/batchNotifyPrivateEndpointsForResourceMove",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/supportedVirtualMachineSizes",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/setAzureNetworkManagerConfiguration",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/getAzureNetworkManagerConfiguration",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/checkAcceleratedNetworkingSupport",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/validateResourceOwnership",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/setResourceOwnership",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/effectiveResourceOwnership",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "operations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnsOperationResults",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnsOperationStatuses",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "getDnsResourceReference",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "internalNotify",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/A",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/AAAA",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/CNAME",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/PTR",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/MX",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/TXT",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/SRV",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/SOA",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/NS",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/CAA",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/recordsets",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "dnszones/all",
+                                "apiVersions": [
+                                    "2018-05-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/virtualNetworkLinks",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsOperationResults",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsOperationStatuses",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZonesInternal",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/A",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/AAAA",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/CNAME",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/PTR",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/MX",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/TXT",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/SRV",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/SOA",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateDnsZones/all",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworks/privateDnsZoneLinks",
+                                "apiVersions": [
+                                    "2020-06-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficmanagerprofiles",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficmanagerprofiles/heatMaps",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "checkTrafficManagerNameAvailability",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficManagerUserMetricsKeys",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "trafficManagerGeographicHierarchies",
+                                "apiVersions": [
+                                    "2018-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRouteCircuits",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRouteServiceProviders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableWafRuleSets",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableSslOptions",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableServerVariables",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableRequestHeaders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "applicationGatewayAvailableResponseHeaders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "routeFilters",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "bgpServiceCommunities",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualWans",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "vpnSites",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "vpnServerConfigurations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualHubs",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "vpnGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "p2sVpnGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRouteGateways",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "expressRoutePortsLocations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "firewallPolicies",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ipGroups",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "azureWebCategories",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/nfvOperations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/nfvOperationResults",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "securityPartnerProviders",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "azureFirewalls",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "azureFirewallFqdnTags",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualNetworkTaps",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "privateLinkServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/privateLinkServices",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ddosProtectionPlans",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkProfiles",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoorOperationResults",
+                                "apiVersions": [
+                                    "2020-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "checkFrontdoorNameAvailability",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoors",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoors/frontendEndpoints",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoors/frontendEndpoints/customHttpsConfiguration",
+                                "apiVersions": [
+                                    "2020-07-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoorWebApplicationFirewallPolicies",
+                                "apiVersions": [
+                                    "2020-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "frontdoorWebApplicationFirewallManagedRuleSets",
+                                "apiVersions": [
+                                    "2020-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkExperimentProfiles",
+                                "apiVersions": [
+                                    "2019-11-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/bareMetalTenants",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "bastionHosts",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "virtualRouters",
+                                "apiVersions": [
+                                    "2020-08-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkVirtualAppliances",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "ipAllocations",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/commitInternalAzureNetworkManagerConfiguration",
+                                "apiVersions": [
+                                    "2021-02-01-preview"
+                                ]
+                            },
+                            {
+                                "resourceType": "locations/internalAzureVirtualNetworkManagerOperation",
+                                "apiVersions": [
+                                    "2021-02-01-preview"
+                                ]
+                            },
+                            {
+                                "resourceType": "networkVirtualApplianceSkus",
+                                "apiVersions": [
+                                    "2021-02-01"
+                                ]
+                            }
+                        ],
+                        "registrationState": "Registered",
+                        "registrationPolicy": "RegistrationRequired"
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic?api-version=2021-02-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "etag": [
+                        "W/\"a503bdac-e13b-40f9-8427-aeab2e49b658\""
+                    ],
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:42:06 GMT"
+                    ],
+                    "x-ms-arm-service-request-id": [
+                        "7840009a-2855-488b-a294-cf2dafcf98da"
+                    ],
+                    "content-length": [
+                        "2046"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "name": "myVMNic",
+                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic",
+                        "etag": "W/\"a503bdac-e13b-40f9-8427-aeab2e49b658\"",
+                        "location": "southcentralus",
+                        "properties": {
+                            "provisioningState": "Succeeded",
+                            "resourceGuid": "d338d82c-9b34-4003-a6b4-89b64ec322d8",
+                            "ipConfigurations": [
+                                {
+                                    "name": "ipconfig1",
+                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic/ipConfigurations/ipconfig1",
+                                    "etag": "W/\"a503bdac-e13b-40f9-8427-aeab2e49b658\"",
+                                    "type": "Microsoft.Network/networkInterfaces/ipConfigurations",
+                                    "properties": {
+                                        "provisioningState": "Succeeded",
+                                        "privateIPAddress": "10.0.0.4",
+                                        "privateIPAllocationMethod": "Dynamic",
+                                        "publicIPAddress": {
+                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/publicIPAddresses/myPublicIP"
+                                        },
+                                        "subnet": {
+                                            "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/virtualNetworks/MyVNET/subnets/Subnet"
+                                        },
+                                        "primary": true,
+                                        "privateIPAddressVersion": "IPv4"
+                                    }
+                                }
+                            ],
+                            "dnsSettings": {
+                                "dnsServers": [],
+                                "appliedDnsServers": [],
+                                "internalDomainNameSuffix": "ao3dggu3qctennig2a434hofsf.jx.internal.cloudapp.net"
+                            },
+                            "macAddress": "00-0D-3A-EF-1C-8C",
+                            "enableAcceleratedNetworking": false,
+                            "enableIPForwarding": false,
+                            "primary": true,
+                            "virtualMachine": {
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/virtualMachines/cctestvm"
+                            },
+                            "hostedWorkloads": [],
+                            "tapConfigurations": [],
+                            "nicType": "Standard"
+                        },
+                        "type": "Microsoft.Network/networkInterfaces"
+                    }
+                }
+            }
+        }
+    ]
 }
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_tags.json b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_tags.json
new file mode 100644
--- /dev/null
+++ b/tools/c7n_azure/tests_azure/cassettes/VMTest.virtual_machine_tags.json
@@ -0,0 +1,406 @@
+{
+    "version": 1,
+    "interactions": [
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "x-ms-original-request-ids": [
+                        "a123c795-4d10-49bd-a0e5-30eae437eccd",
+                        "df32c994-5a91-482c-a475-b49fbd400adf"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:43:19 GMT"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "value": [
+                            {
+                                "name": "cctestvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "testtag": "testvalue",
+                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                                },
+                                "properties": {
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_A1_v2"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "16.04.0-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "16.04.202104290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Standard_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": [
+                                            {
+                                                "lun": 0,
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                                "createOption": "Empty",
+                                                "caching": "None",
+                                                "managedDisk": {
+                                                    "storageAccountType": "Standard_LRS",
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                                },
+                                                "diskSizeGB": 1023,
+                                                "toBeDetached": false
+                                            }
+                                        ]
+                                    },
+                                    "osProfile": {
+                                        "computerName": "vmmilaytvhe7nwq",
+                                        "adminUsername": "testuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": []
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true,
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                }
+            }
+        },
+        {
+            "request": {
+                "method": "GET",
+                "uri": "https://management.azure.com/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01",
+                "body": null,
+                "headers": {}
+            },
+            "response": {
+                "status": {
+                    "code": 200,
+                    "message": "OK"
+                },
+                "headers": {
+                    "x-ms-original-request-ids": [
+                        "3129ed5e-c6b0-4b72-9de8-810c93621251",
+                        "2bef5201-70d5-4348-844b-07bee330503c"
+                    ],
+                    "date": [
+                        "Mon, 24 May 2021 14:43:22 GMT"
+                    ],
+                    "content-type": [
+                        "application/json; charset=utf-8"
+                    ],
+                    "cache-control": [
+                        "no-cache"
+                    ],
+                    "content-length": [
+                        "7019"
+                    ]
+                },
+                "body": {
+                    "data": {
+                        "value": [
+                            {
+                                "name": "erinvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/ERIN/providers/Microsoft.Compute/virtualMachines/erinvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "centralus",
+                                "tags": {
+                                    "Function": "Works"
+                                },
+                                "properties": {
+                                    "vmId": "03934a52-9025-44fa-b7d6-29a43d21fd3a",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_B1ls"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "18.04-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "18.04.202101290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "erinvm_OsDisk_1_426c2bbdcfa94699a7461c1bf6e843f6",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Premium_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/erin/providers/Microsoft.Compute/disks/erinvm_OsDisk_1_426c2bbdcfa94699a7461c1bf6e843f6"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": []
+                                    },
+                                    "osProfile": {
+                                        "computerName": "erinvm",
+                                        "adminUsername": "azureuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": true,
+                                            "ssh": {
+                                                "publicKeys": [
+                                                    {
+                                                        "path": "/home/azureuser/.ssh/authorized_keys",
+                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCrwvuw0D6bumrQ29hMlXevFuhn\r\nzqZKh7yVwqXCFpJt4nsvmDL4GbdZuaIcZUU2omHJM8UlW9I1ar+IuDO9u9CZuok7\r\n/6KpZn5/C5TvTt69BvqvP1eMldCWk6FAxKjxICjqHwr9a/KJWe9zCziEKUBR/nCf\r\nU/05NDGwkttVyqcaeogG3f8MKnOmzrkKudVUvuUDoFXtypaJkDs6Veoax3YqkZ//\r\nlmbtyHCc1IhC7Wl97RFmHHc6521nyxPXCHQHDGhRMrtAOXV+OQwa9hk2RnYlPnoJ\r\nECZ/LpKJpOjpEb8AoQB55Zu0itZwohXYAnvXF+sb1xe23WV67zakwaq0+ljMGGk7\r\ngL/0FdmC76jVy40t+EMS3jagRzOjIoqdzZH/g0sqNeUvtG9VdA/uPwUqn64ZRsvB\r\nNGXPLf2G02S6UvRFqCFO2ilVgS1Wr/S0fkNcjE3wghkwgqXcB3lVkefzfN9U241t\r\nsl/ueBVtE5WOSfzIJ3B5t3FJwuO/oYFepAn/G0c= generated-by-azure\r\n"
+                                                    }
+                                                ]
+                                            },
+                                            "provisionVMAgent": true,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": [],
+                                        "allowExtensionOperations": true,
+                                        "requireGuestProvisionSignal": true
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/erin/providers/Microsoft.Network/networkInterfaces/erinvm761"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "zones": [
+                                    "1"
+                                ],
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/ERIN/providers/Microsoft.Compute/virtualMachines/erinvm/extensions/OmsAgentForLinux"
+                                    }
+                                ]
+                            },
+                            {
+                                "name": "stefanvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/STEFAN/providers/Microsoft.Compute/virtualMachines/stefanvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "centralus",
+                                "identity": {
+                                    "type": "SystemAssigned",
+                                    "principalId": "513cf7d8-7f02-4edb-a66c-eeff06b63ac4",
+                                    "tenantId": "00000000-0000-0000-0000-000000000003"
+                                },
+                                "properties": {
+                                    "vmId": "078f2d6a-5ad8-4061-98de-cef497cf0fcc",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_D2s_v3"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "canonical",
+                                            "offer": "0001-com-ubuntu-server-focal",
+                                            "sku": "20_04-lts",
+                                            "version": "latest",
+                                            "exactVersion": "20.04.202105130"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "stefanvm_OsDisk_1_d74edd8dc091445c95c343aa26d8d3b0",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Premium_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/stefan/providers/Microsoft.Compute/disks/stefanvm_OsDisk_1_d74edd8dc091445c95c343aa26d8d3b0"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": []
+                                    },
+                                    "osProfile": {
+                                        "computerName": "stefanvm",
+                                        "adminUsername": "stefangordon",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": true,
+                                            "ssh": {
+                                                "publicKeys": [
+                                                    {
+                                                        "path": "/home/stefangordon/.ssh/authorized_keys",
+                                                        "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDS/HbjMl4A7hiflAY+h0ZKf5QJ\r\nbl8L5mZ+0BNX9K8U2FxzigeNvwmnNnSVOBcReSE1d4MK8b89+zj6YiLBqj+sbdPN\r\nEqdFvnfinEIODlSojoDGPGeS2TLYqA+74hs24mzDw/7M5DhEkP+5MiNTQ/+mL+EJ\r\n9mcGL3LC0WweCNsavX/qopy7BydmznEyIcBXUqfanq1PxwxrWhmHFK649XOooplZ\r\n+NF3cROadwxAutnlJu1GvABptOQ7Aw6sjuYZbegL/iLeAGhPdzAUZEgGFkkF0qCi\r\n37yrtlE7kaBWmPwdiL0c8kImIHO8mj/5uxuRwiJYwC2rLPwjDhV4DrFGtm/0NgO0\r\nJm7VnpCzFyT3wHoKeVt8vKslEQlkrJCNaLcvk6lLbHjdfIgtt161Loj1gZmyMZQi\r\nyjyadoJOTWx5ZzylvB/U2MmA03wf5qDn/NcFyr706xwqksH1miAXuRd5B7lG9jSO\r\n+2fCehfrmGBFVpIWkNVMJEzgx/TbxHTENwKmccs= generated-by-azure\r\n"
+                                                    }
+                                                ]
+                                            },
+                                            "provisionVMAgent": true,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": [],
+                                        "allowExtensionOperations": true,
+                                        "requireGuestProvisionSignal": true
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/stefan/providers/Microsoft.Network/networkInterfaces/stefanvm542"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded",
+                                    "priority": "Spot",
+                                    "evictionPolicy": "Deallocate",
+                                    "billingProfile": {
+                                        "maxPrice": -1.0
+                                    }
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/STEFAN/providers/Microsoft.Compute/virtualMachines/stefanvm/extensions/CustomScript"
+                                    },
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/STEFAN/providers/Microsoft.Compute/virtualMachines/stefanvm/extensions/OmsAgentForLinux"
+                                    }
+                                ]
+                            },
+                            {
+                                "name": "cctestvm",
+                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm",
+                                "type": "Microsoft.Compute/virtualMachines",
+                                "location": "southcentralus",
+                                "tags": {
+                                    "testtag": "testvalue",
+                                    "schedule": "on=(M-U,8);off=(M-U,18);tz=pt"
+                                },
+                                "properties": {
+                                    "vmId": "f6a6b9b2-9b99-45b0-8a18-025998fc74d0",
+                                    "hardwareProfile": {
+                                        "vmSize": "Standard_A1_v2"
+                                    },
+                                    "storageProfile": {
+                                        "imageReference": {
+                                            "publisher": "Canonical",
+                                            "offer": "UbuntuServer",
+                                            "sku": "16.04.0-LTS",
+                                            "version": "latest",
+                                            "exactVersion": "16.04.202104290"
+                                        },
+                                        "osDisk": {
+                                            "osType": "Linux",
+                                            "name": "cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390",
+                                            "createOption": "FromImage",
+                                            "caching": "ReadWrite",
+                                            "managedDisk": {
+                                                "storageAccountType": "Standard_LRS",
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_OsDisk_1_517889dc284d4327990247d6d933e390"
+                                            },
+                                            "diskSizeGB": 30
+                                        },
+                                        "dataDisks": [
+                                            {
+                                                "lun": 0,
+                                                "name": "cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86",
+                                                "createOption": "Empty",
+                                                "caching": "None",
+                                                "managedDisk": {
+                                                    "storageAccountType": "Standard_LRS",
+                                                    "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Compute/disks/cctestvm_disk2_c891bbcef098417b9c9eaed9b8af5e86"
+                                                },
+                                                "diskSizeGB": 1023,
+                                                "toBeDetached": false
+                                            }
+                                        ]
+                                    },
+                                    "osProfile": {
+                                        "computerName": "vmmilaytvhe7nwq",
+                                        "adminUsername": "testuser",
+                                        "linuxConfiguration": {
+                                            "disablePasswordAuthentication": false,
+                                            "patchSettings": {
+                                                "patchMode": "ImageDefault"
+                                            }
+                                        },
+                                        "secrets": []
+                                    },
+                                    "networkProfile": {
+                                        "networkInterfaces": [
+                                            {
+                                                "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/test_vm/providers/Microsoft.Network/networkInterfaces/myVMNic"
+                                            }
+                                        ]
+                                    },
+                                    "diagnosticsProfile": {
+                                        "bootDiagnostics": {
+                                            "enabled": true,
+                                            "storageUri": "https://milaytvhe7nwqsalinuxvm.blob.core.windows.net/"
+                                        }
+                                    },
+                                    "provisioningState": "Succeeded"
+                                },
+                                "resources": [
+                                    {
+                                        "id": "/subscriptions/ea42f556-5106-4743-99b0-c129bfa71a47/resourceGroups/TEST_VM/providers/Microsoft.Compute/virtualMachines/cctestvm/extensions/script1"
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                }
+            }
+        }
+    ]
+}
\ No newline at end of file
diff --git a/tools/c7n_azure/tests_azure/templates/vm.json b/tools/c7n_azure/tests_azure/templates/vm.json
--- a/tools/c7n_azure/tests_azure/templates/vm.json
+++ b/tools/c7n_azure/tests_azure/templates/vm.json
@@ -145,7 +145,32 @@
           }
         }
       }
+    },
+    {
+    "name": "[concat(variables('vmName'), '/script1')]",
+    "type": "Microsoft.Compute/virtualMachines/extensions",
+    "location": "[resourceGroup().location]",
+    "apiVersion": "2019-03-01",
+    "dependsOn": [
+      "[concat('Microsoft.Compute/virtualMachines/', concat(variables('vmName')))]"
+    ],
+    "tags": {
+      "displayName": "config-app"
+    },
+    "properties": {
+      "publisher": "Microsoft.Azure.Extensions",
+      "type": "CustomScript",
+      "typeHandlerVersion": "2.1",
+      "autoUpgradeMinorVersion": true,
+      "settings": {
+        "skipDos2Unix":false,
+        "timestamp":123456789
+      },
+      "protectedSettings": {
+         "commandToExecute": "echo foo"
+      }
     }
+  }
   ],
   "outputs": {
     "hostname": {
diff --git a/tools/c7n_azure/tests_azure/tests_resources/test_vm.py b/tools/c7n_azure/tests_azure/tests_resources/test_vm.py
--- a/tools/c7n_azure/tests_azure/tests_resources/test_vm.py
+++ b/tools/c7n_azure/tests_azure/tests_resources/test_vm.py
@@ -3,7 +3,7 @@
 import datetime
 
 from azure.mgmt.compute.models import HardwareProfile, VirtualMachineUpdate
-from ..azure_common import BaseTest, arm_template
+from ..azure_common import BaseTest, arm_template, cassette_name
 from c7n_azure.session import Session
 from dateutil import tz as tzutils
 from mock import patch
@@ -41,6 +41,28 @@ def test_validate_vm_schemas(self):
             self.assertTrue(p)
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine_extensions')
+    def test_vm_extensions_filter(self):
+        p = self.load_policy({
+            'name': 'test-azure-vm-extensions',
+            'resource': 'azure.vm',
+            'filters': [
+                {'type': 'value',
+                 'key': 'name',
+                 'op': 'eq',
+                 'value_type': 'normalize',
+                 'value': 'cctestvm'},
+                {'type': 'vm-extensions',
+                 'key': '[].properties.type',
+                 'op': 'in',
+                 'value_type': 'swap',
+                 'value': 'CustomScript'}],
+        })
+        resources = p.run()
+        self.assertEqual(len(resources), 1)
+
+    @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     def test_find_by_name(self):
         p = self.load_policy({
             'name': 'test-azure-vm',
@@ -56,6 +78,7 @@ def test_find_by_name(self):
         self.assertEqual(len(resources), 1)
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine_instance')
     def test_find_running(self):
         p = self.load_policy({
             'name': 'test-azure-vm',
@@ -81,6 +104,7 @@ def test_find_running(self):
     }]
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     @patch('c7n_azure.resources.vm.InstanceViewFilter.process', return_value=fake_running_vms)
     def test_stop(self, filter_mock):
         with patch(self._get_vm_client_string() + '.begin_deallocate') as stop_action_mock:
@@ -108,6 +132,7 @@ def test_stop(self, filter_mock):
                 self.fake_running_vms[0]['name'])
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     @patch('c7n_azure.resources.vm.InstanceViewFilter.process', return_value=fake_running_vms)
     def test_poweroff(self, filter_mock):
         with patch(self._get_vm_client_string() + '.begin_power_off') as poweroff_action_mock:
@@ -137,6 +162,7 @@ def test_poweroff(self, filter_mock):
             )
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     @patch('c7n_azure.resources.vm.InstanceViewFilter.process', return_value=fake_running_vms)
     def test_start(self, filter_mock):
         with patch(self._get_vm_client_string() + '.begin_start') as start_action_mock:
@@ -165,6 +191,7 @@ def test_start(self, filter_mock):
                 self.fake_running_vms[0]['name'])
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     @patch('c7n_azure.resources.vm.InstanceViewFilter.process', return_value=fake_running_vms)
     def test_restart(self, filter_mock):
         with patch(self._get_vm_client_string() + '.begin_restart') as restart_action_mock:
@@ -192,6 +219,7 @@ def test_restart(self, filter_mock):
                 self.fake_running_vms[0]['name'])
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     @patch('c7n_azure.resources.vm.InstanceViewFilter.process', return_value=fake_running_vms)
     def test_resize(self, resize_action_mock):
         with patch(self._get_vm_client_string() + '.begin_update') as resize_action_mock:
@@ -220,6 +248,7 @@ def test_resize(self, resize_action_mock):
         )
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine')
     @patch('c7n_azure.resources.vm.InstanceViewFilter.process', return_value=fake_running_vms)
     @patch('c7n_azure.actions.delete.DeleteAction.process', return_value='')
     def test_delete(self, delete_action_mock, filter_mock):
@@ -246,6 +275,7 @@ def test_delete(self, delete_action_mock, filter_mock):
         delete_action_mock.assert_called_with(self.fake_running_vms)
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine_interface')
     def test_find_vm_with_public_ip(self):
 
         p = self.load_policy({
@@ -285,6 +315,7 @@ def test_find_vm_with_public_ip(self):
         self.assertEqual(len(resources), 0)
 
     @arm_template('vm.json')
+    @cassette_name('virtual_machine_tags')
     def test_on_off_hours(self):
 
         t = datetime.datetime.now(tzutils.gettz("pt"))