diff --git a/src/AzureStack/Admin/ComputeAdmin/AzSdk.RP.props b/src/AzureStack/Admin/ComputeAdmin/AzSdk.RP.props
index 797b31742e4d..31ca4a2a0aee 100644
--- a/src/AzureStack/Admin/ComputeAdmin/AzSdk.RP.props
+++ b/src/AzureStack/Admin/ComputeAdmin/AzSdk.RP.props
@@ -1,7 +1,7 @@
- Compute.Admin_2015-12-01-preview;Compute.Admin_2018-02-09;
+ Compute.Admin_2018-07-30-preview;Compute.Admin_2015-12-01-preview;Compute.Admin_2018-02-09;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestDiskMigration.json b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestDiskMigration.json
new file mode 100644
index 000000000000..f995c406b5bd
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestDiskMigration.json
@@ -0,0 +1,416 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/YXBpLXZlcnNpb249MjAxOC0wNy0zMC1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d7cb876c-461e-4ba5-b5b4-646c189b8d9f"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"name\": \"local/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestumr0pee9us_disk1_0373eb8bfff94f3080d659d8bf35590a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"name\": \"local/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/testing2a1b506a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"name\": \"local/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestgoyv88jr67rdv_disk1_2df924a12ba24a5dbadb878c2407c1ce\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"name\": \"local/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbmbihm4czb2rj\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"name\": \"local/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbf0mdzyn7_disk1_391ed0b1ae3b48a8aeb8840e395f0c37\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"name\": \"local/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk1_412c2d1804a7459d9f65aeac78aac2e0\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"name\": \"local/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing2a1b506a_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"name\": \"local/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk1_640db22456164a4a98e8565b0c2e9b39\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"name\": \"local/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestji0c851nt\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"name\": \"local/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptest2h2aqcve_disk1_705e36175d624f76a6d52de23adcfe6c\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"name\": \"local/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk3_a3bb96afdb514895bd834c1098d377ea\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"name\": \"local/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk3_dec9649bb0274d7ba0ecc343c2be18a9\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"name\": \"local/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12725"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:56 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvW8obbYe8+IXsQuXrgH/4NGu317RAzbziXU8JpE93eMxd5I5pTY7EgBt8yuiMsknMlaA/ircB4PgUMyaenNpg8ykidsuDPq503U/LTVeeNAE4yiT8Y5gtsrKLr/vPxYNauvGWlTIBR1bnm7xeUoZ7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "f39a0fa4-1b66-4bf4-a092-cf0c7f6ff7cb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14872"
+ ],
+ "x-ms-request-id": [
+ "f39a0fa4-1b66-4bf4-a092-cf0c7f6ff7cb"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072856Z:f39a0fa4-1b66-4bf4-a092-cf0c7f6ff7cb"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297?targetShare=%5C%5CSU1FileServer.azurestack.local%5CSU1_ObjStore%5C&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvYmEwNjQ0YTQtYzJlZC00ZTNjLWExNjctMDg5YTMyODY1Mjk3P3RhcmdldFNoYXJlPSU1QyU1Q1NVMUZpbGVTZXJ2ZXIuYXp1cmVzdGFjay5sb2NhbCU1Q1NVMV9PYmpTdG9yZSU1QyZhcGktdmVyc2lvbj0yMDE4LTA3LTMwLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "[\r\n {\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n },\r\n \"location\": \"local\"\r\n },\r\n {\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n },\r\n \"location\": \"local\"\r\n },\r\n {\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n },\r\n \"location\": \"local\"\r\n }\r\n]",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "675"
+ ],
+ "x-ms-client-request-id": [
+ "e6ddca1a-1761-4b13-a82f-d00c1262cab4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"name\": \"local/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"status\": \"Canceled\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"288c4476-1138-4be8-b21f-dd8735e1125f\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"startTime\": \"2018-07-23T07:56:49.7265779Z\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"2e777876-02eb-43a0-ab6a-6aa239197bd7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"9b32de74-840a-4dea-b1e3-0a5725eac698\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.4296721Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-07-23T07:56:49.6640759Z\",\r\n \"startTime\": \"2018-07-23T07:56:49.6953266Z\",\r\n \"endTime\": \"2018-07-23T07:56:54.4296721Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2234"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:56 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRveQ44CqG9ayWg8I84pcrd+uN9V6rssecTElUbmJud8AwSUH2gu9glwhM+dExVlc4vPP+J+PaqtMHEawEqZh2d8sZvhemphJinlFkDJ30XEUI1asogPYLQspYcf4dPqGGI8Cc1k2hHI0hluqUlt4gH"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "0f7a70b7-2a91-49ed-97a5-985431c75edb"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1166"
+ ],
+ "x-ms-request-id": [
+ "0f7a70b7-2a91-49ed-97a5-985431c75edb"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072857Z:0f7a70b7-2a91-49ed-97a5-985431c75edb"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297/Cancel?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvYmEwNjQ0YTQtYzJlZC00ZTNjLWExNjctMDg5YTMyODY1Mjk3L0NhbmNlbD9hcGktdmVyc2lvbj0yMDE4LTA3LTMwLXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "721b551d-41cb-4e36-b8eb-24d250eaab64"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"name\": \"local/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"status\": \"Canceled\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"288c4476-1138-4be8-b21f-dd8735e1125f\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"startTime\": \"2018-07-23T07:56:49.7265779Z\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"2e777876-02eb-43a0-ab6a-6aa239197bd7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"9b32de74-840a-4dea-b1e3-0a5725eac698\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.4296721Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-07-23T07:56:49.6640759Z\",\r\n \"startTime\": \"2018-07-23T07:56:49.6953266Z\",\r\n \"endTime\": \"2018-07-27T07:28:57.6071033Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2234"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:56 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvpTzv30+w3EnWK1BJAUs6yfxZp/LaqFbjkQyZFpSw4h22GwM+jVqMhvmKcti+eC8S6f9m2HI+LRnWy8MYcBV5WQnYdhN5LMTiCbY4bHLpRmDM3CHqag6kSJi1I1f8IepDoWubL9ScsqFDytGdkPzj"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "795a9dbd-3ae6-4b3f-88b1-e7362b9333db"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1165"
+ ],
+ "x-ms-request-id": [
+ "795a9dbd-3ae6-4b3f-88b1-e7362b9333db"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072857Z:795a9dbd-3ae6-4b3f-88b1-e7362b9333db"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvYmEwNjQ0YTQtYzJlZC00ZTNjLWExNjctMDg5YTMyODY1Mjk3P2FwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "612c98b7-f35d-41c8-864e-e99c06025428"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"name\": \"local/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"status\": \"Canceled\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"288c4476-1138-4be8-b21f-dd8735e1125f\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"startTime\": \"2018-07-23T07:56:49.7265779Z\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"2e777876-02eb-43a0-ab6a-6aa239197bd7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"9b32de74-840a-4dea-b1e3-0a5725eac698\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.4296721Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-07-23T07:56:49.6640759Z\",\r\n \"startTime\": \"2018-07-23T07:56:49.6953266Z\",\r\n \"endTime\": \"2018-07-27T07:28:57.6071033Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2234"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:57 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvrCezUI+jS00uXhB0G6ac+A50gQmGcSpm+Tg/Wh6IWmhShjGWTHkW2tDwsOMkJDmWzAfI1aalvOWd/Wg7P9WyTXM6HYCqXy94gUJwPH7op3r1MpGKggMLuEl0ENYjKxtQysj0UTQLkzcAxrhT0RvI"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "6016e2b1-5027-49ce-abd6-53d3e7807c08"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14871"
+ ],
+ "x-ms-request-id": [
+ "6016e2b1-5027-49ce-abd6-53d3e7807c08"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072857Z:6016e2b1-5027-49ce-abd6-53d3e7807c08"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnM/YXBpLXZlcnNpb249MjAxOC0wNy0zMC1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "67865e80-ba9d-411b-b040-55b8ff914d90"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/7c77cd52-5b81-4693-9e45-aac9281178c5\",\r\n \"name\": \"local/7c77cd52-5b81-4693-9e45-aac9281178c5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"7c77cd52-5b81-4693-9e45-aac9281178c5\",\r\n \"status\": \"Canceled\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"1f068376-1fea-4767-b708-5969b2048a7e\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Failed\",\r\n \"reason\": \"Migration failed because time out in 20 seconds during cancel migraion job.\",\r\n \"startTime\": \"2018-07-23T09:05:50.2839935Z\",\r\n \"endTime\": \"2018-07-23T09:06:22.2525412Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"364834cf-bd58-4cee-bcea-15441ff7e7d7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2525412Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"3bf23df8-56d0-4080-ba85-6c066a671ef9\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2525412Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"3c37eedf-870b-40a1-a5f1-7c3092141d82\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2525412Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"437aefee-12a0-4141-9e19-1ff8043d275d\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2525412Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"52b3c195-2a9d-4b4f-ab25-d2bc59c9563a\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"5809ea47-2ed6-4566-b739-b6b90ecfa219\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"6409da77-4b89-48fe-b342-2f3e9b524da3\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"6b48c7b2-b2f4-4e11-b2c3-61aac0870055\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"7119274e-1485-4511-baa2-c9d00bdfb13d\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"7d32df67-7d9d-4234-bc89-775382c647b6\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"91d32c71-885d-451f-a88c-57ecb48c574a\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"95b7c724-e67e-4ab3-9e5e-9a5d87c53a22\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2683608Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"afb361a7-f816-4755-968a-918aa9d6a9c1\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2837892Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"c9d2ea17-4818-4028-af56-7e0191afd89d\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T09:06:22.2837892Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-07-23T09:05:50.2683722Z\",\r\n \"startTime\": \"2018-07-23T09:05:50.2839935Z\",\r\n \"endTime\": \"2018-07-23T09:06:22.2837892Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/b08a14e3-c216-4182-bd8e-462f0c23c1ea\",\r\n \"name\": \"local/b08a14e3-c216-4182-bd8e-462f0c23c1ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"b08a14e3-c216-4182-bd8e-462f0c23c1ea\",\r\n \"status\": \"Running\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"0606bbc8-d6e7-4d90-9250-96e6d35d44b7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:22:17.1630286Z\",\r\n \"endTime\": \"2018-07-25T03:22:57.3973603Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"3d1afc3c-ef4a-4390-bdcb-13d775a435e5\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:22:57.4129836Z\",\r\n \"endTime\": \"2018-07-25T03:23:37.5380051Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"3f79a886-c2eb-4626-b98c-06ba4e9fae93\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:23:37.5536298Z\",\r\n \"endTime\": \"2018-07-25T03:24:17.7113161Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"491f043b-cadd-4f17-889f-8a317520eda5\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:24:17.7425652Z\",\r\n \"endTime\": \"2018-07-25T03:24:57.884656Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"5842af77-4486-4bcf-a3e4-256b0bce03f7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:24:57.884656Z\",\r\n \"endTime\": \"2018-07-25T03:25:38.0093928Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"5cf6b860-4940-48d0-873a-0418e0da185d\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Pending\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"741b5a6c-9ede-4d76-9fe6-ec1d10b9a8d8\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:25:38.025018Z\",\r\n \"endTime\": \"2018-07-25T03:26:18.1810141Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"7b22901b-ba8a-4f6a-b140-2087e1397d7a\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:26:18.1966388Z\",\r\n \"endTime\": \"2018-07-25T03:26:58.3540283Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"833d5317-8bdb-4a84-8de2-3cee9e826248\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:26:58.369649Z\",\r\n \"endTime\": \"2018-07-25T03:27:38.5270246Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"999afd52-cccc-42ab-aa3d-94f91211d7c8\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:27:38.5426459Z\",\r\n \"endTime\": \"2018-07-25T03:28:18.639048Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"9c9db0f1-08e1-41d3-aa75-6d8fd58fed3c\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:28:18.6703001Z\",\r\n \"endTime\": \"2018-07-25T03:28:58.7966006Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"cb3bde37-7a2c-4772-b1c6-1c85308b7ea9\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:28:58.7966006Z\",\r\n \"endTime\": \"2018-07-25T03:29:38.9699253Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"ce55b8f2-4536-4bdb-91af-7db2f73c40c4\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:29:39.0011778Z\",\r\n \"endTime\": \"2018-07-25T03:30:19.1415448Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"d0a07b38-be7b-40e1-a765-7913669625df\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:30:19.1572456Z\",\r\n \"endTime\": \"2018-07-25T03:30:59.2975412Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"e518b66c-69e8-4b70-9a22-c0c60918bc04\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Succeeded\",\r\n \"startTime\": \"2018-07-25T03:30:59.2975412Z\",\r\n \"endTime\": \"2018-07-25T03:31:39.4066499Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-07-25T03:22:17.1317337Z\",\r\n \"startTime\": \"2018-07-25T03:22:17.1473595Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"name\": \"local/ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"ba0644a4-c2ed-4e3c-a167-089a32865297\",\r\n \"status\": \"Canceled\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"288c4476-1138-4be8-b21f-dd8735e1125f\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"startTime\": \"2018-07-23T07:56:49.7265779Z\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"2e777876-02eb-43a0-ab6a-6aa239197bd7\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.41405Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\"\r\n }\r\n },\r\n {\r\n \"migrationSubTaskId\": \"9b32de74-840a-4dea-b1e3-0a5725eac698\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Canceled\",\r\n \"endTime\": \"2018-07-23T07:56:54.4296721Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-07-23T07:56:49.6640759Z\",\r\n \"startTime\": \"2018-07-23T07:56:49.6953266Z\",\r\n \"endTime\": \"2018-07-27T07:28:57.6071033Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "21200"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:57 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvBfCOS4wBAIuinSDA9JzXhA82qGLqSyMcSNU3zXmEsPDe6ki2IdmguYN7yCPjSY9UL+2RzHtaoDBR3aKQ5g21Sjlk7JtM2icEph+iLNWeTb9IU6/hlfu1cN3XeYgaUwhzfsWwlxBXv3v7v+WwWC2R"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "3c651c95-ec3e-49ff-bf19-1f0f3727f23a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14870"
+ ],
+ "x-ms-request-id": [
+ "3c651c95-ec3e-49ff-bf19-1f0f3727f23a"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072858Z:3c651c95-ec3e-49ff-bf19-1f0f3727f23a"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs?status=Succeeded&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnM/c3RhdHVzPVN1Y2NlZWRlZCZhcGktdmVyc2lvbj0yMDE4LTA3LTMwLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "487bb959-7ff7-419d-a1dd-fdf506698fc3"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "19"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:57 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRv5PcrqEE5bvcgtDjY7jrH8hAu4LHT2zzd2jvGVFGS4Ol1ckgMUaiQlx0SawgDvEP6RCO5whZOhcRaca1U3X58Zxd6awvC4MyKBAt4TpsYbzVSOjNsfQ0CQQO+URizaeAFY7Lu6R3zZuJrRyRHez+e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "972d0ccb-4035-4fe8-8b12-3fac6d82cf8c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14869"
+ ],
+ "x-ms-request-id": [
+ "972d0ccb-4035-4fe8-8b12-3fac6d82cf8c"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072858Z:972d0ccb-4035-4fe8-8b12-3fac6d82cf8c"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f"
+ }
+}
\ No newline at end of file
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestDiskMigrationInvalidInput.json b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestDiskMigrationInvalidInput.json
new file mode 100644
index 000000000000..a44170dff78a
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestDiskMigrationInvalidInput.json
@@ -0,0 +1,355 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/disks?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzY5ZjM1MGYtMDFiOS00MTdkLWJiOTAtMDhhMzk3OTM0OTY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/YXBpLXZlcnNpb249MjAxOC0wNy0zMC1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "805db210-5d5e-49fc-9d59-e8f84a47c6dc"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26020.03",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 09 Aug 2018 08:25:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvxJ7lxO+6/+ugzZtTW9JWA8SLaHAn4R/Mt3cSesxpwbnpgwjiS7bV0scTtd5a113ri4sI8nf81CeA3No0fJPFsw+kBjqswGo+oVcak8/1/pjMInRvgpXCv6k95Ga8l3vMLjjvnpA7h1Z5muyk6GPI"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "63edde96-9353-4e87-bd2e-38069a11b332"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-request-id": [
+ "63edde96-9353-4e87-bd2e-38069a11b332"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180809T082522Z:63edde96-9353-4e87-bd2e-38069a11b332"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "813"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/disks/2811b3ba-dc71-4a96-8c99-b300a35f46e8\",\r\n \"name\": \"local/2811b3ba-dc71-4a96-8c99-b300a35f46e8\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2811b3ba-dc71-4a96-8c99-b300a35f46e8\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 4,\r\n \"userResourceId\": \"/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/resourceGroups/SYSTEM/providers/Microsoft.Compute/Disks/testdisk\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2?targetShare=%5C%5CSU1FileServer.azurestack.local%5CSU1_ObjStore_Invalid%5C&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzY5ZjM1MGYtMDFiOS00MTdkLWJiOTAtMDhhMzk3OTM0OTY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvQTUwRTlFNkItQ0ZDMi00QkM3LTk1NkItMEY3QzM1MDM1REYyP3RhcmdldFNoYXJlPSU1QyU1Q1NVMUZpbGVTZXJ2ZXIuYXp1cmVzdGFjay5sb2NhbCU1Q1NVMV9PYmpTdG9yZV9JbnZhbGlkJTVDJmFwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "[\r\n {\r\n \"properties\": {\r\n \"diskId\": \"2811b3ba-dc71-4a96-8c99-b300a35f46e8\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n },\r\n \"location\": \"local\"\r\n }\r\n]",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1e18d2b9-8e7c-4d57-a8ae-f856e91e4f9d"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26020.03",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.3.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "227"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 09 Aug 2018 08:25:22 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvQ8nnMqu9QJBgAGniGT9cEuFfAXGX7CP1qFkO1nlFTmF/SSUkYfmJvdv/FEMT8GHlHlq56Wbw8zs4FvDGCq6NFPxU39kudJ/rE3o4W15PGcWqGlO+VVOomCeGZ1Xc9YeNZwBZfCbx6XFKUivoBSIG"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "eb709fd9-84ac-4f2c-a21a-3341aac62346"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-request-id": [
+ "eb709fd9-84ac-4f2c-a21a-3341aac62346"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180809T082523Z:eb709fd9-84ac-4f2c-a21a-3341aac62346"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "150"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Share path \\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore_Invalid is not found.\"\r\n }\r\n}",
+ "StatusCode": 400
+ },
+ {
+ "RequestUri": "/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzY5ZjM1MGYtMDFiOS00MTdkLWJiOTAtMDhhMzk3OTM0OTY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvQTUwRTlFNkItQ0ZDMi00QkM3LTk1NkItMEY3QzM1MDM1REYyP2FwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "99753c04-c43f-4873-87e0-42e55cec1783"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26020.03",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 09 Aug 2018 08:25:28 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvlzU+nqCmAdc8wnezD4pEQtH2YsCmqGkyDNx0c9I7EAkVVV/fa0ITqGuZ8VueUqmYI9a74useEzJvOXfTTNnG7QHigWiFK6gSUS6qUaUwB4nJCI9gknfZuBaNfu/9PJa/6MeBS95rmdE8NxkTKugd"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "b41e431b-8871-479b-8807-41c0949c2238"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-request-id": [
+ "b41e431b-8871-479b-8807-41c0949c2238"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180809T082528Z:b41e431b-8871-479b-8807-41c0949c2238"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "92"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The entity was not found.\"\r\n }\r\n}",
+ "StatusCode": 404
+ },
+ {
+ "RequestUri": "/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzY5ZjM1MGYtMDFiOS00MTdkLWJiOTAtMDhhMzk3OTM0OTY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvQTUwRTlFNkItQ0ZDMi00QkM3LTk1NkItMEY3QzM1MDM1REYyP2FwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0f0872fd-d184-4e0e-9183-c57e338e6c25"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26020.03",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 09 Aug 2018 08:25:33 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvnY22FDLaSr6nXG6OuBxaq3x8JqbJnTUdv//mCK1raNO5xkS8j4Xu/u7fuzt+KzDcXAyb2xg4ZIzCvPKUZkcQFiVV1/DhG2JaEizFe2JyXKsiAEEpowABcTmmxsmiwigEBSsUwY39mNa1bOekdGyS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "8aebb728-305f-4444-a09a-7c28ee1692f5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-request-id": [
+ "8aebb728-305f-4444-a09a-7c28ee1692f5"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180809T082533Z:8aebb728-305f-4444-a09a-7c28ee1692f5"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "1209"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2\",\r\n \"name\": \"local/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2\",\r\n \"status\": \"Running\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"3c049aca-b16c-4938-90ef-8d623e508fc1\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Skipped\",\r\n \"reason\": \"Disk 454e5e28-8d5e-41f9-929e-bff6a7e1a253 not found.\",\r\n \"startTime\": \"2018-08-09T08:25:30.6667894Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"454e5e28-8d5e-41f9-929e-bff6a7e1a253\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-08-09T08:25:30.6667894Z\",\r\n \"startTime\": \"2018-08-09T08:25:30.6667894Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2?targetShare=%5C%5CSU1FileServer.azurestack.local%5CSU1_ObjStore%5C&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzY5ZjM1MGYtMDFiOS00MTdkLWJiOTAtMDhhMzk3OTM0OTY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza21pZ3JhdGlvbmpvYnMvQTUwRTlFNkItQ0ZDMi00QkM3LTk1NkItMEY3QzM1MDM1REYyP3RhcmdldFNoYXJlPSU1QyU1Q1NVMUZpbGVTZXJ2ZXIuYXp1cmVzdGFjay5sb2NhbCU1Q1NVMV9PYmpTdG9yZSU1QyZhcGktdmVyc2lvbj0yMDE4LTA3LTMwLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "[\r\n {\r\n \"properties\": {\r\n \"diskId\": \"454E5E28-8D5E-41F9-929E-BFF6A7E1A253\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n },\r\n \"location\": \"local\"\r\n }\r\n]",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1738df09-9138-4101-9f94-959f35a6cbeb"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26020.03",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.3.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "227"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 09 Aug 2018 08:25:30 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvU+xULFYWzMcZiEbccHJF8QK01573XIeoXAJ6e2v85SNHFrE+8fb9OE2KxJ5LxEVUxfk80JTXyDmvRYcMjUTe/SIUuU+zYLrMahnn/pxBTpk/qRgpNY3GPHoQ8CMwnGdp9Iee0MdDKTnBnk8j53IU"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "6b9dd42a-3696-4c33-88d0-08bf8ac597e7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1194"
+ ],
+ "x-ms-request-id": [
+ "6b9dd42a-3696-4c33-88d0-08bf8ac597e7"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180809T082530Z:6b9dd42a-3696-4c33-88d0-08bf8ac597e7"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "1026"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/diskmigrationjobs/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2\",\r\n \"name\": \"local/A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/diskmigrationjobs\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"migrationId\": \"A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2\",\r\n \"status\": \"Pending\",\r\n \"subtasks\": [\r\n {\r\n \"migrationSubTaskId\": \"3c049aca-b16c-4938-90ef-8d623e508fc1\",\r\n \"properties\": {\r\n \"migrationSubtaskStatus\": \"Pending\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"sourceShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"targetDiskStateForMigration\": \"Unattached\",\r\n \"diskId\": \"454e5e28-8d5e-41f9-929e-bff6a7e1a253\"\r\n }\r\n }\r\n ],\r\n \"creationTime\": \"2018-08-09T08:25:30.6667894Z\",\r\n \"targetShare\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\"\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "c69f350f-01b9-417d-bb90-08a397934964"
+ }
+}
\ No newline at end of file
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestGetDisk.json b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestGetDisk.json
new file mode 100644
index 000000000000..bd8839ddc1e9
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestGetDisk.json
@@ -0,0 +1,142 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/YXBpLXZlcnNpb249MjAxOC0wNy0zMC1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ec9cd8bf-4cf5-4f40-b775-ed44d49b9ad0"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"name\": \"local/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestumr0pee9us_disk1_0373eb8bfff94f3080d659d8bf35590a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"name\": \"local/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/testing2a1b506a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"name\": \"local/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestgoyv88jr67rdv_disk1_2df924a12ba24a5dbadb878c2407c1ce\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"name\": \"local/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbmbihm4czb2rj\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"name\": \"local/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbf0mdzyn7_disk1_391ed0b1ae3b48a8aeb8840e395f0c37\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"name\": \"local/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk1_412c2d1804a7459d9f65aeac78aac2e0\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"name\": \"local/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing2a1b506a_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"name\": \"local/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk1_640db22456164a4a98e8565b0c2e9b39\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"name\": \"local/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestji0c851nt\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"name\": \"local/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptest2h2aqcve_disk1_705e36175d624f76a6d52de23adcfe6c\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"name\": \"local/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk3_a3bb96afdb514895bd834c1098d377ea\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"name\": \"local/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk3_dec9649bb0274d7ba0ecc343c2be18a9\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"name\": \"local/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12725"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:52 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvA3Lo4t8iRxy8PmkQxw4l+LoI0M2cCVVc6aMmJ5LuHQInBkzJHr61qxINYVTzEYMxFG4tjw7c0UfwTTyBk63o9wnGeNiH/3glaOSugA78uJ+aPzTFbDO43W+uHSv+L1uBeMViT0dLrBPsVPpWm9UT"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "72c48204-f283-4c47-904a-5900ca7b46f3"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14879"
+ ],
+ "x-ms-request-id": [
+ "72c48204-f283-4c47-904a-5900ca7b46f3"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072852Z:72c48204-f283-4c47-904a-5900ca7b46f3"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3MvM2Q4MjBhNWYtMTNkMS00ZGMxLTg0YmEtZWUwOTU1N2Q3NjkxP2FwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dc0bb87e-4c12-464e-9dfb-609cc3682f40"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "797"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:52 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvUFcKd174PujCv4MiiXLxHSIfJRF2KVRO2iBwpMQT5Q04T5dYKfliqDttQeur+koo34zMUcLvQqTFDxieUziHdGHKscZOENQ9acpqikn0hjWBaV8AbnuykI7iUFJVR9ayHJZMX3jrFdwrYBzZ4SXE"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "bfc1da73-91d5-4e27-853e-669c93cce755"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14878"
+ ],
+ "x-ms-request-id": [
+ "bfc1da73-91d5-4e27-853e-669c93cce755"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072852Z:bfc1da73-91d5-4e27-853e-669c93cce755"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f"
+ }
+}
\ No newline at end of file
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestGetDiskInvalid.json b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestGetDiskInvalid.json
new file mode 100644
index 000000000000..5f036856b211
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestGetDiskInvalid.json
@@ -0,0 +1,75 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/c69f350f-01b9-417d-bb90-08a397934964/providers/Microsoft.Compute.Admin/locations/local/disks/454E5E28-8D5E-41F9-929E-BFF6A7E1A253?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzY5ZjM1MGYtMDFiOS00MTdkLWJiOTAtMDhhMzk3OTM0OTY0L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3MvNDU0RTVFMjgtOEQ1RS00MUY5LTkyOUUtQkZGNkE3RTFBMjUzP2FwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4e863a57-76fb-452d-88a0-0f02536482c4"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26020.03",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.3.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Thu, 09 Aug 2018 06:05:35 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvjIutUf86si1PznOxO46jZQoJpHzmbKpfCyvgxna+bM0QZeMSLg3+oXjDYvFcH4XZZO7xel4mEqfwVL014pnxwvP4Wbw7Y76vkIsHL5yXg+zw12stsD3/bGcayVkZVHeb1psmHvCI7swotWiODA3x"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "cbe90dad-de09-4f3d-8266-9c494514767e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-request-id": [
+ "cbe90dad-de09-4f3d-8266-9c494514767e"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180809T060536Z:cbe90dad-de09-4f3d-8266-9c494514767e"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Content-Length": [
+ "92"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The entity was not found.\"\r\n }\r\n}",
+ "StatusCode": 404
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "c69f350f-01b9-417d-bb90-08a397934964"
+ }
+}
\ No newline at end of file
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestListDisks.json b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestListDisks.json
new file mode 100644
index 000000000000..6be06341b01e
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/SessionRecords/ComputeAdminClient/TestListDisks.json
@@ -0,0 +1,343 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/YXBpLXZlcnNpb249MjAxOC0wNy0zMC1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0aace266-d018-4b76-bba0-8b3eb3d8c2ec"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"name\": \"local/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestumr0pee9us_disk1_0373eb8bfff94f3080d659d8bf35590a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"name\": \"local/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/testing2a1b506a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"name\": \"local/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestgoyv88jr67rdv_disk1_2df924a12ba24a5dbadb878c2407c1ce\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"name\": \"local/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbmbihm4czb2rj\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"name\": \"local/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbf0mdzyn7_disk1_391ed0b1ae3b48a8aeb8840e395f0c37\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"name\": \"local/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk1_412c2d1804a7459d9f65aeac78aac2e0\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"name\": \"local/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing2a1b506a_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"name\": \"local/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk1_640db22456164a4a98e8565b0c2e9b39\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"name\": \"local/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestji0c851nt\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"name\": \"local/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptest2h2aqcve_disk1_705e36175d624f76a6d52de23adcfe6c\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"name\": \"local/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk3_a3bb96afdb514895bd834c1098d377ea\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"name\": \"local/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk3_dec9649bb0274d7ba0ecc343c2be18a9\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"name\": \"local/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12725"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:53 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRveFAHhMBpJBGuEMNalxBxSfxWK8I1kV0mXlp8Hdlxc0mh1O1Z+kySVMpyyfLXnOEu8JZKfXYCMmJKfsof1PrUo88NTZ28EscR7HCH8OLjbvYfNxxMwUqo/Ebu6G+TJG0196eAlAZKW6qzSX0H8DoE"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "1eee0484-d104-4711-b428-91a0129da486"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14877"
+ ],
+ "x-ms-request-id": [
+ "1eee0484-d104-4711-b428-91a0129da486"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072853Z:1eee0484-d104-4711-b428-91a0129da486"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?userSubscriptionId=624c8f0f-5748-4478-b7d4-7093bb6c9437&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/dXNlclN1YnNjcmlwdGlvbklkPTYyNGM4ZjBmLTU3NDgtNDQ3OC1iN2Q0LTcwOTNiYjZjOTQzNyZhcGktdmVyc2lvbj0yMDE4LTA3LTMwLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "09e81eb9-c11c-4362-8789-1f2bdd09f374"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"name\": \"local/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestumr0pee9us_disk1_0373eb8bfff94f3080d659d8bf35590a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"name\": \"local/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/testing2a1b506a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"name\": \"local/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestgoyv88jr67rdv_disk1_2df924a12ba24a5dbadb878c2407c1ce\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"name\": \"local/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbmbihm4czb2rj\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"name\": \"local/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbf0mdzyn7_disk1_391ed0b1ae3b48a8aeb8840e395f0c37\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"name\": \"local/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk1_412c2d1804a7459d9f65aeac78aac2e0\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"name\": \"local/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing2a1b506a_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"name\": \"local/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk1_640db22456164a4a98e8565b0c2e9b39\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"name\": \"local/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestji0c851nt\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"name\": \"local/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptest2h2aqcve_disk1_705e36175d624f76a6d52de23adcfe6c\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"name\": \"local/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk3_a3bb96afdb514895bd834c1098d377ea\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"name\": \"local/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk3_dec9649bb0274d7ba0ecc343c2be18a9\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"name\": \"local/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12725"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvHM493zbGP3eUBzCCwVOf+Wo0uz3mFCtXdHFckQca+BoScALx5OFRxIlYdQauowwuJG/0jLyTq7bQ4AUtw6R+sWefWSY9HlwanMEefuXtXA6tGU+tr5cvQMIQ1SzpjkKh1apc3fBI40r6JFLAQDZ4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "a994e120-ca81-4e89-bd30-8683d7a1de4f"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14876"
+ ],
+ "x-ms-request-id": [
+ "a994e120-ca81-4e89-bd30-8683d7a1de4f"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072854Z:a994e120-ca81-4e89-bd30-8683d7a1de4f"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?status=Unattached&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/c3RhdHVzPVVuYXR0YWNoZWQmYXBpLXZlcnNpb249MjAxOC0wNy0zMC1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9e0f6670-fa3b-42ba-9a5b-92f2bd95061c"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"name\": \"local/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestumr0pee9us_disk1_0373eb8bfff94f3080d659d8bf35590a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"name\": \"local/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/testing2a1b506a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"name\": \"local/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestgoyv88jr67rdv_disk1_2df924a12ba24a5dbadb878c2407c1ce\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"name\": \"local/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbmbihm4czb2rj\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"name\": \"local/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbf0mdzyn7_disk1_391ed0b1ae3b48a8aeb8840e395f0c37\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"name\": \"local/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk1_412c2d1804a7459d9f65aeac78aac2e0\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"name\": \"local/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing2a1b506a_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"name\": \"local/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk1_640db22456164a4a98e8565b0c2e9b39\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"name\": \"local/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestji0c851nt\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"name\": \"local/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptest2h2aqcve_disk1_705e36175d624f76a6d52de23adcfe6c\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"name\": \"local/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk3_a3bb96afdb514895bd834c1098d377ea\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"name\": \"local/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk3_dec9649bb0274d7ba0ecc343c2be18a9\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"name\": \"local/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12725"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvH2E+sl00VQkh+XZOZoJZsXVEvfAfTMcYEqHYBmCZWYOa6HplvefrYGtofZ/8p5hl/dShbUb1qzBGs4lNvFon6Ml9etwwLO30U7+ZOHSmAkENmyKJ8hKFeda9C2AAOsnvFAtd0NAtWpPXNT1BFSVl"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "adc72dbf-1aa8-4983-850b-611944862d68"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14875"
+ ],
+ "x-ms-request-id": [
+ "adc72dbf-1aa8-4983-850b-611944862d68"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072854Z:adc72dbf-1aa8-4983-850b-611944862d68"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?sharePath=%5C%5CSU1FileServer.azurestack.local%5CSU1_ObjStore&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/c2hhcmVQYXRoPSU1QyU1Q1NVMUZpbGVTZXJ2ZXIuYXp1cmVzdGFjay5sb2NhbCU1Q1NVMV9PYmpTdG9yZSZhcGktdmVyc2lvbj0yMDE4LTA3LTMwLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "edd0c4b2-d169-4888-97bd-9cb7e4e9f5c8"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"name\": \"local/3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3d820a5f-13d1-4dc1-84ba-ee09557d7691\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_OsDisk_2_3d820a5f13d14dc184baee09557d7691\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"name\": \"local/0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"0373eb8b-fff9-4f30-80d6-59d8bf35590a\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestumr0pee9us_disk1_0373eb8bfff94f3080d659d8bf35590a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"name\": \"local/10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"10709e57-39a3-4edb-adc4-303d2c2fd7a5\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/testing2a1b506a\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"name\": \"local/2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"2df924a1-2ba2-4a5d-badb-878c2407c1ce\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestgoyv88jr67rdv_disk1_2df924a12ba24a5dbadb878c2407c1ce\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"name\": \"local/3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"3088d76f-5c94-4544-9ecc-5e431057d7bf\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbmbihm4czb2rj\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"name\": \"local/391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"391ed0b1-ae3b-48a8-aeb8-840e395f0c37\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestbf0mdzyn7_disk1_391ed0b1ae3b48a8aeb8840e395f0c37\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"name\": \"local/412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"412c2d18-04a7-459d-9f65-aeac78aac2e0\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk1_412c2d1804a7459d9f65aeac78aac2e0\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"name\": \"local/534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"534ab00d-8b1d-43e3-af43-7496c7865adb\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing2a1b506a_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"name\": \"local/640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"640db224-5616-4a4a-98e8-565b0c2e9b39\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk1_640db22456164a4a98e8565b0c2e9b39\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"name\": \"local/6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"6ccd24a2-a46c-40f6-8b0a-e8379f4a5738\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestji0c851nt\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"name\": \"local/705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"705e3617-5d62-4f76-a6d5-2de23adcfe6c\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptest2h2aqcve_disk1_705e36175d624f76a6d52de23adcfe6c\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"name\": \"local/a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"a3bb96af-db51-4895-bd83-4c1098d377ea\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt73kc61kwb_disk3_a3bb96afdb514895bd834c1098d377ea\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"name\": \"local/dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"dec9649b-b027-4d7b-a0ec-c343c2be18a9\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 26214400,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_disk3_dec9649bb0274d7ba0ecc343c2be18a9\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"name\": \"local/e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"e5ff7026-2f77-4b62-b679-ce8c45540d51\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 1,\r\n \"provisionSizeGB\": 3221225472,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Snapshots/testing_snapshot\",\r\n \"diskType\": \"Snapshot\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "12725"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:54 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvdfGklM0kkSdTT95ufTqCiVIzL6slezPj1MkP8fr6bqfmetxHbQEUBny/3hLN3O+JefhSGp4orh9kdyWF/W7Y46XTXaYIwUwleMiT8ivD9++WaDXS8Q07aih8K3jwqnNW4zDb4QaSNS3eqcyxsx68"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "40a6bd3d-edde-4e51-9e47-4a04c5e7bd4e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14874"
+ ],
+ "x-ms-request-id": [
+ "40a6bd3d-edde-4e51-9e47-4a04c5e7bd4e"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072854Z:40a6bd3d-edde-4e51-9e47-4a04c5e7bd4e"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks?count=1&start=1&api-version=2018-07-30-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTExNmEzYTktZWFlYi00ZmM0LTllOWUtNGE3OWMyYmMwNzVmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS5BZG1pbi9sb2NhdGlvbnMvbG9jYWwvZGlza3M/Y291bnQ9MSZzdGFydD0xJmFwaS12ZXJzaW9uPTIwMTgtMDctMzAtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a0f953e5-bc05-4d22-afa8-2aaae9b99139"
+ ],
+ "accept-language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.26011.01",
+ "Microsoft.AzureStack.Management.Compute.Admin.ComputeAdminClient/0.1.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f/providers/Microsoft.Compute.Admin/locations/local/disks/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"name\": \"local/626e95d8-c926-4005-8555-4649632d173d\",\r\n \"type\": \"Microsoft.Compute.Admin/locations/disks\",\r\n \"location\": \"local\",\r\n \"properties\": {\r\n \"diskId\": \"626e95d8-c926-4005-8555-4649632d173d\",\r\n \"status\": \"Unattached\",\r\n \"sharePath\": \"\\\\\\\\SU1FileServer.azurestack.local\\\\SU1_ObjStore\",\r\n \"actualSizeGB\": 915,\r\n \"provisionSizeGB\": 1073741824,\r\n \"userResourceId\": \"/subscriptions/624c8f0f-5748-4478-b7d4-7093bb6c9437/resourceGroups/DISKRG7A0921D6/providers/Microsoft.Compute/Disks/diskrptestt20w012z_OsDisk_2_626e95d8c926400585554649632d173d\",\r\n \"diskType\": \"Disk\",\r\n \"diskSku\": \"Standard_LRS\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "884"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 27 Jul 2018 07:28:55 GMT"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "WWW-Authenticate": [
+ "oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvrkmc7MG9AbFR6q4lg1OIqLoswb9uv4RVJele9/7zGsN6nZKyo+y/d4wxv5lJv11qFrP4lVfho5QJ8PKjLaqIDdYOgqvgzjmGnZjFhWnHOaSUqYXIrWROjHuH0qqPKb5TUQfvIA1sLsGUQXxSHjL7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-served-by": [
+ "00000000-0000-0000-0000-000000000000_0"
+ ],
+ "x-ms-correlation-request-id": [
+ "9479a820-574a-46a5-9e4f-39ff42b70efe"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14873"
+ ],
+ "x-ms-request-id": [
+ "9479a820-574a-46a5-9e4f-39ff42b70efe"
+ ],
+ "x-ms-routing-request-id": [
+ "LOCAL:20180727T072855Z:9479a820-574a-46a5-9e4f-39ff42b70efe"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "1116a3a9-eaeb-4fc4-9e9e-4a79c2bc075f"
+ }
+}
\ No newline at end of file
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/DiskMigrationJobTests.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/DiskMigrationJobTests.cs
new file mode 100644
index 000000000000..c75d797ddd91
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/DiskMigrationJobTests.cs
@@ -0,0 +1,115 @@
+
+using Microsoft.AzureStack.Management.Compute.Admin;
+using Microsoft.AzureStack.Management.Compute.Admin.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Threading;
+using Xunit;
+
+namespace Compute.Tests
+{
+ public class DiskMigrationJobTests : ComputeTestBase
+ {
+ private void ValidateDiskMigration(DiskMigrationJob diskMigration)
+ {
+ Assert.NotNull(diskMigration);
+ Assert.NotNull(diskMigration.CreationTime);
+ Assert.NotNull(diskMigration.Id);
+ Assert.NotNull(diskMigration.Location);
+ Assert.NotNull(diskMigration.Name);
+ Assert.NotNull(diskMigration.Status);
+ Assert.NotNull(diskMigration.TargetShare);
+ Assert.NotNull(diskMigration.Type);
+ Assert.NotNull(diskMigration.MigrationId);
+ }
+
+ [Fact]
+ public void TestDiskMigration()
+ {
+ string targetShare = @"\\SU1FileServer.azurestack.local\SU1_ObjStore\";
+ RunTest((client) => {
+ var disks = client.Disks.List(Location);
+ List toMigrationDisks = new List();
+ foreach(var disk in disks)
+ {
+ if (toMigrationDisks.Count < 3)
+ {
+ toMigrationDisks.Add(disk);
+ }
+ else
+ {
+ break;
+ }
+ }
+
+ var migrationId = "ba0644a4-c2ed-4e3c-a167-089a32865297";// This guid should be the same as the ones in sessionRecord
+
+ var migration = client.DiskMigrationJobs.Create(Location, migrationId, targetShare, toMigrationDisks);
+ ValidateDiskMigration(migration);
+
+ migration = client.DiskMigrationJobs.Cancel(Location, migrationId);
+ ValidateDiskMigration(migration);
+
+ var migrationFromGet = client.DiskMigrationJobs.Get(Location, migrationId);
+ ValidateDiskMigration(migrationFromGet);
+
+ var migrationList = client.DiskMigrationJobs.List(Location);
+ migrationList.ForEach(ValidateDiskMigration);
+
+ var migrationSucceededList = client.DiskMigrationJobs.List(Location, status: "Succeeded");
+ migrationSucceededList.ForEach(ValidateDiskMigration);
+ });
+ }
+
+ [Fact]
+ public void TestDiskMigrationInvalidInput()
+ {
+ string targetShare = @"\\SU1FileServer.azurestack.local\SU1_ObjStore_Invalid\";
+ RunTest((client) => {
+ var disks = client.Disks.List(Location);
+ List toMigrationDisks = new List();
+ if (disks.Count() > 0)
+ {
+ toMigrationDisks.Add(disks.First());
+
+ var migrationId = "A50E9E6B-CFC2-4BC7-956B-0F7C35035DF2";// This guid should be the same as the ones in sessionRecord
+
+ ValidateExpectedReturnCode(
+ () => client.DiskMigrationJobs.Create(Location, migrationId, targetShare, toMigrationDisks),
+ HttpStatusCode.BadRequest
+ );
+
+ ValidateExpectedReturnCode(
+ () => client.DiskMigrationJobs.Get(Location, migrationId),
+ HttpStatusCode.NotFound
+ );
+
+ toMigrationDisks[0].DiskId = "454E5E28-8D5E-41F9-929E-BFF6A7E1A253"; //Use some not exist disk
+ targetShare = @"\\SU1FileServer.azurestack.local\SU1_ObjStore\";
+
+ var migration = client.DiskMigrationJobs.Create(Location, migrationId, targetShare, toMigrationDisks);
+ int times = 0;
+ do
+ {
+ Thread.Sleep(3);
+ migration = client.DiskMigrationJobs.Get(Location, migrationId);
+ if (migration.Subtasks[0].MigrationSubtaskStatus.Equals("Skipped"))
+ {
+ break;
+ }
+ times++;
+ Thread.Sleep(3);
+ }
+ while (times < 50);
+
+ if(!migration.Subtasks[0].MigrationSubtaskStatus.Equals("Skipped"))
+ {
+ throw new Exception("Migration Status is not expected");
+ }
+ }
+ });
+ }
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/DiskTests.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/DiskTests.cs
new file mode 100644
index 000000000000..9698bbbabd14
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/DiskTests.cs
@@ -0,0 +1,109 @@
+
+using Microsoft.AzureStack.Management.Compute.Admin;
+using Microsoft.AzureStack.Management.Compute.Admin.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using Xunit;
+
+namespace Compute.Tests
+{
+ public class DiskTests : ComputeTestBase
+ {
+ private void ValidateDisk(Disk disk)
+ {
+ Assert.NotNull(disk);
+ Assert.NotNull(disk.ActualSizeGB);
+ Assert.NotNull(disk.ProvisionSizeGB);
+ Assert.NotNull(disk.DiskSku);
+ Assert.NotNull(disk.DiskType);
+ Assert.NotNull(disk.SharePath);
+ Assert.NotNull(disk.Status);
+ Assert.NotNull(disk.UserResourceId);
+ Assert.NotNull(disk.Type);
+ Assert.NotNull(disk.Id);
+ Assert.NotNull(disk.Name);
+ Assert.NotNull(disk.Location);
+ Assert.NotNull(disk.DiskId);
+ }
+
+ private void ValidateDiskTheSame(Disk diskRight, Disk diskLeft)
+ {
+ Assert.NotNull(diskRight);
+ Assert.NotNull(diskLeft);
+
+ Assert.True(diskRight.Id == diskLeft.Id);
+ }
+
+ private void ValidateDisksTheSame(IEnumerable disksRight, IEnumerable disksLeft)
+ {
+ Assert.NotNull(disksRight);
+ Assert.NotNull(disksLeft);
+ Assert.Equal(disksRight.Count(), disksLeft.Count());
+
+ disksRight.ForEach(disk => Assert.True(IsDiskExistsInCollection(disk, disksLeft)));
+ }
+
+ private bool IsDiskExistsInCollection(Disk disk, IEnumerable disks)
+ {
+ return disks.Any(diskInCollection => diskInCollection.UserResourceId.Equals(disk.UserResourceId, StringComparison.OrdinalIgnoreCase));
+ }
+
+ [Fact]
+ public void TestListDisks()
+ {
+ RunTest((client) => {
+ var disks = client.Disks.List(Location);
+ disks.ForEach(ValidateDisk);
+
+ if(disks.Count()>0)
+ {
+ var firstDisk = disks.First();
+ var tenantSubscriptionId = firstDisk.UserResourceId.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1];
+
+ var disksForSubscription = client.Disks.List(Location, userSubscriptionId: tenantSubscriptionId);
+ ValidateDisksTheSame(disks.Where(disk => disk.UserResourceId.Contains(tenantSubscriptionId)), disksForSubscription);
+
+ var disksForStatus = client.Disks.List(Location, status: firstDisk.Status);
+ ValidateDisksTheSame(disks.Where(disk => disk.Status.Equals(firstDisk.Status, StringComparison.OrdinalIgnoreCase)), disksForStatus);
+
+ var disksForShare = client.Disks.List(Location, sharePath: firstDisk.SharePath);
+ ValidateDisksTheSame(disks.Where(disk => disk.SharePath.Equals(firstDisk.SharePath, StringComparison.OrdinalIgnoreCase)), disksForShare);
+
+ if (disks.Count() >= 2)
+ {
+ var disksWithCountAndStart = client.Disks.List(Location, count: 1, start: 1);
+ ValidateDisksTheSame(new List() { disks.ElementAt(1) }, disksWithCountAndStart);
+ }
+ }
+ });
+ }
+
+ [Fact]
+ public void TestGetDisk()
+ {
+ RunTest((client) => {
+ var disks = client.Disks.List(Location);
+ disks.ForEach(ValidateDisk);
+
+ if (disks.Count() > 0)
+ {
+ var firstDisk = disks.First();
+ var diskFromServer = client.Disks.Get(Location, firstDisk.DiskId);
+ ValidateDiskTheSame(firstDisk, diskFromServer);
+ }
+ });
+ }
+
+ [Fact]
+ public void TestGetDiskInvalid()
+ {
+ RunTest((client) => {
+ ValidateExpectedReturnCode(
+ () => client.Disks.Get(Location, "454E5E28-8D5E-41F9-929E-BFF6A7E1A253"),
+ HttpStatusCode.NotFound);
+ });
+ }
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/Helpers/AzureStackTestBase.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/Helpers/AzureStackTestBase.cs
index b0bdd6250677..39275829cd20 100644
--- a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/Helpers/AzureStackTestBase.cs
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin.Tests/src/Helpers/AzureStackTestBase.cs
@@ -6,6 +6,7 @@
using System.Net;
using Microsoft.Rest.Azure;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
+using Xunit;
namespace Compute.Tests
{
@@ -85,18 +86,25 @@ public void IgnoreExceptions(Action action) {
public void ValidateExpectedReturnCode(Action action, HttpStatusCode httpResponseCode)
{
- try { action.Invoke(); }
- catch (CloudException ex)
+ Assert.Throws(() =>
{
- if (ex.Response.StatusCode == httpResponseCode)
+ try
{
- // Expected exception received.
+ action.Invoke();
}
- else
+ catch (CloudException ex)
{
- throw ex;
+ if (ex.Response.StatusCode == httpResponseCode)
+ {
+ // Expected exception received.
+ throw;
+ }
+ else
+ {
+ throw new Exception($"Test failed: CloudException with wrong StatusCode {ex.Response.StatusCode}.");
+ }
}
- }
+ });
}
}
}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/ComputeAdminClient.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/ComputeAdminClient.cs
index 4de2e3269956..465e8a562b21 100644
--- a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/ComputeAdminClient.cs
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/ComputeAdminClient.cs
@@ -91,6 +91,16 @@ public partial class ComputeAdminClient : ServiceClient, ICo
///
public virtual IVMExtensionsOperations VMExtensions { get; private set; }
+ ///
+ /// Gets the IDisksOperations.
+ ///
+ public virtual IDisksOperations Disks { get; private set; }
+
+ ///
+ /// Gets the IDiskMigrationJobsOperations.
+ ///
+ public virtual IDiskMigrationJobsOperations DiskMigrationJobs { get; private set; }
+
///
/// Initializes a new instance of the ComputeAdminClient class.
///
@@ -296,6 +306,8 @@ private void Initialize()
PlatformImages = new PlatformImagesOperations(this);
Quotas = new QuotasOperations(this);
VMExtensions = new VMExtensionsOperations(this);
+ Disks = new DisksOperations(this);
+ DiskMigrationJobs = new DiskMigrationJobsOperations(this);
BaseUri = new System.Uri("https://adminmanagement.local.azurestack.external");
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DiskMigrationJobsOperations.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DiskMigrationJobsOperations.cs
new file mode 100644
index 000000000000..27bd6e58155c
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DiskMigrationJobsOperations.cs
@@ -0,0 +1,855 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DiskMigrationJobsOperations operations.
+ ///
+ internal partial class DiskMigrationJobsOperations : IServiceOperations, IDiskMigrationJobsOperations
+ {
+ ///
+ /// Initializes a new instance of the DiskMigrationJobsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal DiskMigrationJobsOperations(ComputeAdminClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the ComputeAdminClient
+ ///
+ public ComputeAdminClient Client { get; private set; }
+
+ ///
+ /// Returns a list of disk migration jobs.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The parameters of disk migration job status.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListWithHttpMessagesAsync(string location, string status = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ string apiVersion = "2018-07-30-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("status", status);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/diskmigrationjobs").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (status != null)
+ {
+ _queryParameters.Add(string.Format("status={0}", System.Uri.EscapeDataString(status)));
+ }
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Returns the requested disk migration job.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string location, string migrationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (migrationId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "migrationId");
+ }
+ string apiVersion = "2018-07-30-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("migrationId", migrationId);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/diskmigrationjobs/{migrationId}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{migrationId}", System.Uri.EscapeDataString(migrationId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Create a disk migration job.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The target share name.
+ ///
+ ///
+ /// The parameters of disk list.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> CreateWithHttpMessagesAsync(string location, string migrationId, string targetShare, IList disks, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (migrationId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "migrationId");
+ }
+ if (targetShare == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "targetShare");
+ }
+ if (disks == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "disks");
+ }
+ string apiVersion = "2018-07-30-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("migrationId", migrationId);
+ tracingParameters.Add("targetShare", targetShare);
+ tracingParameters.Add("disks", disks);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/diskmigrationjobs/{migrationId}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{migrationId}", System.Uri.EscapeDataString(migrationId));
+ List _queryParameters = new List();
+ if (targetShare != null)
+ {
+ _queryParameters.Add(string.Format("targetShare={0}", System.Uri.EscapeDataString(targetShare)));
+ }
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(disks != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(disks, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Cancel a disk migration job.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> CancelWithHttpMessagesAsync(string location, string migrationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (migrationId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "migrationId");
+ }
+ string apiVersion = "2018-07-30-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("migrationId", migrationId);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Cancel", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/diskmigrationjobs/{migrationId}/Cancel").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{migrationId}", System.Uri.EscapeDataString(migrationId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DiskMigrationJobsOperationsExtensions.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DiskMigrationJobsOperationsExtensions.cs
new file mode 100644
index 000000000000..4fc5cbe915c3
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DiskMigrationJobsOperationsExtensions.cs
@@ -0,0 +1,199 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for DiskMigrationJobsOperations.
+ ///
+ public static partial class DiskMigrationJobsOperationsExtensions
+ {
+ ///
+ /// Returns a list of disk migration jobs.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The parameters of disk migration job status.
+ ///
+ public static IEnumerable List(this IDiskMigrationJobsOperations operations, string location, string status = default(string))
+ {
+ return operations.ListAsync(location, status).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of disk migration jobs.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The parameters of disk migration job status.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this IDiskMigrationJobsOperations operations, string location, string status = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(location, status, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns the requested disk migration job.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ public static DiskMigrationJob Get(this IDiskMigrationJobsOperations operations, string location, string migrationId)
+ {
+ return operations.GetAsync(location, migrationId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns the requested disk migration job.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IDiskMigrationJobsOperations operations, string location, string migrationId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(location, migrationId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Create a disk migration job.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The target share name.
+ ///
+ ///
+ /// The parameters of disk list.
+ ///
+ public static DiskMigrationJob Create(this IDiskMigrationJobsOperations operations, string location, string migrationId, string targetShare, IList disks)
+ {
+ return operations.CreateAsync(location, migrationId, targetShare, disks).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Create a disk migration job.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The target share name.
+ ///
+ ///
+ /// The parameters of disk list.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateAsync(this IDiskMigrationJobsOperations operations, string location, string migrationId, string targetShare, IList disks, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateWithHttpMessagesAsync(location, migrationId, targetShare, disks, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Cancel a disk migration job.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ public static DiskMigrationJob Cancel(this IDiskMigrationJobsOperations operations, string location, string migrationId)
+ {
+ return operations.CancelAsync(location, migrationId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Cancel a disk migration job.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CancelAsync(this IDiskMigrationJobsOperations operations, string location, string migrationId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CancelWithHttpMessagesAsync(location, migrationId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DisksOperations.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DisksOperations.cs
new file mode 100644
index 000000000000..6353167b14da
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DisksOperations.cs
@@ -0,0 +1,473 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DisksOperations operations.
+ ///
+ internal partial class DisksOperations : IServiceOperations, IDisksOperations
+ {
+ ///
+ /// Initializes a new instance of the DisksOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal DisksOperations(ComputeAdminClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the ComputeAdminClient
+ ///
+ public ComputeAdminClient Client { get; private set; }
+
+ ///
+ /// Returns a list of disks.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// User Subscription Id which the resource belongs to.
+ ///
+ ///
+ /// The parameters of disk state.
+ ///
+ ///
+ /// The source share which the resource belongs to.
+ ///
+ ///
+ /// The maximum number of disks to return.
+ ///
+ ///
+ /// The start index of disks in query.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListWithHttpMessagesAsync(string location, string userSubscriptionId = default(string), string status = default(string), string sharePath = default(string), int? count = default(int?), int? start = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ string apiVersion = "2018-07-30-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("userSubscriptionId", userSubscriptionId);
+ tracingParameters.Add("status", status);
+ tracingParameters.Add("sharePath", sharePath);
+ tracingParameters.Add("count", count);
+ tracingParameters.Add("start", start);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/disks").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (userSubscriptionId != null)
+ {
+ _queryParameters.Add(string.Format("userSubscriptionId={0}", System.Uri.EscapeDataString(userSubscriptionId)));
+ }
+ if (status != null)
+ {
+ _queryParameters.Add(string.Format("status={0}", System.Uri.EscapeDataString(status)));
+ }
+ if (sharePath != null)
+ {
+ _queryParameters.Add(string.Format("sharePath={0}", System.Uri.EscapeDataString(sharePath)));
+ }
+ if (count != null)
+ {
+ _queryParameters.Add(string.Format("count={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(count, Client.SerializationSettings).Trim('"'))));
+ }
+ if (start != null)
+ {
+ _queryParameters.Add(string.Format("start={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(start, Client.SerializationSettings).Trim('"'))));
+ }
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Returns the disk.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The disk guid as identity.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string location, string diskId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (diskId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "diskId");
+ }
+ string apiVersion = "2018-07-30-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("diskId", diskId);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/disks/{DiskId}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{DiskId}", System.Uri.EscapeDataString(diskId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DisksOperationsExtensions.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DisksOperationsExtensions.cs
new file mode 100644
index 000000000000..2ee6bd67901c
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/DisksOperationsExtensions.cs
@@ -0,0 +1,131 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for DisksOperations.
+ ///
+ public static partial class DisksOperationsExtensions
+ {
+ ///
+ /// Returns a list of disks.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// User Subscription Id which the resource belongs to.
+ ///
+ ///
+ /// The parameters of disk state.
+ ///
+ ///
+ /// The source share which the resource belongs to.
+ ///
+ ///
+ /// The maximum number of disks to return.
+ ///
+ ///
+ /// The start index of disks in query.
+ ///
+ public static IEnumerable List(this IDisksOperations operations, string location, string userSubscriptionId = default(string), string status = default(string), string sharePath = default(string), int? count = default(int?), int? start = default(int?))
+ {
+ return operations.ListAsync(location, userSubscriptionId, status, sharePath, count, start).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of disks.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// User Subscription Id which the resource belongs to.
+ ///
+ ///
+ /// The parameters of disk state.
+ ///
+ ///
+ /// The source share which the resource belongs to.
+ ///
+ ///
+ /// The maximum number of disks to return.
+ ///
+ ///
+ /// The start index of disks in query.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this IDisksOperations operations, string location, string userSubscriptionId = default(string), string status = default(string), string sharePath = default(string), int? count = default(int?), int? start = default(int?), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(location, userSubscriptionId, status, sharePath, count, start, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns the disk.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The disk guid as identity.
+ ///
+ public static Disk Get(this IDisksOperations operations, string location, string diskId)
+ {
+ return operations.GetAsync(location, diskId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns the disk.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The disk guid as identity.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IDisksOperations operations, string location, string diskId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(location, diskId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IComputeAdminClient.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IComputeAdminClient.cs
index 92838f242a39..4d12215aa668 100644
--- a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IComputeAdminClient.cs
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IComputeAdminClient.cs
@@ -86,5 +86,15 @@ public partial interface IComputeAdminClient : System.IDisposable
///
IVMExtensionsOperations VMExtensions { get; }
+ ///
+ /// Gets the IDisksOperations.
+ ///
+ IDisksOperations Disks { get; }
+
+ ///
+ /// Gets the IDiskMigrationJobsOperations.
+ ///
+ IDiskMigrationJobsOperations DiskMigrationJobs { get; }
+
}
}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IDiskMigrationJobsOperations.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IDiskMigrationJobsOperations.cs
new file mode 100644
index 000000000000..8a360dfe6876
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IDiskMigrationJobsOperations.cs
@@ -0,0 +1,133 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DiskMigrationJobsOperations operations.
+ ///
+ public partial interface IDiskMigrationJobsOperations
+ {
+ ///
+ /// Returns a list of disk migration jobs.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The parameters of disk migration job status.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string location, string status = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns the requested disk migration job.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string location, string migrationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Create a disk migration job.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The target share name.
+ ///
+ ///
+ /// The parameters of disk list.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateWithHttpMessagesAsync(string location, string migrationId, string targetShare, IList disks, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Cancel a disk migration job.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The migration job guid name.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CancelWithHttpMessagesAsync(string location, string migrationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IDisksOperations.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IDisksOperations.cs
new file mode 100644
index 000000000000..bf1fe63c5406
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/IDisksOperations.cs
@@ -0,0 +1,89 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// DisksOperations operations.
+ ///
+ public partial interface IDisksOperations
+ {
+ ///
+ /// Returns a list of disks.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// User Subscription Id which the resource belongs to.
+ ///
+ ///
+ /// The parameters of disk state.
+ ///
+ ///
+ /// The source share which the resource belongs to.
+ ///
+ ///
+ /// The maximum number of disks to return.
+ ///
+ ///
+ /// The start index of disks in query.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string location, string userSubscriptionId = default(string), string status = default(string), string sharePath = default(string), int? count = default(int?), int? start = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns the disk.
+ ///
+ ///
+ /// Location of the resource.
+ ///
+ ///
+ /// The disk guid as identity.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string location, string diskId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/AccountType.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/AccountType.cs
new file mode 100644
index 000000000000..362fe3917fdd
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/AccountType.cs
@@ -0,0 +1,27 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+
+ ///
+ /// Defines values for AccountType.
+ ///
+ public static class AccountType
+ {
+ public const string StandardLRS = "Standard_LRS";
+ public const string StandardZRS = "Standard_ZRS";
+ public const string StandardGRS = "Standard_GRS";
+ public const string StandardRAGRS = "Standard_RAGRS";
+ public const string PremiumLRS = "Premium_LRS";
+ public const string StandardSSDLRS = "StandardSSD_LRS";
+ public const string UltraSSDLRS = "UltraSSD_LRS";
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/Disk.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/Disk.cs
new file mode 100644
index 000000000000..816092938669
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/Disk.cs
@@ -0,0 +1,138 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Managed Disk.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class Disk : Resource
+ {
+ ///
+ /// Initializes a new instance of the Disk class.
+ ///
+ public Disk()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Disk class.
+ ///
+ /// ID of the resource.
+ /// Name of the resource.
+ /// Type of Resource.
+ /// Location of the resource.
+ /// The disk id.
+ /// The disk status. Possible values include:
+ /// 'Undefined', 'Unattached', 'Attached', 'Reserved', 'ActiveSAS',
+ /// 'Unknown', 'All', 'Recommended', 'OfflineMigration',
+ /// 'OnlineMigration'
+ /// The disk share path.
+ /// The actual size of disk in GB.
+ /// The provision size of disk in
+ /// GB.
+ /// Compute resource Uri which owns this
+ /// disk.
+ /// The disk resource Uri from user
+ /// view.
+ /// The type of the disk resource. Possible
+ /// values include: 'Undefined', 'Disk', 'Snapshot', 'RestorePoint',
+ /// 'ManagedBlob'
+ /// the disk sku. Possible values include:
+ /// 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS',
+ /// 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'
+ public Disk(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string diskId = default(string), string status = default(string), string sharePath = default(string), long? actualSizeGB = default(long?), long? provisionSizeGB = default(long?), string managedBy = default(string), string userResourceId = default(string), string diskType = default(string), string diskSku = default(string))
+ : base(id, name, type, location)
+ {
+ DiskId = diskId;
+ Status = status;
+ SharePath = sharePath;
+ ActualSizeGB = actualSizeGB;
+ ProvisionSizeGB = provisionSizeGB;
+ ManagedBy = managedBy;
+ UserResourceId = userResourceId;
+ DiskType = diskType;
+ DiskSku = diskSku;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the disk id.
+ ///
+ [JsonProperty(PropertyName = "properties.diskId")]
+ public string DiskId { get; set; }
+
+ ///
+ /// Gets or sets the disk status. Possible values include: 'Undefined',
+ /// 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'Unknown',
+ /// 'All', 'Recommended', 'OfflineMigration', 'OnlineMigration'
+ ///
+ [JsonProperty(PropertyName = "properties.status")]
+ public string Status { get; set; }
+
+ ///
+ /// Gets or sets the disk share path.
+ ///
+ [JsonProperty(PropertyName = "properties.sharePath")]
+ public string SharePath { get; set; }
+
+ ///
+ /// Gets the actual size of disk in GB.
+ ///
+ [JsonProperty(PropertyName = "properties.actualSizeGB")]
+ public long? ActualSizeGB { get; private set; }
+
+ ///
+ /// Gets the provision size of disk in GB.
+ ///
+ [JsonProperty(PropertyName = "properties.provisionSizeGB")]
+ public long? ProvisionSizeGB { get; private set; }
+
+ ///
+ /// Gets compute resource Uri which owns this disk.
+ ///
+ [JsonProperty(PropertyName = "properties.managedBy")]
+ public string ManagedBy { get; private set; }
+
+ ///
+ /// Gets the disk resource Uri from user view.
+ ///
+ [JsonProperty(PropertyName = "properties.userResourceId")]
+ public string UserResourceId { get; private set; }
+
+ ///
+ /// Gets the type of the disk resource. Possible values include:
+ /// 'Undefined', 'Disk', 'Snapshot', 'RestorePoint', 'ManagedBlob'
+ ///
+ [JsonProperty(PropertyName = "properties.diskType")]
+ public string DiskType { get; private set; }
+
+ ///
+ /// Gets the disk sku. Possible values include: 'Standard_LRS',
+ /// 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS',
+ /// 'StandardSSD_LRS', 'UltraSSD_LRS'
+ ///
+ [JsonProperty(PropertyName = "properties.diskSku")]
+ public string DiskSku { get; private set; }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskMigrationJob.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskMigrationJob.cs
new file mode 100644
index 000000000000..3ed366de55ab
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskMigrationJob.cs
@@ -0,0 +1,114 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Disk migration job.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class DiskMigrationJob : Resource
+ {
+ ///
+ /// Initializes a new instance of the DiskMigrationJob class.
+ ///
+ public DiskMigrationJob()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DiskMigrationJob class.
+ ///
+ /// ID of the resource.
+ /// Name of the resource.
+ /// Type of Resource.
+ /// Location of the resource.
+ /// The disk migration id.
+ /// The current status of disk migration job.
+ /// Possible values include: 'Undefined', 'Running', 'Succeeded',
+ /// 'Failed', 'Canceled', 'Pending'
+ /// The list of child migration tasks.
+ /// The job creation time.
+ /// The job start time.
+ /// The job end time.
+ /// The target share of migration
+ /// job.
+ public DiskMigrationJob(string id = default(string), string name = default(string), string type = default(string), string location = default(string), string migrationId = default(string), string status = default(string), IList subtasks = default(IList), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string targetShare = default(string))
+ : base(id, name, type, location)
+ {
+ MigrationId = migrationId;
+ Status = status;
+ Subtasks = subtasks;
+ CreationTime = creationTime;
+ StartTime = startTime;
+ EndTime = endTime;
+ TargetShare = targetShare;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the disk migration id.
+ ///
+ [JsonProperty(PropertyName = "properties.migrationId")]
+ public string MigrationId { get; set; }
+
+ ///
+ /// Gets the current status of disk migration job. Possible values
+ /// include: 'Undefined', 'Running', 'Succeeded', 'Failed', 'Canceled',
+ /// 'Pending'
+ ///
+ [JsonProperty(PropertyName = "properties.status")]
+ public string Status { get; private set; }
+
+ ///
+ /// Gets the list of child migration tasks.
+ ///
+ [JsonProperty(PropertyName = "properties.subtasks")]
+ public IList Subtasks { get; private set; }
+
+ ///
+ /// Gets the job creation time.
+ ///
+ [JsonProperty(PropertyName = "properties.creationTime")]
+ public System.DateTime? CreationTime { get; private set; }
+
+ ///
+ /// Gets the job start time.
+ ///
+ [JsonProperty(PropertyName = "properties.startTime")]
+ public System.DateTime? StartTime { get; private set; }
+
+ ///
+ /// Gets the job end time.
+ ///
+ [JsonProperty(PropertyName = "properties.endTime")]
+ public System.DateTime? EndTime { get; private set; }
+
+ ///
+ /// Gets the target share of migration job.
+ ///
+ [JsonProperty(PropertyName = "properties.targetShare")]
+ public string TargetShare { get; private set; }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskResourceType.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskResourceType.cs
new file mode 100644
index 000000000000..e289fa889047
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskResourceType.cs
@@ -0,0 +1,25 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+
+ ///
+ /// Defines values for DiskResourceType.
+ ///
+ public static class DiskResourceType
+ {
+ public const string Undefined = "Undefined";
+ public const string Disk = "Disk";
+ public const string Snapshot = "Snapshot";
+ public const string RestorePoint = "RestorePoint";
+ public const string ManagedBlob = "ManagedBlob";
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskState.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskState.cs
new file mode 100644
index 000000000000..2f01da2e68f4
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/DiskState.cs
@@ -0,0 +1,30 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+
+ ///
+ /// Defines values for DiskState.
+ ///
+ public static class DiskState
+ {
+ public const string Undefined = "Undefined";
+ public const string Unattached = "Unattached";
+ public const string Attached = "Attached";
+ public const string Reserved = "Reserved";
+ public const string ActiveSAS = "ActiveSAS";
+ public const string Unknown = "Unknown";
+ public const string All = "All";
+ public const string Recommended = "Recommended";
+ public const string OfflineMigration = "OfflineMigration";
+ public const string OnlineMigration = "OnlineMigration";
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationJobStatus.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationJobStatus.cs
new file mode 100644
index 000000000000..b4dfcc117677
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationJobStatus.cs
@@ -0,0 +1,26 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+
+ ///
+ /// Defines values for MigrationJobStatus.
+ ///
+ public static class MigrationJobStatus
+ {
+ public const string Undefined = "Undefined";
+ public const string Running = "Running";
+ public const string Succeeded = "Succeeded";
+ public const string Failed = "Failed";
+ public const string Canceled = "Canceled";
+ public const string Pending = "Pending";
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationSubTask.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationSubTask.cs
new file mode 100644
index 000000000000..a1dec8f8880b
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationSubTask.cs
@@ -0,0 +1,130 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Disk migration child task.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class MigrationSubTask
+ {
+ ///
+ /// Initializes a new instance of the MigrationSubTask class.
+ ///
+ public MigrationSubTask()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the MigrationSubTask class.
+ ///
+ /// The id of migration child
+ /// task.
+ /// The disk migration child task
+ /// status. Possible values include: 'Undefined', 'Running',
+ /// 'Succeeded', 'Failed', 'Canceled', 'Pending', 'Skipped'
+ /// The reason of task failure.
+ /// The task start time.
+ /// The task end time.
+ /// The target share of migration
+ /// task.
+ /// The source share of migration
+ /// task.
+ /// The disk status. Possible
+ /// values include: 'Undefined', 'Unattached', 'Attached', 'Reserved',
+ /// 'ActiveSAS', 'Unknown', 'All', 'Recommended', 'OfflineMigration',
+ /// 'OnlineMigration'
+ /// The id of disk.
+ public MigrationSubTask(string migrationSubTaskId = default(string), string migrationSubtaskStatus = default(string), string reason = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), string targetShare = default(string), string sourceShare = default(string), string targetDiskStateForMigration = default(string), string diskId = default(string))
+ {
+ MigrationSubTaskId = migrationSubTaskId;
+ MigrationSubtaskStatus = migrationSubtaskStatus;
+ Reason = reason;
+ StartTime = startTime;
+ EndTime = endTime;
+ TargetShare = targetShare;
+ SourceShare = sourceShare;
+ TargetDiskStateForMigration = targetDiskStateForMigration;
+ DiskId = diskId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the id of migration child task.
+ ///
+ [JsonProperty(PropertyName = "migrationSubTaskId")]
+ public string MigrationSubTaskId { get; private set; }
+
+ ///
+ /// Gets the disk migration child task status. Possible values include:
+ /// 'Undefined', 'Running', 'Succeeded', 'Failed', 'Canceled',
+ /// 'Pending', 'Skipped'
+ ///
+ [JsonProperty(PropertyName = "properties.migrationSubtaskStatus")]
+ public string MigrationSubtaskStatus { get; private set; }
+
+ ///
+ /// Gets the reason of task failure.
+ ///
+ [JsonProperty(PropertyName = "properties.reason")]
+ public string Reason { get; private set; }
+
+ ///
+ /// Gets the task start time.
+ ///
+ [JsonProperty(PropertyName = "properties.startTime")]
+ public System.DateTime? StartTime { get; private set; }
+
+ ///
+ /// Gets the task end time.
+ ///
+ [JsonProperty(PropertyName = "properties.endTime")]
+ public System.DateTime? EndTime { get; private set; }
+
+ ///
+ /// Gets the target share of migration task.
+ ///
+ [JsonProperty(PropertyName = "properties.targetShare")]
+ public string TargetShare { get; private set; }
+
+ ///
+ /// Gets the source share of migration task.
+ ///
+ [JsonProperty(PropertyName = "properties.sourceShare")]
+ public string SourceShare { get; private set; }
+
+ ///
+ /// Gets the disk status. Possible values include: 'Undefined',
+ /// 'Unattached', 'Attached', 'Reserved', 'ActiveSAS', 'Unknown',
+ /// 'All', 'Recommended', 'OfflineMigration', 'OnlineMigration'
+ ///
+ [JsonProperty(PropertyName = "properties.targetDiskStateForMigration")]
+ public string TargetDiskStateForMigration { get; private set; }
+
+ ///
+ /// Gets the id of disk.
+ ///
+ [JsonProperty(PropertyName = "properties.diskId")]
+ public string DiskId { get; private set; }
+
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationSubTaskStatus.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationSubTaskStatus.cs
new file mode 100644
index 000000000000..76d62712d156
--- /dev/null
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/Models/MigrationSubTaskStatus.cs
@@ -0,0 +1,27 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.AzureStack.Management.Compute.Admin.Models
+{
+
+ ///
+ /// Defines values for MigrationSubTaskStatus.
+ ///
+ public static class MigrationSubTaskStatus
+ {
+ public const string Undefined = "Undefined";
+ public const string Running = "Running";
+ public const string Succeeded = "Succeeded";
+ public const string Failed = "Failed";
+ public const string Canceled = "Canceled";
+ public const string Pending = "Pending";
+ public const string Skipped = "Skipped";
+ }
+}
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/SdkInfo_ComputeAdminClient.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/SdkInfo_ComputeAdminClient.cs
index 3e672b846e0a..672519b9732d 100644
--- a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/SdkInfo_ComputeAdminClient.cs
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Generated/SdkInfo_ComputeAdminClient.cs
@@ -19,6 +19,8 @@ public static IEnumerable> ApiInfo_ComputeAdminCli
{
return new Tuple[]
{
+ new Tuple("Compute.Admin", "DiskMigrationJobs", "2018-07-30-preview"),
+ new Tuple("Compute.Admin", "Disks", "2018-07-30-preview"),
new Tuple("Compute.Admin", "Operations", "2015-12-01-preview"),
new Tuple("Compute.Admin", "PlatformImages", "2015-12-01-preview"),
new Tuple("Compute.Admin", "Quotas", "2018-02-09"),
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Microsoft.AzureStack.Management.Compute.Admin.csproj b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Microsoft.AzureStack.Management.Compute.Admin.csproj
index be1424602c84..aad8015eb90c 100644
--- a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Microsoft.AzureStack.Management.Compute.Admin.csproj
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Microsoft.AzureStack.Management.Compute.Admin.csproj
@@ -7,13 +7,14 @@
Microsoft.AzureStack.Management.Compute.Admin
Provides developers with libraries for the compute admin under AzureStack to manage compute resources.
- 0.2.0-preview
+ 0.3.0-preview
Microsoft.AzureStack.Management.Compute.Admin
- Microsoft Azure Stack;Compute;REST HTTP client;azureostackfficial;netcore451511
+ Microsoft Azure Stack;Compute;REST HTTP client;azureostackfficial;netcore451511;Managed Disks
diff --git a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Properties/AssemblyInfo.cs b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Properties/AssemblyInfo.cs
index 9c553c50669d..a5281f29fa7d 100644
--- a/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Properties/AssemblyInfo.cs
+++ b/src/AzureStack/Admin/ComputeAdmin/Compute.Admin/Properties/AssemblyInfo.cs
@@ -15,4 +15,4 @@
[assembly: NeutralResourcesLanguage("en")]
[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyFileVersion("0.2.0.0")]
+[assembly: AssemblyFileVersion("0.3.0.0")]
diff --git a/src/SDKs/_metadata/azsadmin_resource-manager_compute.txt b/src/SDKs/_metadata/azsadmin_resource-manager_compute.txt
index 8b41aae1f89e..9564d019479c 100644
--- a/src/SDKs/_metadata/azsadmin_resource-manager_compute.txt
+++ b/src/SDKs/_metadata/azsadmin_resource-manager_compute.txt
@@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/azsadmin/resource-manager/compute/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Users\cheguv\Documents\GitHub\azure-sdk-for-net\src\AzureStack\Admin\ComputeAdmin\Compute.Admin
-2018-08-06 18:19:34 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/azsadmin/resource-manager/compute/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=F:\azure\my\azure-sdk-for-net\src\AzureStack\Admin\ComputeAdmin\Compute.Admin
+2018-08-08 06:58:24 UTC
1) azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: d86faa6903c7efde6cb8b415582777e85117925f
+Commit: d5abc3888fdc551c8cd98b19ec4d94f1d9dd701c
2) AutoRest information
Requested version: latest