diff --git a/src/SDKs/ContainerInstance/AzSdk.RP.props b/src/SDKs/ContainerInstance/AzSdk.RP.props index 44de165a8501..438f728fd670 100644 --- a/src/SDKs/ContainerInstance/AzSdk.RP.props +++ b/src/SDKs/ContainerInstance/AzSdk.RP.props @@ -1,7 +1,7 @@ - ContainerInstance_2018-04-01; + ContainerInstance_2018-10-01;Network_2018-10-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs b/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs index c8e24a3f606d..8b0229317c22 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/Helpers/ContainerInstanceTestUtilities.cs @@ -46,12 +46,26 @@ public static ContainerGroup CreateTestContainerGroup(string containerGroupName) image: "alpine", ports: new List() { new ContainerPort(80) }, command: new List() { "/bin/sh", "-c", "while true; do sleep 10; done" }, + environmentVariables: new List + { + new EnvironmentVariable(name: "secretEnv", secureValue: "secretValue1") + }, + livenessProbe: new ContainerProbe( + exec: new ContainerExec(command: new List{ "cat", "/tmp/healthy" }), + periodSeconds: 20), resources: new ResourceRequirements(requests: new ResourceRequests(memoryInGB: 1.5, cpu: 1.0))) }; var ipAddress = new IpAddress( ports: new List() { new Port(80, "TCP") }, - dnsNameLabel: containerGroupName); + dnsNameLabel: containerGroupName, + type: ContainerGroupIpAddressType.Public); + + var logAnalytics = new LogAnalytics( + workspaceId: "workspaceid", + workspaceKey: "workspacekey"); + + var msiIdentity = new ContainerGroupIdentity(type: ResourceIdentityType.SystemAssigned); var containerGroup = new ContainerGroup( name: containerGroupName, @@ -59,7 +73,9 @@ public static ContainerGroup CreateTestContainerGroup(string containerGroupName) osType: OperatingSystemTypes.Linux, ipAddress: ipAddress, restartPolicy: "Never", - containers: containers); + containers: containers, + identity: msiIdentity, + diagnostics: new ContainerGroupDiagnostics(logAnalytics: logAnalytics)); return containerGroup; } @@ -71,6 +87,8 @@ public static void VerifyContainerGroupProperties(ContainerGroup expected, Conta Assert.Equal(expected.Location, actual.Location); Assert.Equal(expected.OsType, actual.OsType); Assert.Equal(expected.RestartPolicy, actual.RestartPolicy); + Assert.Equal(expected.Identity.Type, actual.Identity.Type); + Assert.Equal(expected.Diagnostics.LogAnalytics.WorkspaceId, actual.Diagnostics.LogAnalytics.WorkspaceId); Assert.NotNull(actual.Containers); Assert.Equal(1, actual.Containers.Count); Assert.NotNull(actual.IpAddress); @@ -78,6 +96,8 @@ public static void VerifyContainerGroupProperties(ContainerGroup expected, Conta Assert.Equal(expected.IpAddress.DnsNameLabel, actual.IpAddress.DnsNameLabel); Assert.Equal(expected.Containers[0].Name, actual.Containers[0].Name); Assert.Equal(expected.Containers[0].Image, actual.Containers[0].Image); + Assert.Equal(expected.Containers[0].LivenessProbe.PeriodSeconds, actual.Containers[0].LivenessProbe.PeriodSeconds); + Assert.Equal(expected.Containers[0].EnvironmentVariables[0].Name, actual.Containers[0].EnvironmentVariables[0].Name); Assert.Equal(expected.Containers[0].Resources.Requests.Cpu, actual.Containers[0].Resources.Requests.Cpu); Assert.Equal(expected.Containers[0].Resources.Requests.MemoryInGB, actual.Containers[0].Resources.Requests.MemoryInGB); } diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json index 0827e622284f..7f15dafa4b80 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceCreateTest.json @@ -1,44 +1,34 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg1336?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzEzMzY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg8573?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzg1NzM/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], "x-ms-client-request-id": [ - "48d0bea2-f2de-4fb8-8120-e81618dd62ce" + "429368e8-252d-4bfe-a8e7-abf975757bc3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", + "FxVersion/4.6.26614.01", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336\",\r\n \"name\": \"aci_rg1336\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:54:54 GMT" + "Tue, 09 Oct 2018 23:21:22 GMT" ], "Pragma": [ "no-cache" @@ -47,215 +37,223 @@ "1199" ], "x-ms-request-id": [ - "2cdbb3e0-f866-47fb-9afe-893e23e02774" + "bb168aa5-7ab1-4f4e-ab02-9ed839d2d654" ], "x-ms-correlation-request-id": [ - "2cdbb3e0-f866-47fb-9afe-893e23e02774" + "bb168aa5-7ab1-4f4e-ab02-9ed839d2d654" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205455Z:2cdbb3e0-f866-47fb-9afe-893e23e02774" + "WESTUS2:20181009T232123Z:bb168aa5-7ab1-4f4e-ab02-9ed839d2d654" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8573\",\r\n \"name\": \"aci_rg8573\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzEzMzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDA1OD9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8573/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6305?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzg1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNjMwNT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4058\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk4058\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk6305\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\",\r\n \"secureValue\": \"secretValue1\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk6305\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\",\r\n \"workspaceKey\": \"workspacekey\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "761" - ], "x-ms-client-request-id": [ - "2da8a90f-2f44-4b8f-82eb-d8741c644e38" + "43e540e9-a3bf-4da6-a0b3-af72c6160b3e" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4058\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.82.193\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4058\",\r\n \"fqdn\": \"acinetsdk4058.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058\",\r\n \"name\": \"acinetsdk4058\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "754" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "1382" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:55:05 GMT" + "Tue, 09 Oct 2018 23:21:39 GMT" ], "Pragma": [ "no-cache" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/24d50264-249f-4acd-88a3-381ba1492c10?api-version=2018-02-01-preview" + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/f4949c43-6c49-4d61-bf39-77ad564cd9c0?api-version=2018-06-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "97" + "96" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "84" + "72" ], "x-ms-request-id": [ - "westus:24d50264-249f-4acd-88a3-381ba1492c10" + "westus:f4949c43-6c49-4d61-bf39-77ad564cd9c0" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "5ba09eea-7c4d-4bc0-b077-75fbf8c85504" + "49d807c1-f0e5-4ad5-b4fa-c38c41ea537b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205506Z:5ba09eea-7c4d-4bc0-b077-75fbf8c85504" + "WESTUS2:20181009T232139Z:49d807c1-f0e5-4ad5-b4fa-c38c41ea537b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1070" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Pending\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk6305\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"168.62.6.8\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk6305\",\r\n \"fqdn\": \"acinetsdk6305.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"state\": \"Pending\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"c6d92f25-7249-4265-93e8-77e322f6ff7f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8573/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6305\",\r\n \"name\": \"acinetsdk6305\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/24d50264-249f-4acd-88a3-381ba1492c10?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zLzI0ZDUwMjY0LTI0OWYtNGFjZC04OGEzLTM4MWJhMTQ5MmMxMD9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/f4949c43-6c49-4d61-bf39-77ad564cd9c0?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25zL2Y0OTQ5YzQzLTZjNDktNGQ2MS1iZjM5LTc3YWQ1NjRjZDljMD9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T20:55:02.1989932Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:55:35 GMT" + "Tue, 09 Oct 2018 23:22:08 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:36197976-cb0a-48b4-8177-73fec0e0cd12" + "westus:94f803e2-e595-4282-a378-b9d96f78fda4" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "11999" ], "x-ms-correlation-request-id": [ - "177f39d7-e949-4b54-a457-f43ff84e3f2d" + "554248e7-2c65-4535-8e53-f91d4f86a4c9" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205536Z:177f39d7-e949-4b54-a457-f43ff84e3f2d" + "WESTUS2:20181009T232209Z:554248e7-2c65-4535-8e53-f91d4f86a4c9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1031" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8573/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6305\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-10-09T23:21:38.3046738Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:47Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:47Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id f55a9b5b8cff7822c041fbd8b0763766e209941b52196313f91ebbd8d2cb9433\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:50Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:50Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id f55a9b5b8cff7822c041fbd8b0763766e209941b52196313f91ebbd8d2cb9433\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzEzMzYvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDA1OD9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8573/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6305?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzg1NzMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNjMwNT9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4058\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Terminated\",\r\n \"startTime\": \"2018-04-10T20:55:14Z\",\r\n \"exitCode\": 0,\r\n \"finishTime\": \"2018-04-10T20:55:14Z\",\r\n \"detailStatus\": \"Completed\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:11Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:13Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:55:14Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bfeb46a8f7528c5c854a9613b0760d105f5da3b092c77103f127a4049c23da43\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.82.193\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4058\",\r\n \"fqdn\": \"acinetsdk4058.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Succeeded\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1336/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4058\",\r\n \"name\": \"acinetsdk4058\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:55:35 GMT" + "Tue, 09 Oct 2018 23:22:08 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:465f2aa9-9334-4f8f-8056-4a2d7845d2d4" + "westus:59916803-3c4b-4570-ba41-acaf17cf53ee" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" + "11998" ], "x-ms-correlation-request-id": [ - "a66f9676-9358-41f5-8c47-b327aa7e2536" + "d25bf227-d746-4f08-a446-269255cf16e4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205536Z:a66f9676-9358-41f5-8c47-b327aa7e2536" + "WESTUS2:20181009T232209Z:d25bf227-d746-4f08-a446-269255cf16e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2226" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk6305\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:21:50Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:47Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:47Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:49Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id f55a9b5b8cff7822c041fbd8b0763766e209941b52196313f91ebbd8d2cb9433\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:50Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:50Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id f55a9b5b8cff7822c041fbd8b0763766e209941b52196313f91ebbd8d2cb9433\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:21:58Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:21:58Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"168.62.6.8\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk6305\",\r\n \"fqdn\": \"acinetsdk6305.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"c6d92f25-7249-4265-93e8-77e322f6ff7f\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8573/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk6305\",\r\n \"name\": \"acinetsdk6305\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 } ], "Names": { "CreateResourceGroup": [ - "aci_rg1336" + "aci_rg8573" ], "ContainerInstanceCreateTest": [ - "acinetsdk4058" + "acinetsdk6305" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json index 7b7e856ed05e..8f3569736443 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceGetTest.json @@ -1,44 +1,34 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg678?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzY3OD9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg2712?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzI3MTI/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], "x-ms-client-request-id": [ - "127d196d-8437-49e4-9b8c-2209389367ee" + "0b22d090-c5b5-45ff-97c4-3195ad574ec3" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", + "FxVersion/4.6.26614.01", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678\",\r\n \"name\": \"aci_rg678\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "171" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:56:48 GMT" + "Tue, 09 Oct 2018 23:22:13 GMT" ], "Pragma": [ "no-cache" @@ -47,277 +37,284 @@ "1199" ], "x-ms-request-id": [ - "e0397168-e5c5-4062-b400-f46c1c90a90c" + "5bfa12ca-59eb-48eb-b933-fcb685106a15" ], "x-ms-correlation-request-id": [ - "e0397168-e5c5-4062-b400-f46c1c90a90c" + "5bfa12ca-59eb-48eb-b933-fcb685106a15" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205649Z:e0397168-e5c5-4062-b400-f46c1c90a90c" + "WESTUS2:20181009T232214Z:5bfa12ca-59eb-48eb-b933-fcb685106a15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712\",\r\n \"name\": \"aci_rg2712\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzY3OC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0OTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzI3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQ3P2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk547\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\",\r\n \"secureValue\": \"secretValue1\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk547\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\",\r\n \"workspaceKey\": \"workspacekey\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "761" - ], "x-ms-client-request-id": [ - "01494a5d-937d-4a55-8225-32f411a0964a" + "aaaba707-6bbb-4fb3-a694-f87eff038675" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.39.46\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"fqdn\": \"acinetsdk4952.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"name\": \"acinetsdk4952\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "752" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "1380" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:56:53 GMT" + "Tue, 09 Oct 2018 23:22:21 GMT" ], "Pragma": [ "no-cache" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/bd84bef5-4280-4430-a37a-e84d00d069c0?api-version=2018-02-01-preview" + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/e60fbb38-6744-4080-a084-108a7d7e67c5?api-version=2018-06-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ "96" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "85" + "71" ], "x-ms-request-id": [ - "westus:bd84bef5-4280-4430-a37a-e84d00d069c0" + "westus:e60fbb38-6744-4080-a084-108a7d7e67c5" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "8da854b2-e35b-4dfb-a966-7be383dc07cf" + "221f23db-9fcc-4aa4-864c-4cbc267702e6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205654Z:8da854b2-e35b-4dfb-a966-7be383dc07cf" + "WESTUS2:20181009T232222Z:221f23db-9fcc-4aa4-864c-4cbc267702e6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1065" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Pending\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk547\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.55.7\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk547\",\r\n \"fqdn\": \"acinetsdk547.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"state\": \"Pending\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"b03d31d1-753c-4631-8f19-cfbe313c3532\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547\",\r\n \"name\": \"acinetsdk547\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/bd84bef5-4280-4430-a37a-e84d00d069c0?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zL2JkODRiZWY1LTQyODAtNDQzMC1hMzdhLWU4NGQwMGQwNjljMD9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/e60fbb38-6744-4080-a084-108a7d7e67c5?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25zL2U2MGZiYjM4LTY3NDQtNDA4MC1hMDg0LTEwOGE3ZDdlNjdjNT9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T20:56:52.917234Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:57:23 GMT" + "Tue, 09 Oct 2018 23:22:52 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:e8b77cc4-bb02-4e33-aa81-9b470ebfa36c" + "westus:22d603bc-86f4-427c-b28d-69b3c25b239c" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14916" + "11999" ], "x-ms-correlation-request-id": [ - "09147093-663f-42bf-a995-c7f396941f34" + "ef6d8ebe-84ae-4e13-a1e3-cd623b942343" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205724Z:09147093-663f-42bf-a995-c7f396941f34" + "WESTUS2:20181009T232252Z:ef6d8ebe-84ae-4e13-a1e3-cd623b942343" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1030" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-10-09T23:22:21.4569131Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:30Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:30Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:34Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:34Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 42a74deaa0af52782eacb2cf8eb8ed09b669aa0e7936724e58d00d98a291755c\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 42a74deaa0af52782eacb2cf8eb8ed09b669aa0e7936724e58d00d98a291755c\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzY3OC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0OTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzI3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQ3P2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Terminated\",\r\n \"startTime\": \"2018-04-10T20:56:58Z\",\r\n \"exitCode\": 0,\r\n \"finishTime\": \"2018-04-10T20:56:58Z\",\r\n \"detailStatus\": \"Completed\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.39.46\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"fqdn\": \"acinetsdk4952.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Succeeded\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"name\": \"acinetsdk4952\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:57:23 GMT" + "Tue, 09 Oct 2018 23:22:52 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:64ea0f34-4299-4a22-847b-a30cd30c22c4" + "westus:d4b7c8bc-b0c1-4b17-a246-da7edb1a3645" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14915" + "11998" ], "x-ms-correlation-request-id": [ - "21ba7e17-4c72-4374-b25a-56e0e53557b3" + "b06fff5f-79da-466b-a9eb-1291fff4440b" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205724Z:21ba7e17-4c72-4374-b25a-56e0e53557b3" + "WESTUS2:20181009T232252Z:b06fff5f-79da-466b-a9eb-1291fff4440b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2221" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk547\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:22:35Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:30Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:30Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:34Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:34Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 42a74deaa0af52782eacb2cf8eb8ed09b669aa0e7936724e58d00d98a291755c\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 42a74deaa0af52782eacb2cf8eb8ed09b669aa0e7936724e58d00d98a291755c\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:41Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:41Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.55.7\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk547\",\r\n \"fqdn\": \"acinetsdk547.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"b03d31d1-753c-4631-8f19-cfbe313c3532\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547\",\r\n \"name\": \"acinetsdk547\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzY3OC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0OTUyP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzI3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQ3P2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7dd44d3f-c66d-4630-af83-4fd2c8f10c4a" + "d92a9033-c4cb-4649-ae3c-c06028658351" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4952\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"echo\",\r\n \"hello\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Terminated\",\r\n \"startTime\": \"2018-04-10T20:56:58Z\",\r\n \"exitCode\": 0,\r\n \"finishTime\": \"2018-04-10T20:56:58Z\",\r\n \"detailStatus\": \"Completed\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"lastTimestamp\": \"2018-04-10T20:56:58Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 75f70dfde3d951695c750c5e6533101c19c5a6206d03df21c3b9b8decd33ea7f\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.39.46\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4952\",\r\n \"fqdn\": \"acinetsdk4952.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Succeeded\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg678/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4952\",\r\n \"name\": \"acinetsdk4952\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 20:57:23 GMT" + "Tue, 09 Oct 2018 23:22:52 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:79d88716-18ac-4a18-a9ae-90d820381ac9" + "westus:6bbbf48a-0159-433e-bf2b-303bf4002b40" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14914" + "11997" ], "x-ms-correlation-request-id": [ - "12496b57-3b75-4d32-97de-2fa964702f76" + "6881937c-356b-445a-b407-f59666968c3d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T205724Z:12496b57-3b75-4d32-97de-2fa964702f76" + "WESTUS2:20181009T232252Z:6881937c-356b-445a-b407-f59666968c3d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2221" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk547\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:22:35Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:30Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:30Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:34Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:34Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 42a74deaa0af52782eacb2cf8eb8ed09b669aa0e7936724e58d00d98a291755c\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:35Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 42a74deaa0af52782eacb2cf8eb8ed09b669aa0e7936724e58d00d98a291755c\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:22:41Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:22:41Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.55.7\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk547\",\r\n \"fqdn\": \"acinetsdk547.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"b03d31d1-753c-4631-8f19-cfbe313c3532\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2712/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk547\",\r\n \"name\": \"acinetsdk547\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 } ], "Names": { "CreateResourceGroup": [ - "aci_rg678" + "aci_rg2712" ], "ContainerInstanceGetTest": [ - "acinetsdk4952" + "acinetsdk547" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json index d6052a676f21..b0324cd31d0f 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListByResourceGroupTest.json @@ -1,44 +1,34 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg9259?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzkyNTk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg7235?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzcyMzU/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], "x-ms-client-request-id": [ - "0d99b448-a8e1-40e9-804f-55a4af3fa38e" + "fb63753d-5028-4528-8e79-082278229534" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", + "FxVersion/4.6.26614.01", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259\",\r\n \"name\": \"aci_rg9259\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:24:08 GMT" + "Tue, 09 Oct 2018 23:22:56 GMT" ], "Pragma": [ "no-cache" @@ -47,247 +37,245 @@ "1199" ], "x-ms-request-id": [ - "030e6705-aaab-493a-8a0d-d1fb1b80f228" + "16bdb87f-a881-49fb-a6b0-7e1a3eb16683" ], "x-ms-correlation-request-id": [ - "030e6705-aaab-493a-8a0d-d1fb1b80f228" + "16bdb87f-a881-49fb-a6b0-7e1a3eb16683" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212409Z:030e6705-aaab-493a-8a0d-d1fb1b80f228" + "WESTUS2:20181009T232257Z:16bdb87f-a881-49fb-a6b0-7e1a3eb16683" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235\",\r\n \"name\": \"aci_rg7235\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzkyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMzgwNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2096?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzcyMzUvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMjA5Nj9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2096\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\",\r\n \"secureValue\": \"secretValue1\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2096\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\",\r\n \"workspaceKey\": \"workspacekey\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "807" - ], "x-ms-client-request-id": [ - "38a24dac-3e56-4d5f-a8f2-f3aa30cb167e" + "7f72b6f9-f6bd-4859-9a13-d8297ec893eb" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.229.99\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"fqdn\": \"acinetsdk3807.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"name\": \"acinetsdk3807\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "785" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "1382" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:24:16 GMT" + "Tue, 09 Oct 2018 23:23:03 GMT" ], "Pragma": [ "no-cache" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/9989d26f-71f4-40d8-bd32-a85847fffe99?api-version=2018-02-01-preview" + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/734313af-7d5c-412f-a5c7-53c487258068?api-version=2018-06-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "96" + "95" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "75" + "70" ], "x-ms-request-id": [ - "westus:9989d26f-71f4-40d8-bd32-a85847fffe99" + "westus:734313af-7d5c-412f-a5c7-53c487258068" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "c85e9d7b-49ac-4406-8962-1dc8ea0ea84c" + "f173a63e-89a2-47df-bba5-3f00ab96972f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212417Z:c85e9d7b-49ac-4406-8962-1dc8ea0ea84c" + "WESTUS2:20181009T232303Z:f173a63e-89a2-47df-bba5-3f00ab96972f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1071" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Pending\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2096\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.40.3.21\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2096\",\r\n \"fqdn\": \"acinetsdk2096.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"state\": \"Pending\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"5e630245-f988-43aa-ba8c-4576d143f60b\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2096\",\r\n \"name\": \"acinetsdk2096\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/9989d26f-71f4-40d8-bd32-a85847fffe99?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zLzk5ODlkMjZmLTcxZjQtNDBkOC1iZDMyLWE4NTg0N2ZmZmU5OT9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/734313af-7d5c-412f-a5c7-53c487258068?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25zLzczNDMxM2FmLTdkNWMtNDEyZi1hNWM3LTUzYzQ4NzI1ODA2OD9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:24:15.2975855Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:24:47 GMT" + "Tue, 09 Oct 2018 23:23:32 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:25f46985-dd73-460d-9979-d735d0806e8a" + "westus:36c07017-0286-4524-80f3-b1d66c0ccebd" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14985" + "11999" ], "x-ms-correlation-request-id": [ - "a18a3daa-1193-447a-894b-90eb2891d60c" + "3ab10965-3b10-416e-a988-e15d539d6650" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212447Z:a18a3daa-1193-447a-894b-90eb2891d60c" + "WESTUS2:20181009T232333Z:3ab10965-3b10-416e-a988-e15d539d6650" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1031" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2096\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-10-09T23:23:02.8644377Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:08Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:08Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 32717e3d5c8160197eb422747d7b126812e37df3c59f431677c54ea612c73741\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 32717e3d5c8160197eb422747d7b126812e37df3c59f431677c54ea612c73741\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzkyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMzgwNz9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2096?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzcyMzUvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMjA5Nj9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:24:28Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:24Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:27Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:28Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 4f6653dc697c7d04048c99bf10a7fa2b0e96da11e14dce73fbb8afd3dcf68d68\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.229.99\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"fqdn\": \"acinetsdk3807.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"name\": \"acinetsdk3807\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:24:47 GMT" + "Tue, 09 Oct 2018 23:23:33 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:a255aa8d-0c69-48c6-9f4f-ba3f0f671e7c" + "westus:b04a17d9-2595-4533-a2b1-49c78267af9a" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14984" + "11998" ], "x-ms-correlation-request-id": [ - "793219f4-2d90-41e0-9870-db8c289acdef" + "b8e77cb5-233e-4a24-8493-f61fe51158ae" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212448Z:793219f4-2d90-41e0-9870-db8c289acdef" + "WESTUS2:20181009T232333Z:b8e77cb5-233e-4a24-8493-f61fe51158ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2227" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2096\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:23:13Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:08Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:08Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 32717e3d5c8160197eb422747d7b126812e37df3c59f431677c54ea612c73741\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:13Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 32717e3d5c8160197eb422747d7b126812e37df3c59f431677c54ea612c73741\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:23Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:23Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.40.3.21\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2096\",\r\n \"fqdn\": \"acinetsdk2096.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"5e630245-f988-43aa-ba8c-4576d143f60b\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2096\",\r\n \"name\": \"acinetsdk2096\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg2331?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzIzMzE/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg587?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzU4Nz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], "x-ms-client-request-id": [ - "8d55a4c7-9355-47ef-81ce-74d9b8fba8ac" + "05c7a974-6ce5-4cb7-ae6d-3b924f5fa704" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", + "FxVersion/4.6.26614.01", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331\",\r\n \"name\": \"aci_rg2331\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:24:48 GMT" + "Tue, 09 Oct 2018 23:23:33 GMT" ], "Pragma": [ "no-cache" @@ -296,279 +284,286 @@ "1197" ], "x-ms-request-id": [ - "d6ed9bb3-167b-4d72-be5f-b68c5409d7b9" + "e76fe909-09e7-45f8-840a-ad45f5e4ea6d" ], "x-ms-correlation-request-id": [ - "d6ed9bb3-167b-4d72-be5f-b68c5409d7b9" + "e76fe909-09e7-45f8-840a-ad45f5e4ea6d" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212448Z:d6ed9bb3-167b-4d72-be5f-b68c5409d7b9" + "WESTUS2:20181009T232334Z:e76fe909-09e7-45f8-840a-ad45f5e4ea6d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "171" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg587\",\r\n \"name\": \"aci_rg587\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzIzMzEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQxOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg587/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4140?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU4Ny9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0MTQwP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5419\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk5419\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4140\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\",\r\n \"secureValue\": \"secretValue1\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4140\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\",\r\n \"workspaceKey\": \"workspacekey\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "807" - ], "x-ms-client-request-id": [ - "941e98dd-a9e0-45ea-8839-f6cd4a5fac65" + "5a56796e-c2d6-4145-9d77-394373f767df" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5419\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.65.204\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5419\",\r\n \"fqdn\": \"acinetsdk5419.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419\",\r\n \"name\": \"acinetsdk5419\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "786" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "1382" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:24:52 GMT" + "Tue, 09 Oct 2018 23:23:39 GMT" ], "Pragma": [ "no-cache" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/fc7f18bb-fe89-4604-9130-5cb747ae9d54?api-version=2018-02-01-preview" + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/a67423b1-bce1-4d50-a6ec-91c62ef38d8d?api-version=2018-06-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "95" + "94" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "74" + "69" ], "x-ms-request-id": [ - "westus:fc7f18bb-fe89-4604-9130-5cb747ae9d54" + "westus:a67423b1-bce1-4d50-a6ec-91c62ef38d8d" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "4fcb3c8a-df6e-455a-b802-5a42c17b8e37" + "3e11561a-7ba1-40b2-8bbd-e15d360d12e5" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212453Z:4fcb3c8a-df6e-455a-b802-5a42c17b8e37" + "WESTUS2:20181009T232340Z:3e11561a-7ba1-40b2-8bbd-e15d360d12e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Pending\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4140\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Waiting\",\r\n \"detailStatus\": \"ContainerCreating\"\r\n }\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.47.1\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4140\",\r\n \"fqdn\": \"acinetsdk4140.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"state\": \"Pending\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"6bbd096e-9cb7-485d-9b1d-46ca6c793f11\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg587/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4140\",\r\n \"name\": \"acinetsdk4140\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/fc7f18bb-fe89-4604-9130-5cb747ae9d54?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zL2ZjN2YxOGJiLWZlODktNDYwNC05MTMwLTVjYjc0N2FlOWQ1ND9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/a67423b1-bce1-4d50-a6ec-91c62ef38d8d?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25zL2E2NzQyM2IxLWJjZTEtNGQ1MC1hNmVjLTkxYzYyZWYzOGQ4ZD9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:24:52.3087285Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:25:23 GMT" + "Tue, 09 Oct 2018 23:24:09 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:999a411f-8fbd-442c-9988-aa516469d909" + "westus:133812eb-7c82-452a-8589-749ab5355606" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14983" + "11997" ], "x-ms-correlation-request-id": [ - "6a0a8a83-ab6e-4f16-8eac-d293a2f95dbd" + "ee0bfeb7-347c-400f-b4ed-70b7ab2239a6" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212523Z:6a0a8a83-ab6e-4f16-8eac-d293a2f95dbd" + "WESTUS2:20181009T232410Z:ee0bfeb7-347c-400f-b4ed-70b7ab2239a6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1030" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg587/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4140\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-10-09T23:23:39.6397454Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:41Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:41Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 37714fdbdf4d3b6f241eae7ee454100d2efd41a743ff1f6b413a867623bab649\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 37714fdbdf4d3b6f241eae7ee454100d2efd41a743ff1f6b413a867623bab649\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzIzMzEvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQxOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg587/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4140?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU4Ny9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbnRhaW5lckluc3RhbmNlL2NvbnRhaW5lckdyb3Vwcy9hY2luZXRzZGs0MTQwP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5419\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:24:57Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:55Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:24:57Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 85c3dab1b3aedf53e6fbe01aef666f367790b25ea2dcfe66f57c705673be4128\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.160.65.204\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5419\",\r\n \"fqdn\": \"acinetsdk5419.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2331/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5419\",\r\n \"name\": \"acinetsdk5419\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:25:23 GMT" + "Tue, 09 Oct 2018 23:24:09 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:2db89a8f-87e4-4342-9b91-9751a170153a" + "westus:8af351f7-e0aa-4ab6-8198-0c9764ec83c0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14982" + "11996" ], "x-ms-correlation-request-id": [ - "03774dbf-b506-4de2-9a48-3e19ee06a4d5" + "0918145e-4f68-4e0a-b023-a97dff6c4f2f" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212523Z:03774dbf-b506-4de2-9a48-3e19ee06a4d5" + "WESTUS2:20181009T232410Z:0918145e-4f68-4e0a-b023-a97dff6c4f2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2225" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4140\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:23:44Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:41Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:41Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 37714fdbdf4d3b6f241eae7ee454100d2efd41a743ff1f6b413a867623bab649\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:44Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 37714fdbdf4d3b6f241eae7ee454100d2efd41a743ff1f6b413a867623bab649\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 2,\r\n \"firstTimestamp\": \"2018-10-09T23:23:59Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:23:59Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.47.1\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4140\",\r\n \"fqdn\": \"acinetsdk4140.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"6bbd096e-9cb7-485d-9b1d-46ca6c793f11\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg587/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4140\",\r\n \"name\": \"acinetsdk4140\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzkyNTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHM/YXBpLXZlcnNpb249MjAxOC0wNC0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzcyMzUvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHM/YXBpLXZlcnNpb249MjAxOC0xMC0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "b7e165ec-c780-4c01-b622-fb0bdf0b641f" + "ecc0d455-5ea2-4595-9c17-78b782cfd89f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk3807\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.229.99\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk3807\",\r\n \"fqdn\": \"acinetsdk3807.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9259/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk3807\",\r\n \"name\": \"acinetsdk3807\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:25:23 GMT" + "Tue, 09 Oct 2018 23:24:09 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:1fd5693d-7a8a-4993-81d5-bd710611f4e9" + "westus:1debe05d-a99c-46e1-9438-c7c2845f2140" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14981" + "11995" ], "x-ms-correlation-request-id": [ - "5bfc7005-0a04-4a8f-9865-48ad1e7e58d3" + "212e8b9f-5396-4994-9bd0-487b9f11fb56" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212524Z:5bfc7005-0a04-4a8f-9865-48ad1e7e58d3" + "WESTUS2:20181009T232410Z:212e8b9f-5396-4994-9bd0-487b9f11fb56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1050" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2096\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.40.3.21\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2096\",\r\n \"fqdn\": \"acinetsdk2096.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"5e630245-f988-43aa-ba8c-4576d143f60b\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7235/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2096\",\r\n \"name\": \"acinetsdk2096\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": { "CreateResourceGroup": [ - "aci_rg9259", - "aci_rg2331" + "aci_rg7235", + "aci_rg587" ], "ContainerInstanceListByResourceGroupTest": [ - "acinetsdk3807", - "acinetsdk5419" + "acinetsdk2096", + "acinetsdk4140" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json index dd76ea64fb2a..42e9257d3d4f 100644 --- a/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json +++ b/src/SDKs/ContainerInstance/ContainerInstance.Tests/SessionRecords/ContainerInstance.Tests.ContainerInstanceTests/ContainerInstanceListTest.json @@ -1,44 +1,34 @@ { "Entries": [ { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg3112?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzMxMTI/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg8569?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzg1Njk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], "x-ms-client-request-id": [ - "3f13f742-9d13-4f52-b0e4-63e1bf1fc86a" + "13ccbd2f-c4ff-4495-a90e-44d7bcf574b6" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", + "FxVersion/4.6.26614.01", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112\",\r\n \"name\": \"aci_rg3112\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:22:35 GMT" + "Tue, 09 Oct 2018 23:31:10 GMT" ], "Pragma": [ "no-cache" @@ -47,247 +37,245 @@ "1199" ], "x-ms-request-id": [ - "62a3bbe0-1a01-4cf8-9f70-1e5f93ba69a3" + "543479c6-03e1-4e21-9c17-e5e07c33ffc0" ], "x-ms-correlation-request-id": [ - "62a3bbe0-1a01-4cf8-9f70-1e5f93ba69a3" + "543479c6-03e1-4e21-9c17-e5e07c33ffc0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212235Z:62a3bbe0-1a01-4cf8-9f70-1e5f93ba69a3" + "WESTUS2:20181009T233111Z:543479c6-03e1-4e21-9c17-e5e07c33ffc0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569\",\r\n \"name\": \"aci_rg8569\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzMxMTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDgyOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1984?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzg1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMTk4ND9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk1984\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\",\r\n \"secureValue\": \"secretValue1\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk1984\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\",\r\n \"workspaceKey\": \"workspacekey\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "807" - ], "x-ms-client-request-id": [ - "6fb0ab82-a12d-44fc-9fdf-46016cd4da08" + "2b532a08-a161-496b-a445-db76c7ea3db0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:22:47Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.36.201\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"fqdn\": \"acinetsdk4829.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"name\": \"acinetsdk4829\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "1705" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "1382" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:22:48 GMT" + "Tue, 09 Oct 2018 23:31:17 GMT" ], "Pragma": [ "no-cache" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/3ee1695c-407b-48b6-a01a-4e534992f137?api-version=2018-02-01-preview" + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/036ee83b-37cf-4fdd-84ed-546cba5b2f1e?api-version=2018-06-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "97" + "99" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "77" + "69" ], "x-ms-request-id": [ - "westus:3ee1695c-407b-48b6-a01a-4e534992f137" + "westus:036ee83b-37cf-4fdd-84ed-546cba5b2f1e" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "7124e449-8638-4f24-9d33-4eb1c23f9465" + "20213684-276b-4a14-a371-c66299be45d2" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212248Z:7124e449-8638-4f24-9d33-4eb1c23f9465" + "WESTUS2:20181009T233118Z:20213684-276b-4a14-a371-c66299be45d2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1178" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Pending\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk1984\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Waiting\",\r\n \"detailStatus\": \"ContainerCreating\"\r\n }\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.112.198.115\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk1984\",\r\n \"fqdn\": \"acinetsdk1984.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"state\": \"Pending\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"464aae33-6aed-40ce-a175-96323bbce378\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1984\",\r\n \"name\": \"acinetsdk1984\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/3ee1695c-407b-48b6-a01a-4e534992f137?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zLzNlZTE2OTVjLTQwN2ItNDhiNi1hMDFhLTRlNTM0OTkyZjEzNz9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/036ee83b-37cf-4fdd-84ed-546cba5b2f1e?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25zLzAzNmVlODNiLTM3Y2YtNGZkZC04NGVkLTU0NmNiYTViMmYxZT9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:22:42.896718Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:17 GMT" + "Tue, 09 Oct 2018 23:31:48 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:4a46389a-6ccc-445f-a65b-12567d28f4b6" + "westus:68a2933b-b593-44ac-bcdc-f4e93f979124" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14990" + "11999" ], "x-ms-correlation-request-id": [ - "0d7ec217-3ed0-459b-aa57-92d42b75a82a" + "f9352f3c-9020-4f34-906f-534f2be801c0" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212318Z:0d7ec217-3ed0-459b-aa57-92d42b75a82a" + "WESTUS2:20181009T233148Z:f9352f3c-9020-4f34-906f-534f2be801c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1031" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1984\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-10-09T23:31:17.8983202Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:19Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:19Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 4ae78ef8a6462b27abbb316f1176ef2870c2464313d7263473408a44d5916111\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 4ae78ef8a6462b27abbb316f1176ef2870c2464313d7263473408a44d5916111\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzMxMTIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNDgyOT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1984?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzg1NjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrMTk4ND9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:22:47Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:44Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:22:47Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 1dc94db34b2e194eba3116042f21347e833ce39744ec471701ceb3bbc48cc037\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.36.201\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"fqdn\": \"acinetsdk4829.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"name\": \"acinetsdk4829\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:17 GMT" + "Tue, 09 Oct 2018 23:31:48 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:a390505b-afbb-4e70-aabc-6cb703c03d8a" + "westus:387e6a82-9b40-4c14-bc58-ff89b46a5c7d" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14989" + "11998" ], "x-ms-correlation-request-id": [ - "b21b7340-0034-4a20-974c-c2cc16189e39" + "c035d0ef-5c19-4dd7-a9bf-613b945e1360" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212318Z:b21b7340-0034-4a20-974c-c2cc16189e39" + "WESTUS2:20181009T233149Z:c035d0ef-5c19-4dd7-a9bf-613b945e1360" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2230" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk1984\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:31:22Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:19Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:19Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 4ae78ef8a6462b27abbb316f1176ef2870c2464313d7263473408a44d5916111\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:22Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 4ae78ef8a6462b27abbb316f1176ef2870c2464313d7263473408a44d5916111\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:31:37Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:31:37Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.112.198.115\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk1984\",\r\n \"fqdn\": \"acinetsdk1984.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"464aae33-6aed-40ce-a175-96323bbce378\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1984\",\r\n \"name\": \"acinetsdk1984\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg5829?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzU4Mjk/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/aci_rg7814?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlZ3JvdXBzL2FjaV9yZzc4MTQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ], "x-ms-client-request-id": [ - "bf57572b-5899-4e98-9069-18dd9cd2a578" + "b4266072-ba87-4c3a-9d33-03e203b52ac4" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", + "FxVersion/4.6.26614.01", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829\",\r\n \"name\": \"aci_rg5829\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "173" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:18 GMT" + "Tue, 09 Oct 2018 23:31:49 GMT" ], "Pragma": [ "no-cache" @@ -296,281 +284,291 @@ "1197" ], "x-ms-request-id": [ - "af8687d6-2d90-45fd-bd8b-b0627a8b252c" + "c4950a98-167f-4fb5-ada4-2601d706918e" ], "x-ms-correlation-request-id": [ - "af8687d6-2d90-45fd-bd8b-b0627a8b252c" + "c4950a98-167f-4fb5-ada4-2601d706918e" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212319Z:af8687d6-2d90-45fd-bd8b-b0627a8b252c" + "WESTUS2:20181009T233149Z:c4950a98-167f-4fb5-ada4-2601d706918e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814\",\r\n \"name\": \"aci_rg7814\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU4MjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrOTg3MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5484?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzc4MTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQ4ND9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"location\": \"westus\"\r\n}", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5484\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\",\r\n \"secureValue\": \"secretValue1\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5484\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\",\r\n \"workspaceKey\": \"workspacekey\"\r\n }\r\n }\r\n },\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "807" - ], "x-ms-client-request-id": [ - "5e15e6ea-14fb-415f-bdb8-e1cf6ddf77cc" + "c050dc54-1cb5-45f9-a681-c6936f4e8104" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.32.37\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"fqdn\": \"acinetsdk9871.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Pending\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"name\": \"acinetsdk9871\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", - "ResponseHeaders": { - "Content-Length": [ - "784" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ], + "Content-Length": [ + "1382" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:28 GMT" + "Tue, 09 Oct 2018 23:31:56 GMT" ], "Pragma": [ "no-cache" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West US/operations/eaae4f6e-8d5d-4af6-a78d-8b7c5f204b29?api-version=2018-02-01-preview" + "https://management.azure.com/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/9884aa87-3bc8-4b6b-8d99-ae5df139f83a?api-version=2018-06-01" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt5m": [ - "97" + "98" ], "x-ms-ratelimit-remaining-subscription-resource-requests-pt1h": [ - "76" + "68" ], "x-ms-request-id": [ - "westus:eaae4f6e-8d5d-4af6-a78d-8b7c5f204b29" + "westus:9884aa87-3bc8-4b6b-8d99-ae5df139f83a" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], "x-ms-correlation-request-id": [ - "cdfbcde9-ec45-40c0-a39b-6602aa347646" + "0f96bac0-9e67-47e6-ad5f-5a7f80effccd" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212328Z:cdfbcde9-ec45-40c0-a39b-6602aa347646" + "WESTUS2:20181009T233157Z:0f96bac0-9e67-47e6-ad5f-5a7f80effccd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1073" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Pending\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5484\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.42.137\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5484\",\r\n \"fqdn\": \"acinetsdk5484.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"state\": \"Pending\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"5528fd0e-c23b-4d0d-8fe4-5b2f89bbb709\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5484\",\r\n \"name\": \"acinetsdk5484\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/West%20US/operations/eaae4f6e-8d5d-4af6-a78d-8b7c5f204b29?api-version=2018-02-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL1dlc3QlMjBVUy9vcGVyYXRpb25zL2VhYWU0ZjZlLThkNWQtNGFmNi1hNzhkLThiN2M1ZjIwNGIyOT9hcGktdmVyc2lvbj0yMDE4LTAyLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/locations/westus/operations/9884aa87-3bc8-4b6b-8d99-ae5df139f83a?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvbG9jYXRpb25zL3dlc3R1cy9vcGVyYXRpb25zLzk4ODRhYTg3LTNiYzgtNGI2Yi04ZDk5LWFlNWRmMTM5ZjgzYT9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-04-10T21:23:25.0412796Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:58 GMT" + "Tue, 09 Oct 2018 23:32:26 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:4cb947b4-a3f3-4325-ba84-184b6d88784e" + "westus:5a857806-cc42-4469-8186-ff4173e04654" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "11997" ], "x-ms-correlation-request-id": [ - "918a3869-1e2b-4f54-a8aa-d1ce856f6460" + "5e784040-1866-4f88-bba5-2ce9a0983a14" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212358Z:918a3869-1e2b-4f54-a8aa-d1ce856f6460" + "WESTUS2:20181009T233227Z:5e784040-1866-4f88-bba5-2ce9a0983a14" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "1031" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5484\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2018-10-09T23:31:56.3976831Z\",\r\n \"properties\": {\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:01Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:01Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:05Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:05Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 7fa1e91770324928797519419cac073a3b66d52ab7c6d17b04d8bb356051fc74\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 7fa1e91770324928797519419cac073a3b66d52ab7c6d17b04d8bb356051fc74\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzU4MjkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrOTg3MT9hcGktdmVyc2lvbj0yMDE4LTA0LTAx", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5484?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Jlc291cmNlR3JvdXBzL2FjaV9yZzc4MTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db250YWluZXJJbnN0YW5jZS9jb250YWluZXJHcm91cHMvYWNpbmV0c2RrNTQ4ND9hcGktdmVyc2lvbj0yMDE4LTEwLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-04-10T21:23:36Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:33Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:35Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"lastTimestamp\": \"2018-04-10T21:23:36Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id bcd18804bd44411b3060c5fc30608b09d12f20934adce904494993b67b34b343\",\r\n \"type\": \"Normal\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.32.37\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"fqdn\": \"acinetsdk9871.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"name\": \"acinetsdk9871\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:58 GMT" + "Tue, 09 Oct 2018 23:32:26 GMT" ], "Pragma": [ "no-cache" ], - "Transfer-Encoding": [ - "chunked" - ], "Vary": [ - "Accept-Encoding", "Accept-Encoding" ], "x-ms-request-id": [ - "westus:751dc1a9-2d1a-4bbf-ad9e-a8286c4bdb12" + "westus:42a55b37-8c42-4ab7-a6f8-b79569687102" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14987" + "11996" ], "x-ms-correlation-request-id": [ - "514bc76e-f6e2-41ae-8bde-3f5d05e8822d" + "ee5432d7-d089-4103-a858-2bb0a1ca6e76" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212359Z:514bc76e-f6e2-41ae-8bde-3f5d05e8822d" + "WESTUS2:20181009T233227Z:ee5432d7-d089-4103-a858-2bb0a1ca6e76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "2229" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5484\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"instanceView\": {\r\n \"restartCount\": 0,\r\n \"currentState\": {\r\n \"state\": \"Running\",\r\n \"startTime\": \"2018-10-09T23:32:06Z\",\r\n \"detailStatus\": \"\"\r\n },\r\n \"events\": [\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:01Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:01Z\",\r\n \"name\": \"Pulling\",\r\n \"message\": \"pulling image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:05Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:05Z\",\r\n \"name\": \"Pulled\",\r\n \"message\": \"Successfully pulled image \\\"alpine\\\"\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"name\": \"Created\",\r\n \"message\": \"Created container with id 7fa1e91770324928797519419cac073a3b66d52ab7c6d17b04d8bb356051fc74\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 1,\r\n \"firstTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:06Z\",\r\n \"name\": \"Started\",\r\n \"message\": \"Started container with id 7fa1e91770324928797519419cac073a3b66d52ab7c6d17b04d8bb356051fc74\",\r\n \"type\": \"Normal\"\r\n },\r\n {\r\n \"count\": 2,\r\n \"firstTimestamp\": \"2018-10-09T23:32:11Z\",\r\n \"lastTimestamp\": \"2018-10-09T23:32:16Z\",\r\n \"name\": \"Unhealthy\",\r\n \"message\": \"Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory\\n\",\r\n \"type\": \"Warning\"\r\n }\r\n ]\r\n },\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.42.137\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5484\",\r\n \"fqdn\": \"acinetsdk5484.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"instanceView\": {\r\n \"events\": [],\r\n \"state\": \"Running\"\r\n },\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"5528fd0e-c23b-4d0d-8fe4-5b2f89bbb709\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5484\",\r\n \"name\": \"acinetsdk5484\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-04-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvY29udGFpbmVyR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTgtMDQtMDE=", + "RequestUri": "/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/providers/Microsoft.ContainerInstance/containerGroups?api-version=2018-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYWU0M2IxZTMtYzM1ZC00YzhjLWJjMGQtZjE0OGI0YzUyYjc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29udGFpbmVySW5zdGFuY2UvY29udGFpbmVyR3JvdXBzP2FwaS12ZXJzaW9uPTIwMTgtMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a8e3a7d0-9ffa-4622-b2cd-999146637488" + "0476dbb1-4ddd-41d4-bf37-26a3cbcd1982" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/0.0.0.0" + "FxVersion/4.6.26614.01", + "Microsoft.Azure.Management.ContainerInstance.ContainerInstanceManagementClient/1.1.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-test/providers/Microsoft.ContainerInstance/containerGroups/nginx\",\r\n \"name\": \"nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx1\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-test/providers/Microsoft.ContainerInstance/containerGroups/nginx1\",\r\n \"name\": \"nginx1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk4829\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.36.201\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk4829\",\r\n \"fqdn\": \"acinetsdk4829.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3112/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk4829\",\r\n \"name\": \"acinetsdk4829\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk9871\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.32.37\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk9871\",\r\n \"fqdn\": \"acinetsdk9871.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg5829/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk9871\",\r\n \"name\": \"acinetsdk9871\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"mario\",\r\n \"properties\": {\r\n \"image\": \"pengbai/docker-supermario\",\r\n \"ports\": [\r\n {\r\n \"port\": 8080\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8080\r\n }\r\n ],\r\n \"ip\": \"13.91.134.207\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/mario-mar1\",\r\n \"name\": \"mario-mar1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"spawner\",\r\n \"properties\": {\r\n \"image\": \"pskreter/spawner:prod\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/spawner\",\r\n \"name\": \"spawner\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"tingting-8qv6olf\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"asdfas\"\r\n },\r\n {\r\n \"name\": \"DATABASE_URI\",\r\n \"value\": \"mongodb://aciherodemo:6k6pVtPfOSjMAQa9kapRkgxUW2WzC4Cu7418WIhjt6U68XSl7AirrI6j149f4cyo6KjzMo7tXGoa9ED4blQPIw==@aciherodemo.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"tingting-8qv6olf\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.44.46\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/tingting-8qv6olf\",\r\n \"name\": \"tingting-8qv6olf\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"tony-7z18rxh\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"sasdfasdf\"\r\n },\r\n {\r\n \"name\": \"DATABASE_URI\",\r\n \"value\": \"mongodb://aciherodemo:6k6pVtPfOSjMAQa9kapRkgxUW2WzC4Cu7418WIhjt6U68XSl7AirrI6j149f4cyo6KjzMo7tXGoa9ED4blQPIw==@aciherodemo.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"tony-7z18rxh\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.223.157\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/tony-7z18rxh\",\r\n \"name\": \"tony-7z18rxh\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"web-server\",\r\n \"properties\": {\r\n \"image\": \"pskreter/azure-friday-server:prod\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.140.69\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"azure-fridays-aci\",\r\n \"fqdn\": \"azure-fridays-aci.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/web-server\",\r\n \"name\": \"web-server\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"containers\": [\r\n {\r\n \"name\": \"snat\",\r\n \"properties\": {\r\n \"image\": \"microsoft/powershell:nanoserver\",\r\n \"command\": [\r\n \"powershell\",\r\n \"-c\",\r\n \"do { Write-Host waiting...; sleep 3 } until(Test-NetConnection www.google.com -Port 443 | ? { $_.TcpTestSucceeded }); Write-Host NET\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 3.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/c-series-ci-win-snat/providers/Microsoft.ContainerInstance/containerGroups/snat\",\r\n \"name\": \"snat\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest1\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.178.87\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest1\",\r\n \"fqdn\": \"acitest1.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest1\",\r\n \"name\": \"acitest1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"k1\": \"v1\",\r\n \"k2\": \"v2\",\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest2\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.92.154\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest2\",\r\n \"fqdn\": \"acitest2.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest2\",\r\n \"name\": \"acitest2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest3\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.88.183.209\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest3\",\r\n \"fqdn\": \"acitest3.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest3\",\r\n \"name\": \"acitest3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitest4\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.225.150\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitest4\",\r\n \"fqdn\": \"acitest4.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/acitest4\",\r\n \"name\": \"acitest4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"azusage\",\r\n \"properties\": {\r\n \"image\": \"yangl/azure-usage:alpine\",\r\n \"command\": [\r\n \"dotnet\",\r\n \"azusage.dll\",\r\n \"summary\",\r\n \"--output\",\r\n \"table\",\r\n \"--access-token\",\r\n \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyIsImtpZCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNTIyMTkwNzUwLCJuYmYiOjE1MjIxOTA3NTAsImV4cCI6MTUyMjE5NDY1MCwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzLzEzNWE5YmJjLWFkNjAtNDUyYy04ZmZlLTUxOWFhODYyZTg3OS9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiWTJOZ1lEam1PUDNHTmhtRnMvbWYvdmxzeXZtaHlmUEt5dHpLMm1adGJHWDUvRzlIVzV3QSIsImFtciI6WyJyc2EiLCJtZmEiXSwiYXBwaWQiOiJiNjc3YzI5MC1jZjRiLTRhOGUtYTYwZS05MWJhNjUwYTRhYmUiLCJhcHBpZGFjciI6IjIiLCJkZXZpY2VpZCI6IjRiZGNhZmQ2LTZjOTYtNDdhOC1hYzVhLTYxNDYxZGE2NDNlZSIsImVfZXhwIjoyNjI4MDAsImZhbWlseV9uYW1lIjoiTGl1IiwiZ2l2ZW5fbmFtZSI6IkFuZGVycyIsImlwYWRkciI6IjEzMS4xMDcuMTc0LjI2IiwibmFtZSI6IkFuZGVycyBMaXUiLCJvaWQiOiIxMzVhOWJiYy1hZDYwLTQ1MmMtOGZmZS01MTlhYTg2MmU4NzkiLCJvbnByZW1fc2lkIjoiUy0xLTUtMjEtMjEyNzUyMTE4NC0xNjA0MDEyOTIwLTE4ODc5Mjc1MjctODU0MzIwNCIsInB1aWQiOiIxMDAzN0ZGRTgwMUFDOEMxIiwic2NwIjoidXNlcl9pbXBlcnNvbmF0aW9uIiwic3ViIjoiMlhyOGlZc0lBSG9aaTBxeUhMd09IY1h3X1pNQmRWUmVFNDdweGNmSXR0TSIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInVuaXF1ZV9uYW1lIjoieWFuZ2xAbWljcm9zb2Z0LmNvbSIsInVwbiI6InlhbmdsQG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJiNmdrZlB0NEhVaXl3M2hEU1Y0RUFBIiwidmVyIjoiMS4wIn0.sb16LySAboXmTeXrfAQpRlYyuq6H83ygpxvZRRIodx8yHK_Rbb0_qyuVvb_f3RQYlKUw_d3UZDAfSpvukor38jfW5KgQCn2ZSJnOwTxZkkMwK-Oi-fLD9XduHNLIYH_xPwa0F6no1PjtZqnXK1Vd3md0cDf6bMsUilPuBt9j9_5G3gktqd0tY3ukEydBaAR2cn8S-MnFaHniM7ChBodM2ELsgjEAJWMN4g_BIwyEPYG82AKo9NIA0q85lgSpzsjIuISwC21m_BMqN_4hnEC9T_qXk7zQcAzbzVnCvqq2713ekAdcCg1E9CtzykqJy6uAJ7f2DFyn3dXs81Y9J1ln2A\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/azusage\",\r\n \"name\": \"azusage\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"azusage-cs\",\r\n \"properties\": {\r\n \"image\": \"yangl/azure-usage:alpine\",\r\n \"command\": [\r\n \"dotnet\",\r\n \"azusage.dll\",\r\n \"summary\",\r\n \"--output\",\r\n \"table\",\r\n \"--access-token\",\r\n \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyIsImtpZCI6IkZTaW11RnJGTm9DMHNKWEdtdjEzbk5aY2VEYyJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNTIyMTkwNzUwLCJuYmYiOjE1MjIxOTA3NTAsImV4cCI6MTUyMjE5NDY1MCwiX2NsYWltX25hbWVzIjp7Imdyb3VwcyI6InNyYzEifSwiX2NsYWltX3NvdXJjZXMiOnsic3JjMSI6eyJlbmRwb2ludCI6Imh0dHBzOi8vZ3JhcGgud2luZG93cy5uZXQvNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3VzZXJzLzEzNWE5YmJjLWFkNjAtNDUyYy04ZmZlLTUxOWFhODYyZTg3OS9nZXRNZW1iZXJPYmplY3RzIn19LCJhY3IiOiIxIiwiYWlvIjoiWTJOZ1lEam1PUDNHTmhtRnMvbWYvdmxzeXZtaHlmUEt5dHpLMm1adGJHWDUvRzlIVzV3QSIsImFtciI6WyJyc2EiLCJtZmEiXSwiYXBwaWQiOiJiNjc3YzI5MC1jZjRiLTRhOGUtYTYwZS05MWJhNjUwYTRhYmUiLCJhcHBpZGFjciI6IjIiLCJkZXZpY2VpZCI6IjRiZGNhZmQ2LTZjOTYtNDdhOC1hYzVhLTYxNDYxZGE2NDNlZSIsImVfZXhwIjoyNjI4MDAsImZhbWlseV9uYW1lIjoiTGl1IiwiZ2l2ZW5fbmFtZSI6IkFuZGVycyIsImlwYWRkciI6IjEzMS4xMDcuMTc0LjI2IiwibmFtZSI6IkFuZGVycyBMaXUiLCJvaWQiOiIxMzVhOWJiYy1hZDYwLTQ1MmMtOGZmZS01MTlhYTg2MmU4NzkiLCJvbnByZW1fc2lkIjoiUy0xLTUtMjEtMjEyNzUyMTE4NC0xNjA0MDEyOTIwLTE4ODc5Mjc1MjctODU0MzIwNCIsInB1aWQiOiIxMDAzN0ZGRTgwMUFDOEMxIiwic2NwIjoidXNlcl9pbXBlcnNvbmF0aW9uIiwic3ViIjoiMlhyOGlZc0lBSG9aaTBxeUhMd09IY1h3X1pNQmRWUmVFNDdweGNmSXR0TSIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInVuaXF1ZV9uYW1lIjoieWFuZ2xAbWljcm9zb2Z0LmNvbSIsInVwbiI6InlhbmdsQG1pY3Jvc29mdC5jb20iLCJ1dGkiOiJiNmdrZlB0NEhVaXl3M2hEU1Y0RUFBIiwidmVyIjoiMS4wIn0.sb16LySAboXmTeXrfAQpRlYyuq6H83ygpxvZRRIodx8yHK_Rbb0_qyuVvb_f3RQYlKUw_d3UZDAfSpvukor38jfW5KgQCn2ZSJnOwTxZkkMwK-Oi-fLD9XduHNLIYH_xPwa0F6no1PjtZqnXK1Vd3md0cDf6bMsUilPuBt9j9_5G3gktqd0tY3ukEydBaAR2cn8S-MnFaHniM7ChBodM2ELsgjEAJWMN4g_BIwyEPYG82AKo9NIA0q85lgSpzsjIuISwC21m_BMqN_4hnEC9T_qXk7zQcAzbzVnCvqq2713ekAdcCg1E9CtzykqJy6uAJ7f2DFyn3dXs81Y9J1ln2A\",\r\n \"-p\",\r\n \"ACC.*\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/azusage-cs\",\r\n \"name\": \"azusage-cs\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"trypython\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-c\",\r\n \"exec(\\\"print 'xizha'\\\")\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryh2\",\r\n \"name\": \"harryh2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"web-serverul5xox7zouziu\",\r\n \"properties\": {\r\n \"image\": \"hubertsui/web-server\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_SUBSCRIPTION_ID\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_ID\",\r\n \"value\": \"c29a223b-bf6b-4cb7-ad9e-d7ade8b0f92e\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_SECRET\",\r\n \"value\": \"50b82d88-a13d-4edd-bc53-8d68960bde93\"\r\n },\r\n {\r\n \"name\": \"AZURE_TENANT_ID\",\r\n \"value\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n {\r\n \"name\": \"AZURE_RESOURCE_GROUP\",\r\n \"value\": \"eventdrivenaci\"\r\n },\r\n {\r\n \"name\": \"COSMOS_CONNECTION_STRING\",\r\n \"value\": \"mongodb://cosmosdbul5xox7zouziu:UK1D9XbyYywQah11AiL4FnuGUfS8TQYbqai1VPvf6FlUzKBUQihYyDT0L8j1VlI6czn85t8JOErYqSC7snyQeA==@cosmosdbul5xox7zouziu.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_NAMESPACE\",\r\n \"value\": \"servicebusul5xox7zouziu\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_NAME\",\r\n \"value\": \"RootManageSharedAccessKey\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_VALUE\",\r\n \"value\": \"USjvFAfOKliEjgGulxRqXLgGPuO1pKwa9X9QrOo0m9U=\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_CREATE_QUEUE\",\r\n \"value\": \"createqueue\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_DELETE_QUEUE\",\r\n \"value\": \"deletequeue\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.33.233\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"web-serverul5xox7zouziu\",\r\n \"fqdn\": \"web-serverul5xox7zouziu.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/eventdrivenaci/providers/Microsoft.ContainerInstance/containerGroups/web-serverul5xox7zouziu\",\r\n \"name\": \"web-serverul5xox7zouziu\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"fqdn\": \"web-serverul5xox7zouziu.westus.azurecontainer.io\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"mycontainer\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.177.113\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/mycontainer-myc1\",\r\n \"name\": \"mycontainer-myc1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 5\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event1\",\r\n \"name\": \"tilnl_event1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 3600\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event2\",\r\n \"name\": \"tilnl_event2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 3700\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event3\",\r\n \"name\": \"tilnl_event3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"cat /var/log/aci/testfile\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event4\",\r\n \"name\": \"tilnl_event4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event5\",\r\n \"name\": \"tilnl_event5\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"sleep 36000\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event6\",\r\n \"name\": \"tilnl_event6\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 36000\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/tilnl_event7\",\r\n \"name\": \"tilnl_event7\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"certs\",\r\n \"properties\": {\r\n \"image\": \"microsoft/azure-cli\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"az storage share create --name certs\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_STORAGE_KEY\",\r\n \"value\": \"Fi+NDJoxXVv/Vv48g6g0S4FnIK5zidZKctmFQ00MDFqbrBp+vf3Oy87x+06GckN8vAWJHgcDH2RgWXcIKf3Q5g==\"\r\n },\r\n {\r\n \"name\": \"AZURE_STORAGE_ACCOUNT\",\r\n \"value\": \"fuh2mlbdn7mwi\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/requestbin/providers/Microsoft.ContainerInstance/containerGroups/createshare\",\r\n \"name\": \"createshare\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"requestbin\",\r\n \"properties\": {\r\n \"image\": \"wenwu449/requestbin\",\r\n \"ports\": [\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"REDIS_URL\",\r\n \"value\": \"redis://127.0.0.1:6379\"\r\n },\r\n {\r\n \"name\": \"REALM\",\r\n \"value\": \"prod\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.6,\r\n \"cpu\": 0.4\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"redis\",\r\n \"properties\": {\r\n \"image\": \"library/redis\",\r\n \"ports\": [\r\n {\r\n \"port\": 6379\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.6,\r\n \"cpu\": 0.4\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"caddyserver\",\r\n \"properties\": {\r\n \"image\": \"abiosoft/caddy\",\r\n \"command\": [\r\n \"/usr/bin/caddy\",\r\n \"-agree\",\r\n \"-conf\",\r\n \"/tmp/caddyfile\",\r\n \"-log\",\r\n \"stdout\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 443\r\n },\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.3,\r\n \"cpu\": 0.2\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"caddyfile\",\r\n \"mountPath\": \"/tmp\",\r\n \"readOnly\": false\r\n },\r\n {\r\n \"name\": \"certs\",\r\n \"mountPath\": \"/root/.caddy\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"13.91.247.144\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"fuh2mlbdn7mwi\",\r\n \"fqdn\": \"fuh2mlbdn7mwi.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"caddyfile\",\r\n \"secret\": {}\r\n },\r\n {\r\n \"name\": \"certs\",\r\n \"azureFile\": {\r\n \"shareName\": \"certs\",\r\n \"storageAccountName\": \"fuh2mlbdn7mwi\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/requestbin/providers/Microsoft.ContainerInstance/containerGroups/requestbin\",\r\n \"name\": \"requestbin\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"cloudcondfwestcentralus.azurecr.io/nginx:alpine\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {}\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"mountPath\": \"/cache\"\r\n },\r\n {\r\n \"name\": \"default-token-brstn\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"cloudcondfwestcentralus.azurecr.io\",\r\n \"username\": \"cloudcondfwestcentralus\"\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"52.160.43.147\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"emptyDir\": {}\r\n },\r\n {\r\n \"name\": \"default-token-brstn\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks2/providers/Microsoft.ContainerInstance/containerGroups/default-private-nginx\",\r\n \"name\": \"default-private-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-01-26 02:14:12 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aaaaaa-linux\",\r\n \"PodName\": \"private-nginx\",\r\n \"UID\": \"99a68513-023e-11e8-8c6f-0a58ac1f0b92\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"container1\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do true; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"container2\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do true; sleep 5; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/jenna1\",\r\n \"name\": \"jenna1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"sleep 5\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/robbie_westus1\",\r\n \"name\": \"robbie_westus1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"foo\",\r\n \"mountPath\": \"/var/log/aci\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"foo\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.ContainerInstance/containerGroups/robbie_westus2\",\r\n \"name\": \"robbie_westus2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-nginx\",\r\n \"name\": \"sakreter-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testenv2\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"test2\",\r\n \"value\": \"test2\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/testenv2\",\r\n \"name\": \"testenv2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"worker-container\",\r\n \"properties\": {\r\n \"image\": \"pskreter/test\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"KIRIX_WORK\",\r\n \"value\": \"asdfasdf\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/kirix-worker-WodTB2r\",\r\n \"name\": \"kirix-worker-WodTB2r\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizha2portsnew\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8000\r\n }\r\n ],\r\n \"ip\": \"13.93.180.146\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaaci\",\r\n \"fqdn\": \"xizhaaci.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizha2portsnew\",\r\n \"name\": \"xizha2portsnew\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizhadnstest\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.134.159\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhadnstest\",\r\n \"fqdn\": \"xizhadnstest.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaDNStest\",\r\n \"name\": \"xizhaDNStest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"13.88.15.204\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest\",\r\n \"fqdn\": \"xizhaporttest.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest\",\r\n \"name\": \"xizhaporttest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Failed\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"13.88.181.166\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest2\",\r\n \"fqdn\": \"xizhaporttest2.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest2\",\r\n \"name\": \"xizhaporttest2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do echo hello world; sleep 1; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"13.91.124.36\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest3\",\r\n \"fqdn\": \"xizhaporttest3.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest3\",\r\n \"name\": \"xizhaporttest3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizhaclitest\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 2.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8000\r\n }\r\n ],\r\n \"ip\": \"40.86.189.190\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRGWestUS/providers/Microsoft.ContainerInstance/containerGroups/xizhaclitest\",\r\n \"name\": \"xizhaclitest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"webserver\",\r\n \"properties\": {\r\n \"image\": \"nginx:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.93.209.42\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"myacinginx\",\r\n \"fqdn\": \"myacinginx.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/yangltest/providers/Microsoft.ContainerInstance/containerGroups/yangltest\",\r\n \"name\": \"yangltest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.186.87.66\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector/providers/Microsoft.ContainerInstance/containerGroups/nginx\",\r\n \"name\": \"nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"orchestrator\": \"kubernetes\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis\",\r\n \"name\": \"iis\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver\",\r\n \"command\": [\r\n \"powershell.exe\",\r\n \"-Command\",\r\n \"sleep 5; Invoke-WebRequest 216.58.193.68; sleep 60\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis2\",\r\n \"name\": \"iis2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver\",\r\n \"command\": [\r\n \"powershell.exe\",\r\n \"-Command\",\r\n \"sleep 5; Invoke-WebRequest 216.58.193.68; sleep 60\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis3\",\r\n \"name\": \"iis3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/windowsservercore:1709\",\r\n \"command\": [\r\n \"powershell.exe\",\r\n \"-Command\",\r\n \"sleep 6000\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/iis4\",\r\n \"name\": \"iis4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testcommand\",\r\n \"properties\": {\r\n \"image\": \"microsoft/nanoserver:latest\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 2.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/nano\",\r\n \"name\": \"nano\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n },\r\n \"limits\": {}\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"mountPath\": \"/cache\"\r\n },\r\n {\r\n \"name\": \"default-token-9jxn8\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"13.92.214.163\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"cache-volume\",\r\n \"emptyDir\": {}\r\n },\r\n {\r\n \"name\": \"default-token-9jxn8\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks/providers/Microsoft.ContainerInstance/containerGroups/default-nginx\",\r\n \"name\": \"default-nginx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-03-22 17:55:37 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-robbie-conn-linux\",\r\n \"PodName\": \"nginx\",\r\n \"UID\": \"3a0ea6e7-2dfa-11e8-9da2-0a58ac1f1387\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"allen-3ync7\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"asdfas\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"allen-3ync7\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/allen-3ync7\",\r\n \"name\": \"allen-3ync7\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"anders-0n084\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"sfasdf\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"anders-0n084\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/anders-0n084\",\r\n \"name\": \"anders-0n084\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harry-aggx7\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"asdfasdf\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"harry-aggx7\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/harry-aggx7\",\r\n \"name\": \"harry-aggx7\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"tony-haxbo\",\r\n \"properties\": {\r\n \"image\": \"pskreter/worker-container:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"MESSAGE\",\r\n \"value\": \"sdfasd\"\r\n },\r\n {\r\n \"name\": \"CONTAINER_NAME\",\r\n \"value\": \"tony-haxbo\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rg/providers/Microsoft.ContainerInstance/containerGroups/tony-haxbo\",\r\n \"name\": \"tony-haxbo\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"East US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst1\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.151.40.142\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst1\",\r\n \"fqdn\": \"acitst1.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst1\",\r\n \"name\": \"acitst1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst2\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.151.60.183\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst2\",\r\n \"fqdn\": \"acitst2.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst2\",\r\n \"name\": \"acitst2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"trafficGroup\": \"aci-test\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst3\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.151.25.230\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst3\",\r\n \"fqdn\": \"acitst3.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst3\",\r\n \"name\": \"acitst3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acitst4\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.229.56.169\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acitst4\",\r\n \"fqdn\": \"acitst4.westus2.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/acitst4\",\r\n \"name\": \"acitst4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"retst1\",\r\n \"properties\": {\r\n \"image\": \"shou3301/aci-trafficmanager-reconciler:v1\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AAD_APPID\",\r\n \"value\": \"http://accrunner.net\"\r\n },\r\n {\r\n \"name\": \"AAD_APPKEY\",\r\n \"value\": \"HkrEgLQUtE9PAGffDqopE5PXSyOthLqlM+ddqQr274s=\"\r\n },\r\n {\r\n \"name\": \"AAD_TENANT\",\r\n \"value\": \"microsoft.com\"\r\n },\r\n {\r\n \"name\": \"SUBSCRIPTION\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"RESOURCE_GROUP\",\r\n \"value\": \"chshou\"\r\n },\r\n {\r\n \"name\": \"TRAFFIC_MANAGER\",\r\n \"value\": \"aci-test\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/retst1\",\r\n \"name\": \"retst1\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"retst2\",\r\n \"properties\": {\r\n \"image\": \"shou3301/aci-trafficmanager-reconciler:v1\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AAD_APPID\",\r\n \"value\": \"http://accrunner.net\"\r\n },\r\n {\r\n \"name\": \"AAD_APPKEY\",\r\n \"value\": \"HkrEgLQUtE9PAGffDqopE5PXSyOthLqlM+ddqQr274s=\"\r\n },\r\n {\r\n \"name\": \"AAD_TENANT\",\r\n \"value\": \"microsoft.com\"\r\n },\r\n {\r\n \"name\": \"SUBSCRIPTION\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"RESOURCE_GROUP\",\r\n \"value\": \"chshou\"\r\n },\r\n {\r\n \"name\": \"TRAFFIC_MANAGER\",\r\n \"value\": \"aci-test\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/chshou/providers/Microsoft.ContainerInstance/containerGroups/retst2\",\r\n \"name\": \"retst2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"cskenerltst\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/cskenerltst\",\r\n \"name\": \"cskenerltst\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"EastUS2EUAP\"\r\n }\r\n ]\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 10 Apr 2018 21:23:59 GMT" + "Tue, 09 Oct 2018 23:32:28 GMT" ], "Pragma": [ "no-cache" ], - "Vary": [ - "Accept-Encoding" - ], "x-ms-original-request-ids": [ - "westus:15c309d7-4778-408f-88d1-5c9b79b597d6", - "eastus:e6cc8313-f429-4009-874b-ff610ad4647e", - "westus2:b8a0ce97-990c-4376-aea8-bc016e41e4bf", - "eastus2euap:2f95c456-913c-4884-9413-1621c54a33cb" + "westus:615d931e-fd8f-46ae-a057-4c6a879d8704", + "eastus:1847a10b-03a0-4b94-b757-f28f54fa480d", + "westus2:3de1f5c2-f09e-439f-9680-d6fba2551e3f", + "northeurope:e051b44d-3555-47c6-a4c8-d2e212fead34", + "westcentralus:e61d7275-f76e-4606-89d7-140e72b86cca", + "eastus2euap:82b5a752-a8cd-4c1a-a9d3-96c7251ea854" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14986" + "11995" ], "x-ms-request-id": [ - "900ffa6b-c831-41a5-9e6b-d0b3f2b9fd95" + "9adfa73a-cf22-4f96-bc8d-97a6d0a61fb4" ], "x-ms-correlation-request-id": [ - "900ffa6b-c831-41a5-9e6b-d0b3f2b9fd95" + "9adfa73a-cf22-4f96-bc8d-97a6d0a61fb4" ], "x-ms-routing-request-id": [ - "WESTUS2:20180410T212359Z:900ffa6b-c831-41a5-9e6b-d0b3f2b9fd95" + "WESTUS2:20181009T233228Z:9adfa73a-cf22-4f96-bc8d-97a6d0a61fb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Content-Length": [ + "73878" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acidemo\",\r\n \"properties\": {\r\n \"image\": \"hubertsui/web-server\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_SUBSCRIPTION_ID\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_ID\",\r\n \"value\": \"f0cba898-7714-416c-acce-e7353c8f527b\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_SECRET\",\r\n \"value\": \"f561834c-a2ed-47a0-a9e5-931aa524531b\"\r\n },\r\n {\r\n \"name\": \"AZURE_TENANT_ID\",\r\n \"value\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n {\r\n \"name\": \"AZURE_RESOURCE_GROUP\",\r\n \"value\": \"aci-event-driven\"\r\n },\r\n {\r\n \"name\": \"COSMOS_CONNECTION_STRING\",\r\n \"value\": \"mongodb://cosmosdblym6ibx6awcxi:735jvrFxjITIKcg2DFDZjvRTQPRPkagxKqZ64gpLw4NSjbvHHoSqJAD6rp0XU69RDnrIjJnltqjeoh4FkikneQ==@cosmosdblym6ibx6awcxi.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_NAMESPACE\",\r\n \"value\": \"servicebuslym6ibx6awcxi\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_NAME\",\r\n \"value\": \"RootManageSharedAccessKey\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_VALUE\",\r\n \"value\": \"0eFBXbjgXQXsF56gPaZbsjrLjefl7w90FVCTWsun3Hc=\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_CREATE_QUEUE\",\r\n \"value\": \"createqueue\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_DELETE_QUEUE\",\r\n \"value\": \"deletequeue\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.118.205.105\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acidemo\",\r\n \"fqdn\": \"acidemo.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-event-driven/providers/Microsoft.ContainerInstance/containerGroups/acidemo\",\r\n \"name\": \"acidemo\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"fqdn\": \"acidemo.westus.azurecontainer.io\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk1343\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk1343\",\r\n \"fqdn\": \"acinetsdk1343.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg1930/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1343\",\r\n \"name\": \"acinetsdk1343\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5064\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5064\",\r\n \"fqdn\": \"acinetsdk5064.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg2832/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5064\",\r\n \"name\": \"acinetsdk5064\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk7512\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk7512\",\r\n \"fqdn\": \"acinetsdk7512.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg3853/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk7512\",\r\n \"name\": \"acinetsdk7512\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5616\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5616\",\r\n \"fqdn\": \"acinetsdk5616.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg4019/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5616\",\r\n \"name\": \"acinetsdk5616\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk1630\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk1630\",\r\n \"fqdn\": \"acinetsdk1630.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg4895/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1630\",\r\n \"name\": \"acinetsdk1630\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5484\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.42.137\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5484\",\r\n \"fqdn\": \"acinetsdk5484.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"5528fd0e-c23b-4d0d-8fe4-5b2f89bbb709\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg7814/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5484\",\r\n \"name\": \"acinetsdk5484\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5964\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5964\",\r\n \"fqdn\": \"acinetsdk5964.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg835/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5964\",\r\n \"name\": \"acinetsdk5964\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk1984\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.112.198.115\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk1984\",\r\n \"fqdn\": \"acinetsdk1984.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"identity\": {\r\n \"principalId\": \"464aae33-6aed-40ce-a175-96323bbce378\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg8569/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk1984\",\r\n \"name\": \"acinetsdk1984\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk5925\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk5925\",\r\n \"fqdn\": \"acinetsdk5925.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9438/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk5925\",\r\n \"name\": \"acinetsdk5925\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"acinetsdk2159\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"secretEnv\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"livenessProbe\": {\r\n \"exec\": {\r\n \"command\": [\r\n \"cat\",\r\n \"/tmp/healthy\"\r\n ]\r\n },\r\n \"periodSeconds\": 20\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"acinetsdk2159\",\r\n \"fqdn\": \"acinetsdk2159.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"workspaceid\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci_rg9610/providers/Microsoft.ContainerInstance/containerGroups/acinetsdk2159\",\r\n \"name\": \"acinetsdk2159\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"spawner\",\r\n \"properties\": {\r\n \"image\": \"pskreter/spawner:prod\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/spawner\",\r\n \"name\": \"spawner\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"web-server-dns\",\r\n \"properties\": {\r\n \"image\": \"pskreter/web-server:latest\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"13.91.246.133\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"azurefriday\",\r\n \"fqdn\": \"azurefriday.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aciherodemo/providers/Microsoft.ContainerInstance/containerGroups/web-server-dns\",\r\n \"name\": \"web-server-dns\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"socket-server\",\r\n \"properties\": {\r\n \"image\": \"containerinstance/socket-server:20180731\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"port\": 1337\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"socket-client\",\r\n \"properties\": {\r\n \"image\": \"containerinstance/socket-client:20180731\",\r\n \"command\": [],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 1337\r\n }\r\n ],\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryh2\",\r\n \"name\": \"harryh2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harryh4\",\r\n \"properties\": {\r\n \"image\": \"inf4m0us/mypubrepo:nano-game_v1\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"harrygame\",\r\n \"fqdn\": \"harrygame.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryh4\",\r\n \"name\": \"harryh4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harryhtestgame2\",\r\n \"properties\": {\r\n \"image\": \"inf4m0us/mypubrepo:nano-game_v1\",\r\n \"command\": [\r\n \"ping\",\r\n \"127.0.0.1\",\r\n \"-n\",\r\n \"10000\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.112.194.164\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"2048game\",\r\n \"fqdn\": \"2048game.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryhtestgame2\",\r\n \"name\": \"harryhtestgame2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harryhtestgame3\",\r\n \"properties\": {\r\n \"image\": \"containerinstance/test_v1:nanoserver\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.86.223\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryhtestgame3\",\r\n \"name\": \"harryhtestgame3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harryhtestgame4\",\r\n \"properties\": {\r\n \"image\": \"containerinstance/game2048:nanoserver\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.112.134.70\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryhtestgame4\",\r\n \"name\": \"harryhtestgame4\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harryhtestgame5\",\r\n \"properties\": {\r\n \"image\": \"containerinstance/game2048:nanoserver\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"40.78.44.139\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryhtestgame5\",\r\n \"name\": \"harryhtestgame5\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"harryhtestgrame\",\r\n \"properties\": {\r\n \"image\": \"inf4m0us/mypubrepo:nano-game_v1\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Windows\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/harryhtestgrame\",\r\n \"name\": \"harryhtestgrame\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"web-serverul5xox7zouziu\",\r\n \"properties\": {\r\n \"image\": \"hubertsui/web-server\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_SUBSCRIPTION_ID\",\r\n \"value\": \"ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_ID\",\r\n \"value\": \"c29a223b-bf6b-4cb7-ad9e-d7ade8b0f92e\"\r\n },\r\n {\r\n \"name\": \"AZURE_CLIENT_SECRET\",\r\n \"value\": \"50b82d88-a13d-4edd-bc53-8d68960bde93\"\r\n },\r\n {\r\n \"name\": \"AZURE_TENANT_ID\",\r\n \"value\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n {\r\n \"name\": \"AZURE_RESOURCE_GROUP\",\r\n \"value\": \"eventdrivenaci\"\r\n },\r\n {\r\n \"name\": \"COSMOS_CONNECTION_STRING\",\r\n \"value\": \"mongodb://cosmosdbul5xox7zouziu:UK1D9XbyYywQah11AiL4FnuGUfS8TQYbqai1VPvf6FlUzKBUQihYyDT0L8j1VlI6czn85t8JOErYqSC7snyQeA==@cosmosdbul5xox7zouziu.documents.azure.com:10255/?replicaSet=globaldb\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_NAMESPACE\",\r\n \"value\": \"servicebusul5xox7zouziu\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_NAME\",\r\n \"value\": \"RootManageSharedAccessKey\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_SASKEY_VALUE\",\r\n \"value\": \"USjvFAfOKliEjgGulxRqXLgGPuO1pKwa9X9QrOo0m9U=\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_CREATE_QUEUE\",\r\n \"value\": \"createqueue\"\r\n },\r\n {\r\n \"name\": \"SERVICE_BUS_DELETE_QUEUE\",\r\n \"value\": \"deletequeue\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"104.42.72.246\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"web-serverul5xox7zouziu\",\r\n \"fqdn\": \"web-serverul5xox7zouziu.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/eventdrivenaci/providers/Microsoft.ContainerInstance/containerGroups/web-serverul5xox7zouziu\",\r\n \"name\": \"web-serverul5xox7zouziu\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"fqdn\": \"web-serverul5xox7zouziu.westus.azurecontainer.io\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"certs\",\r\n \"properties\": {\r\n \"image\": \"microsoft/azure-cli\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"az storage share create --name certs\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"AZURE_STORAGE_KEY\",\r\n \"value\": \"Fi+NDJoxXVv/Vv48g6g0S4FnIK5zidZKctmFQ00MDFqbrBp+vf3Oy87x+06GckN8vAWJHgcDH2RgWXcIKf3Q5g==\"\r\n },\r\n {\r\n \"name\": \"AZURE_STORAGE_ACCOUNT\",\r\n \"value\": \"fuh2mlbdn7mwi\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/requestbin/providers/Microsoft.ContainerInstance/containerGroups/createshare\",\r\n \"name\": \"createshare\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"requestbin\",\r\n \"properties\": {\r\n \"image\": \"wenwu449/requestbin\",\r\n \"ports\": [\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"REDIS_URL\",\r\n \"value\": \"redis://127.0.0.1:6379\"\r\n },\r\n {\r\n \"name\": \"REALM\",\r\n \"value\": \"prod\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.6,\r\n \"cpu\": 0.4\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"redis\",\r\n \"properties\": {\r\n \"image\": \"library/redis\",\r\n \"ports\": [\r\n {\r\n \"port\": 6379\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.6,\r\n \"cpu\": 0.4\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"caddyserver\",\r\n \"properties\": {\r\n \"image\": \"abiosoft/caddy\",\r\n \"command\": [\r\n \"/usr/bin/caddy\",\r\n \"-agree\",\r\n \"-conf\",\r\n \"/tmp/caddyfile\",\r\n \"-log\",\r\n \"stdout\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 443\r\n },\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.3,\r\n \"cpu\": 0.2\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"caddyfile\",\r\n \"mountPath\": \"/tmp\",\r\n \"readOnly\": false\r\n },\r\n {\r\n \"name\": \"certs\",\r\n \"mountPath\": \"/root/.caddy\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"13.91.247.144\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"fuh2mlbdn7mwi\",\r\n \"fqdn\": \"fuh2mlbdn7mwi.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"caddyfile\",\r\n \"secret\": {}\r\n },\r\n {\r\n \"name\": \"certs\",\r\n \"azureFile\": {\r\n \"shareName\": \"certs\",\r\n \"storageAccountName\": \"fuh2mlbdn7mwi\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/requestbin/providers/Microsoft.ContainerInstance/containerGroups/requestbin\",\r\n \"name\": \"requestbin\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"created-by\": \"wenwu\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"robbieomstest\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.6\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"echo Start: `date`; sleep 10; a=12345678; a=$a-$a; while true; do echo Running: `date`-$a; sleep 1; done; echo Complete: `date`\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"osType\": \"Linux\",\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbiearmtemplate/providers/Microsoft.ContainerInstance/containerGroups/robbieomstest\",\r\n \"name\": \"robbieomstest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"hidden-link:/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbietestrg/providers/Microsoft.OperationalInsights/workspaces/aci-oms-integration\": \"Resource\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-lrp\",\r\n \"properties\": {\r\n \"image\": \"ubuntu\",\r\n \"command\": [\r\n \"tail\",\r\n \"-f\",\r\n \"/dev/null\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-lrp\",\r\n \"name\": \"sakreter-lrp\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-msi\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"principalId\": \"ee60b8a9-3beb-4218-87bc-9632167050c1\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-msi\",\r\n \"name\": \"sakreter-msi\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-msi2\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/sakreter-msitest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sakreter-msitest\": {\r\n \"principalId\": \"2c27e03e-f3d8-4b09-ac64-d7ee07ba75cf\",\r\n \"clientId\": \"7e650c5d-e1b4-4905-831b-02ee17215569\"\r\n }\r\n },\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"UserAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-msi2\",\r\n \"name\": \"sakreter-msi2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-msi2018\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"principalId\": \"8fd0fd33-481d-4ffd-a314-e5ab35e7885d\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-msi2018\",\r\n \"name\": \"sakreter-msi2018\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-msi20181\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/sakreter-msitest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sakreter-msitest\": {\r\n \"principalId\": \"2c27e03e-f3d8-4b09-ac64-d7ee07ba75cf\",\r\n \"clientId\": \"7e650c5d-e1b4-4905-831b-02ee17215569\"\r\n }\r\n },\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"UserAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-msi20181\",\r\n \"name\": \"sakreter-msi20181\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-msi201812\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/sakreter-msitest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sakreter-msitest\": {\r\n \"principalId\": \"2c27e03e-f3d8-4b09-ac64-d7ee07ba75cf\",\r\n \"clientId\": \"7e650c5d-e1b4-4905-831b-02ee17215569\"\r\n }\r\n },\r\n \"principalId\": \"3a571019-2d8f-4c39-804a-6cec7a0be8f2\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned, UserAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-msi201812\",\r\n \"name\": \"sakreter-msi201812\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-msi3\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourcegroups/sakreter-msitest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sakreter-msitest\": {\r\n \"principalId\": \"2c27e03e-f3d8-4b09-ac64-d7ee07ba75cf\",\r\n \"clientId\": \"7e650c5d-e1b4-4905-831b-02ee17215569\"\r\n }\r\n },\r\n \"principalId\": \"936f4f7e-8602-4799-89a8-12844d965633\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned, UserAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-msi3\",\r\n \"name\": \"sakreter-msi3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-nginx2\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"sakreter-nginx1\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-nginx2\",\r\n \"name\": \"sakreter-nginx2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-rgdiff\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.0.4.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-vnettest/providers/Microsoft.Network/networkProfiles/aci-network-profile-vnettest4-default2\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-rgdiff\",\r\n \"name\": \"sakreter-rgdiff\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-rgdiff2\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.0.4.5\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-vnettest/providers/Microsoft.Network/networkProfiles/aci-network-profile-vnettest4-default2\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-rgdiff2\",\r\n \"name\": \"sakreter-rgdiff2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-rgdiff23\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.0.0.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-vnettest/providers/Microsoft.Network/networkProfiles/aci-network-profile-vnettest4-default3\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-rgdiff23\",\r\n \"name\": \"sakreter-rgdiff23\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-testmem\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-testmem\",\r\n \"name\": \"sakreter-testmem\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-ubuntu\",\r\n \"properties\": {\r\n \"image\": \"ubuntu\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-ubuntu\",\r\n \"name\": \"sakreter-ubuntu\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"ubuntu\",\r\n \"properties\": {\r\n \"image\": \"certbot/certbot\",\r\n \"command\": [\r\n \"certonly --debug --standalone -d testslubuntu.eastus.azurecontainer.io -m shuanglu1993@foxmail.com\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"40.78.42.33\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/testlogfail\",\r\n \"name\": \"testlogfail\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"ubuntu\",\r\n \"properties\": {\r\n \"image\": \"certbot/certbot\",\r\n \"command\": [\r\n \"certbot\",\r\n \"certonly\",\r\n \"--debug\",\r\n \"--standalone\",\r\n \"-d testslubuntu.eastus.azurecontainer.io\",\r\n \"-m shuanglu1993@foxmail.com\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 443\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 443\r\n }\r\n ],\r\n \"ip\": \"40.118.202.123\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/testSLACI\",\r\n \"name\": \"testSLACI\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"dockerhub-watcher\",\r\n \"properties\": {\r\n \"image\": \"pskreter/dockerhub-watcher:stable\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"CONFIG_PATH\",\r\n \"value\": \"/config/vsts.config.dev.json\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"config\",\r\n \"mountPath\": \"/config\",\r\n \"readOnly\": false\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"config\",\r\n \"azureFile\": {\r\n \"shareName\": \"dockerhubwatcher\",\r\n \"readOnly\": false,\r\n \"storageAccountName\": \"dockerhubwatcher\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-dockerhub-watcher/providers/Microsoft.ContainerInstance/containerGroups/dockerhub-watcher-2018-05-27T22:34:57.0978578Z\",\r\n \"name\": \"dockerhub-watcher-2018-05-27T22:34:57.0978578Z\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"west us\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"dockerhub-watcher\",\r\n \"properties\": {\r\n \"image\": \"pskreter/dockerhub-watcher:stable\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"CONFIG_PATH\",\r\n \"value\": \"/config/vsts.config.dev.json\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"config\",\r\n \"mountPath\": \"/config\",\r\n \"readOnly\": false\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"config\",\r\n \"azureFile\": {\r\n \"shareName\": \"dockerhubwatcher\",\r\n \"readOnly\": false,\r\n \"storageAccountName\": \"dockerhubwatcher\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-dockerhub-watcher/providers/Microsoft.ContainerInstance/containerGroups/dockerhub-watcher-2018-06-18T17:37:50.5584444Z\",\r\n \"name\": \"dockerhub-watcher-2018-06-18T17:37:50.5584444Z\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"west us\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"dockerhub-watcher\",\r\n \"properties\": {\r\n \"image\": \"pskreter/dockerhub-watcher:stable\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"CONFIG_PATH\",\r\n \"value\": \"/config/vsts.config.dev.json\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"config\",\r\n \"mountPath\": \"/config\",\r\n \"readOnly\": false\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"config\",\r\n \"azureFile\": {\r\n \"shareName\": \"dockerhubwatcher\",\r\n \"readOnly\": false,\r\n \"storageAccountName\": \"dockerhubwatcher\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-dockerhub-watcher/providers/Microsoft.ContainerInstance/containerGroups/dockerhub-watcher-2018-07-08T00:40:10.1842594Z\",\r\n \"name\": \"dockerhub-watcher-2018-07-08T00:40:10.1842594Z\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"west us\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"dockerhub-watcher\",\r\n \"properties\": {\r\n \"image\": \"pskreter/dockerhub-watcher:1.0.0\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"CONFIG_PATH\",\r\n \"value\": \"/config/vsts.config.dev.json\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"config\",\r\n \"mountPath\": \"/config\",\r\n \"readOnly\": false\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"config\",\r\n \"azureFile\": {\r\n \"shareName\": \"dockerhubwatcher\",\r\n \"readOnly\": false,\r\n \"storageAccountName\": \"dockerhubwatcher\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-dockerhub-watcher/providers/Microsoft.ContainerInstance/containerGroups/dockerhub-watcher-2018-09-12T19:47:39.3217406Z\",\r\n \"name\": \"dockerhub-watcher-2018-09-12T19:47:39.3217406Z\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"west us\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"dockerhub-watcher\",\r\n \"properties\": {\r\n \"image\": \"pskreter/dockerhub-watcher:2.1.0\",\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"CONFIG_PATH\",\r\n \"value\": \"/config/vsts.config.dev.json\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"config\",\r\n \"mountPath\": \"/config\",\r\n \"readOnly\": false\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"config\",\r\n \"azureFile\": {\r\n \"shareName\": \"dockerhubwatcher\",\r\n \"readOnly\": false,\r\n \"storageAccountName\": \"dockerhubwatcher\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-dockerhub-watcher/providers/Microsoft.ContainerInstance/containerGroups/dockerhub-watcher-2018-10-02T14:34:44.5895118Z\",\r\n \"name\": \"dockerhub-watcher-2018-10-02T14:34:44.5895118Z\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"west us\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"vstspr\",\r\n \"properties\": {\r\n \"image\": \"vstspr.azurecr.io/vsts-pr\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"if [[ ! -d /var/pr/logs/2018-09 ]]; then mkdir /var/pr/logs/2018-09; fi && if [[ ! -d /var/pr/logs/2018-09/2018-09-24 ]]; then mkdir /var/pr/logs/2018-09/2018-09-24; fi && export LOG_PATH=/var/pr/logs/2018-09/2018-09-24/log-2018-09-24T02-48-19-2100870Z && ./vsts-pr\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"PR_CONTENT\",\r\n \"value\": \"QAZzdHJpbmcIM2h0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vMjAwMy8xMC9TZXJpYWxpemF0aW9uL5poHXsiaWQiOiJmZTliNDc4Ny0zYzQzLTRlOTEtOWI0Yy0yMWYwYWJmOTIyNDYiLCJldmVudFR5cGUiOiJnaXQucHVsbHJlcXVlc3QudXBkYXRlZCIsInB1Ymxpc2hlcklkIjoidGZzIiwibWVzc2FnZSI6eyJ0ZXh0IjoiU2FtdWVsIEtyZXRlciB1cGRhdGVkIHRoZSBzb3VyY2UgYnJhbmNoIG9mIHB1bGwgcmVxdWVzdCAxMTEwMTE4IChSZXZlcnRpbmcgVksgSW1hZ2UgQ2FjaGluZyB0byBSZXBhaXIgTm9kZXMpIGluIGNvbXB1dGUtQ2xvdWRTaGVsbFxyXG5odHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9PbmUvX2dpdC9jb21wdXRlLUNsb3VkU2hlbGwvIiwiaHRtbCI6IlNhbXVlbCBLcmV0ZXIgdXBkYXRlZCB0aGUgc291cmNlIGJyYW5jaCBvZiA8YSBocmVmPVwiaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vT25lL19naXQvY29tcHV0ZS1DbG91ZFNoZWxsL3B1bGxyZXF1ZXN0LzExMTAxMThcIj5wdWxsIHJlcXVlc3QgMTExMDExODwvYT4gKFJldmVydGluZyBWSyBJbWFnZSBDYWNoaW5nIHRvIFJlcGFpciBOb2RlcykgaW4gPGEgaHJlZj1cImh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL09uZS9fZ2l0L2NvbXB1dGUtQ2xvdWRTaGVsbC9cIj5jb21wdXRlLUNsb3VkU2hlbGw8L2E+IiwibWFya2Rvd24iOiJTYW11ZWwgS3JldGVyIHVwZGF0ZWQgdGhlIHNvdXJjZSBicmFuY2ggb2YgW3B1bGwgcmVxdWVzdCAxMTEwMTE4XShodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9PbmUvX2dpdC9jb21wdXRlLUNsb3VkU2hlbGwvcHVsbHJlcXVlc3QvMTExMDExOCkgKFJldmVydGluZyBWSyBJbWFnZSBDYWNoaW5nIHRvIFJlcGFpciBOb2RlcykgaW4gW2NvbXB1dGUtQ2xvdWRTaGVsbF0oaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vT25lL19naXQvY29tcHV0ZS1DbG91ZFNoZWxsLykifSwiZGV0YWlsZWRNZXNzYWdlIjp7InRleHQiOiJTYW11ZWwgS3JldGVyIHVwZGF0ZWQgdGhlIHNvdXJjZSBicmFuY2ggb2YgcHVsbCByZXF1ZXN0IDExMTAxMTggKFJldmVydGluZyBWSyBJbWFnZSBDYWNoaW5nIHRvIFJlcGFpciBOb2RlcykgaW4gY29tcHV0ZS1DbG91ZFNoZWxsXHJcbmh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL09uZS9fZ2l0L2NvbXB1dGUtQ2xvdWRTaGVsbC9cclxuIC0gcmV2ZXJ0aW5nIHZrIGltYWdlIGNhY2hpbmdcclxyXG5cclxuXHJcbiIsImh0bWwiOiJTYW11ZWwgS3JldGVyIHVwZGF0ZWQgdGhlIHNvdXJjZSBicmFuY2ggb2YgPGEgaHJlZj1cImh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL09uZS9fZ2l0L2NvbXB1dGUtQ2xvdWRTaGVsbC9wdWxscmVxdWVzdC8xMTEwMTE4XCI+cHVsbCByZXF1ZXN0IDExMTAxMTg8L2E+IChSZXZlcnRpbmcgVksgSW1hZ2UgQ2FjaGluZyB0byBSZXBhaXIgTm9kZXMpIGluIDxhIGhyZWY9XCJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9PbmUvX2dpdC9jb21wdXRlLUNsb3VkU2hlbGwvXCI+Y29tcHV0ZS1DbG91ZFNoZWxsPC9hPjxwPiAtIHJldmVydGluZyB2ayBpbWFnZSBjYWNoaW5nXHI8L3A+PHA+PC9wPiIsIm1hcmtkb3duIjoiU2FtdWVsIEtyZXRlciB1cGRhdGVkIHRoZSBzb3VyY2UgYnJhbmNoIG9mIFtwdWxsIHJlcXVlc3QgMTExMDExOF0oaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vT25lL19naXQvY29tcHV0ZS1DbG91ZFNoZWxsL3B1bGxyZXF1ZXN0LzExMTAxMTgpIChSZXZlcnRpbmcgVksgSW1hZ2UgQ2FjaGluZyB0byBSZXBhaXIgTm9kZXMpIGluIFtjb21wdXRlLUNsb3VkU2hlbGxdKGh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL09uZS9fZ2l0L2NvbXB1dGUtQ2xvdWRTaGVsbC8pXHJcbiAtIHJldmVydGluZyB2ayBpbWFnZSBjYWNoaW5nXHJcclxuXHJcblxyXG4ifSwicmVzb3VyY2UiOnsicmVwb3NpdG9yeSI6eyJpZCI6ImJjYTdiMDFhLTJmOTgtNDkwMi1hZDAyLWUwZmQ4MWE4MmVhMSIsIm5hbWUiOiJjb21wdXRlLUNsb3VkU2hlbGwiLCJ1cmwiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9iMzJhYTcxZS04ZWQyLTQxYjItOWQ3Ny01YmMyNjEyMjIwMDQvX2FwaXMvZ2l0L3JlcG9zaXRvcmllcy9iY2E3YjAxYS0yZjk4LTQ5MDItYWQwMi1lMGZkODFhODJlYTEiLCJwcm9qZWN0Ijp7ImlkIjoiYjMyYWE3MWUtOGVkMi00MWIyLTlkNzctNWJjMjYxMjIyMDA0IiwibmFtZSI6Ik9uZSIsImRlc2NyaXB0aW9uIjoiTVNBenVyZS9PbmUgaXMgdGhlIFZTVFMgcHJvamVjdCBjb250YWluaW5nIGFsbCBBenVyZSB0ZWFtIGNvZGUgYmFzZXMgYW5kIHdvcmsgaXRlbXMiLCJ1cmwiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9fYXBpcy9wcm9qZWN0cy9iMzJhYTcxZS04ZWQyLTQxYjItOWQ3Ny01YmMyNjEyMjIwMDQiLCJzdGF0ZSI6IndlbGxGb3JtZWQiLCJyZXZpc2lvbiI6MjkxNjQxLCJ2aXNpYmlsaXR5Ijoib3JnYW5pemF0aW9uIn0sInNpemUiOjIwODA1MDI2OSwicmVtb3RlVXJsIjoiaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vRGVmYXVsdENvbGxlY3Rpb24vT25lL19naXQvY29tcHV0ZS1DbG91ZFNoZWxsIiwic3NoVXJsIjoibXNhenVyZUB2cy1zc2gudmlzdWFsc3R1ZGlvLmNvbTp2My9tc2F6dXJlL09uZS9jb21wdXRlLUNsb3VkU2hlbGwifSwicHVsbFJlcXVlc3RJZCI6MTExMDExOCwiY29kZVJldmlld0lkIjoxMjg4NjQ0LCJzdGF0dXMiOiJhY3RpdmUiLCJjcmVhdGVkQnkiOnsiZGlzcGxheU5hbWUiOiJTYW11ZWwgS3JldGVyIiwidXJsIjoiaHR0cHM6Ly92c3Nwcy5kZXYuYXp1cmUuY29tL2UvTWljcm9zb2Z0L19hcGlzL0lkZW50aXRpZXMvM2E4ODNlMzgtZDBhZC02MmU1LWFmZjItZTMwZGNhMGRiNTdlIiwiX2xpbmtzIjp7ImF2YXRhciI6eyJocmVmIjoiaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vX2FwaXMvR3JhcGhQcm9maWxlL01lbWJlckF2YXRhcnMvYWFkLk0yRTRPRE5sTXpndFpEQmhaQzAzTW1VMUxXRm1aakl0WlRNd1pHTmhNR1JpTlRkbCJ9fSwiaWQiOiIzYTg4M2UzOC1kMGFkLTYyZTUtYWZmMi1lMzBkY2EwZGI1N2UiLCJ1bmlxdWVOYW1lIjoic2FrcmV0ZXJAbWljcm9zb2Z0LmNvbSIsImltYWdlVXJsIjoiaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vX2FwaS9fY29tbW9uL2lkZW50aXR5SW1hZ2U/aWQ9M2E4ODNlMzgtZDBhZC02MmU1LWFmZjItZTMwZGNhMGRiNTdlIiwiZGVzY3JpcHRvciI6ImFhZC5NMkU0T0RObE16Z3RaREJoWkMwM01tVTFMV0ZtWmpJdFpUTXdaR05oTUdSaU5UZGwifSwiY3JlYXRpb25EYXRlIjoiMjAxOC0wOS0yNFQwMjoxMzozMS45MDgyODAzWiIsInRpdGxlIjoiUmV2ZXJ0aW5nIFZLIEltYWdlIENhY2hpbmcgdG8gUmVwYWlyIE5vZGVzIiwiZGVzY3JpcHRpb24iOiIgLSByZXZlcnRpbmcgdmsgaW1hZ2UgY2FjaGluZ1xyXG4iLCJzb3VyY2VSZWZOYW1lIjoicmVmcy9oZWFkcy96enpfcHVsbHJlcXVlc3RfdGVtcC9zYWtyZXRlci9tYXN0ZXIiLCJ0YXJnZXRSZWZOYW1lIjoicmVmcy9oZWFkcy9tYXN0ZXIiLCJtZXJnZVN0YXR1cyI6InN1Y2NlZWRlZCIsIm1lcmdlSWQiOiJhZDJhMWVjZS1lMDljLTRjMzgtYWVjMC1hYjZmNTY2Y2ZhNmIiLCJsYXN0TWVyZ2VTb3VyY2VDb21taXQiOnsiY29tbWl0SWQiOiJkZDJlNDJhNzEzNzNkNGUwOTI4OWNkMTI2OTVmM2MxNTVhODI4MmZkIiwidXJsIjoiaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vYjMyYWE3MWUtOGVkMi00MWIyLTlkNzctNWJjMjYxMjIyMDA0L19hcGlzL2dpdC9yZXBvc2l0b3JpZXMvYmNhN2IwMWEtMmY5OC00OTAyLWFkMDItZTBmZDgxYTgyZWExL2NvbW1pdHMvZGQyZTQyYTcxMzczZDRlMDkyODljZDEyNjk1ZjNjMTU1YTgyODJmZCJ9LCJsYXN0TWVyZ2VUYXJnZXRDb21taXQiOnsiY29tbWl0SWQiOiI2NGFkZmFkODgzZDFlMjExYWJiYWFlY2Q3ZWMyNmQ0ZGU4YjYxNTEwIiwidXJsIjoiaHR0cHM6Ly9tc2F6dXJlLnZpc3VhbHN0dWRpby5jb20vYjMyYWE3MWUtOGVkMi00MWIyLTlkNzctNWJjMjYxMjIyMDA0L19hcGlzL2dpdC9yZXBvc2l0b3JpZXMvYmNhN2IwMWEtMmY5OC00OTAyLWFkMDItZTBmZDgxYTgyZWExL2NvbW1pdHMvNjRhZGZhZDg4M2QxZTIxMWFiYmFhZWNkN2VjMjZkNGRlOGI2MTUxMCJ9LCJsYXN0TWVyZ2VDb21taXQiOnsiY29tbWl0SWQiOiJiYjc2OGJjMzY4MGQ1NDYwMGU3MGYxNGJhNjA0YTZmZDdmMzgyYmVmIiwiYXV0aG9yIjp7Im5hbWUiOiJTYW11ZWwgS3JldGVyIiwiZW1haWwiOiJzYWtyZXRlckBtaWNyb3NvZnQuY29tIiwiZGF0ZSI6IjIwMTgtMDktMjRUMDI6NDE6MDJaIn0sImNvbW1pdHRlciI6eyJuYW1lIjoiU2FtdWVsIEtyZXRlciIsImVtYWlsIjoic2FrcmV0ZXJAbWljcm9zb2Z0LmNvbSIsImRhdGUiOiIyMDE4LTA5LTI0VDAyOjQxOjAyWiJ9LCJjb21tZW50IjoiTWVyZ2UgcHVsbCByZXF1ZXN0IDExMTAxMTggZnJvbSB6enpfcHVsbHJlcXVlc3RfdGVtcC9zYWtyZXRlci9tYXN0ZXIgaW50byBtYXN0ZXIiLCJ1cmwiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9iMzJhYTcxZS04ZWQyLTQxYjItOWQ3Ny01YmMyNjEyMjIwMDQvX2FwaXMvZ2l0L3JlcG9zaXRvcmllcy9iY2E3YjAxYS0yZjk4LTQ5MDItYWQwMi1lMGZkODFhODJlYTEvY29tbWl0cy9iYjc2OGJjMzY4MGQ1NDYwMGU3MGYxNGJhNjA0YTZmZDdmMzgyYmVmIn0sInJldmlld2VycyI6W3sicmV2aWV3ZXJVcmwiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9iMzJhYTcxZS04ZWQyLTQxYjItOWQ3Ny01YmMyNjEyMjIwMDQvX2FwaXMvZ2l0L3JlcG9zaXRvcmllcy9iY2E3YjAxYS0yZjk4LTQ5MDItYWQwMi1lMGZkODFhODJlYTEvcHVsbFJlcXVlc3RzLzExMTAxMTgvcmV2aWV3ZXJzLzk3OTk0OTZhLTc0NDItNDQ4NC05NTQ2LTVkMmUwNTMwZTJhYSIsInZvdGUiOjAsImRpc3BsYXlOYW1lIjoiW09uZV1cXEF6dXJlLUNsb3VkU2hlbGwiLCJ1cmwiOiJodHRwczovL3Zzc3BzLmRldi5henVyZS5jb20vZS9NaWNyb3NvZnQvX2FwaXMvSWRlbnRpdGllcy85Nzk5NDk2YS03NDQyLTQ0ODQtOTU0Ni01ZDJlMDUzMGUyYWEiLCJfbGlua3MiOnsiYXZhdGFyIjp7ImhyZWYiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9fYXBpcy9HcmFwaFByb2ZpbGUvTWVtYmVyQXZhdGFycy92c3NncC5VeTB4TFRrdE1UVTFNVE0zTkRJME5TMDFNVFF5TnpFNU1qTXRNelV6TWpVMk56RXdOUzB5TmpReE9EUTFNVGcyTFRFMk1qazJNall6TnpJdE1TMHpPREEzTURrd09UWTFMVE14TkRZM01qa3lPVE10TWpZM01UQTVOakExTUMwek1UUTVOREk1TVRRMCJ9fSwiaWQiOiI5Nzk5NDk2YS03NDQyLTQ0ODQtOTU0Ni01ZDJlMDUzMGUyYWEiLCJ1bmlxdWVOYW1lIjoidnN0ZnM6Ly8vQ2xhc3NpZmljYXRpb24vVGVhbVByb2plY3QvYjMyYWE3MWUtOGVkMi00MWIyLTlkNzctNWJjMjYxMjIyMDA0XFxBenVyZS1DbG91ZFNoZWxsIiwiaW1hZ2VVcmwiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9fYXBpL19jb21tb24vaWRlbnRpdHlJbWFnZT9pZD05Nzk5NDk2YS03NDQyLTQ0ODQtOTU0Ni01ZDJlMDUzMGUyYWEiLCJpc0NvbnRhaW5lciI6dHJ1ZX0seyJyZXZpZXdlclVybCI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNC9fYXBpcy9naXQvcmVwb3NpdG9yaWVzL2JjYTdiMDFhLTJmOTgtNDkwMi1hZDAyLWUwZmQ4MWE4MmVhMS9wdWxsUmVxdWVzdHMvMTExMDExOC9yZXZpZXdlcnMvZmFiMjkzYTItNzE1Yy00YzA4LWJkNjgtYjRjOWY1YmJkNjQ1Iiwidm90ZSI6MCwiaXNSZXF1aXJlZCI6dHJ1ZSwiZGlzcGxheU5hbWUiOiJbT25lXVxcQXp1cmUtQ2xvdWRTaGVsbC1QUiIsInVybCI6Imh0dHBzOi8vdnNzcHMuZGV2LmF6dXJlLmNvbS9lL01pY3Jvc29mdC9fYXBpcy9JZGVudGl0aWVzL2ZhYjI5M2EyLTcxNWMtNGMwOC1iZDY4LWI0YzlmNWJiZDY0NSIsIl9saW5rcyI6eyJhdmF0YXIiOnsiaHJlZiI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL19hcGlzL0dyYXBoUHJvZmlsZS9NZW1iZXJBdmF0YXJzL3Zzc2dwLlV5MHhMVGt0TVRVMU1UTTNOREkwTlMwMU1UUXlOekU1TWpNdE16VXpNalUyTnpFd05TMHlOalF4T0RRMU1UZzJMVEUyTWprMk1qWXpOekl0TVMweE16ZzROekF3TVRNeUxURTVOVGt6TlRNeE5USXRNekUyTXpRNU9UQXhOeTB5TnpZek1EVXdOakV4In19LCJpZCI6ImZhYjI5M2EyLTcxNWMtNGMwOC1iZDY4LWI0YzlmNWJiZDY0NSIsInVuaXF1ZU5hbWUiOiJ2c3RmczovLy9DbGFzc2lmaWNhdGlvbi9UZWFtUHJvamVjdC9iMzJhYTcxZS04ZWQyLTQxYjItOWQ3Ny01YmMyNjEyMjIwMDRcXEF6dXJlLUNsb3VkU2hlbGwtUFIiLCJpbWFnZVVybCI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL19hcGkvX2NvbW1vbi9pZGVudGl0eUltYWdlP2lkPWZhYjI5M2EyLTcxNWMtNGMwOC1iZDY4LWI0YzlmNWJiZDY0NSIsImlzQ29udGFpbmVyIjp0cnVlfV0sInVybCI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNC9fYXBpcy9naXQvcmVwb3NpdG9yaWVzL2JjYTdiMDFhLTJmOTgtNDkwMi1hZDAyLWUwZmQ4MWE4MmVhMS9wdWxsUmVxdWVzdHMvMTExMDExOCIsIl9saW5rcyI6eyJ3ZWIiOnsiaHJlZiI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tL09uZS9fZ2l0L2NvbXB1dGUtQ2xvdWRTaGVsbC9wdWxscmVxdWVzdC8xMTEwMTE4In0sInN0YXR1c2VzIjp7ImhyZWYiOiJodHRwczovL21zYXp1cmUudmlzdWFsc3R1ZGlvLmNvbS9iMzJhYTcxZS04ZWQyLTQxYjItOWQ3Ny01YmMyNjEyMjIwMDQvX2FwaXMvZ2l0L3JlcG9zaXRvcmllcy9iY2E3YjAxYS0yZjk4LTQ5MDItYWQwMi1lMGZkODFhODJlYTEvcHVsbFJlcXVlc3RzLzExMTAxMTgvc3RhdHVzZXMifX0sInN1cHBvcnRzSXRlcmF0aW9ucyI6dHJ1ZSwiYXJ0aWZhY3RJZCI6InZzdGZzOi8vL0dpdC9QdWxsUmVxdWVzdElkL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNCUyZmJjYTdiMDFhLTJmOTgtNDkwMi1hZDAyLWUwZmQ4MWE4MmVhMSUyZjExMTAxMTgifSwicmVzb3VyY2VWZXJzaW9uIjoiMS4wLXByZXZpZXcuMSIsInJlc291cmNlQ29udGFpbmVycyI6eyJjb2xsZWN0aW9uIjp7ImlkIjoiNDFiZjU0ODYtNzM5Mi00YjdhLWE3ZTMtYTczNWM3NjdlM2IzIiwiYmFzZVVybCI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tLyJ9LCJhY2NvdW50Ijp7ImlkIjoiYjk2MmVkNGYtNjY3MC00YTM3LWFkMjQtOGI5MzgxNTMwZTY3IiwiYmFzZVVybCI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tLyJ9LCJwcm9qZWN0Ijp7ImlkIjoiYjMyYWE3MWUtOGVkMi00MWIyLTlkNzctNWJjMjYxMjIyMDA0IiwiYmFzZVVybCI6Imh0dHBzOi8vbXNhenVyZS52aXN1YWxzdHVkaW8uY29tLyJ9fSwiY3JlYXRlZERhdGUiOiIyMDE4LTA5LTI0VDAyOjQxOjA4LjkwODg1NTFaIn0B\"\r\n },\r\n {\r\n \"name\": \"VSTS_CONFIG_PATH\",\r\n \"value\": \"/var/pr/config/msazure.json\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"vstspr\",\r\n \"mountPath\": \"/var/pr\",\r\n \"readOnly\": false\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"vstspr.azurecr.io\",\r\n \"username\": \"vstspr\"\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"vstspr\",\r\n \"azureFile\": {\r\n \"shareName\": \"vsts-pr\",\r\n \"readOnly\": false,\r\n \"storageAccountName\": \"fileshareww\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/vsts-pr/providers/Microsoft.ContainerInstance/containerGroups/pr-aci-6bd8bb0c-389d-42de-b224-d93032dd0047\",\r\n \"name\": \"pr-aci-6bd8bb0c-389d-42de-b224-d93032dd0047\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"west us\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizha2portsnew\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n },\r\n {\r\n \"port\": 8000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 8000\r\n }\r\n ],\r\n \"ip\": \"52.160.84.48\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaaci\",\r\n \"fqdn\": \"xizhaaci.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizha2portsnew\",\r\n \"name\": \"xizha2portsnew\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"client\",\r\n \"properties\": {\r\n \"image\": \"python:2.7\",\r\n \"command\": [\r\n \"python\",\r\n \"-m\",\r\n \"SimpleHTTPServer\",\r\n \"80\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"client2\",\r\n \"properties\": {\r\n \"image\": \"alpine\",\r\n \"command\": [\r\n \"/bin/sh\",\r\n \"-c\",\r\n \"while true; do echo hello world; sleep 1; done\"\r\n ],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n },\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 5000\r\n }\r\n ],\r\n \"ip\": \"52.160.43.194\",\r\n \"type\": \"Public\",\r\n \"dnsNameLabel\": \"xizhaporttest3\",\r\n \"fqdn\": \"xizhaporttest3.westus.azurecontainer.io\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRG/providers/Microsoft.ContainerInstance/containerGroups/xizhaporttest3\",\r\n \"name\": \"xizhaporttest3\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"West US\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"appcontainer\",\r\n \"properties\": {\r\n \"image\": \"microsoft/aci-helloworld\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.0.0.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRGWestUS/providers/Microsoft.Network/networkProfiles/aci-network-profile-xizha-vnet-xizha-subnet\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRGWestUS/providers/Microsoft.ContainerInstance/containerGroups/appcontainer\",\r\n \"name\": \"appcontainer\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"commchecker\",\r\n \"properties\": {\r\n \"image\": \"alpine:3.5\",\r\n \"command\": [\r\n \"wget\",\r\n \"10.0.0.4\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRGWestUS/providers/Microsoft.Network/networkProfiles/aci-network-profile-xizha-vnet-xizha-subnet\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhaRGWestUS/providers/Microsoft.ContainerInstance/containerGroups/commchecker\",\r\n \"name\": \"commchecker\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"runnertest\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/vnet-testing\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"ALWAYSRUNCGIP\",\r\n \"value\": \"10.2.1.4\"\r\n },\r\n {\r\n \"name\": \"RUNNERLOCATION\",\r\n \"value\": \"northeurope\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 0.5\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhawcus/providers/Microsoft.ContainerInstance/containerGroups/runnertest\",\r\n \"name\": \"runnertest\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"runnertest\",\r\n \"properties\": {\r\n \"image\": \"caasrunner.azurecr.io/vnet-test\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [\r\n {\r\n \"name\": \"ALWAYSRUNCGIP\",\r\n \"value\": \"10.2.1.4\"\r\n },\r\n {\r\n \"name\": \"RUNNERLOCATION\",\r\n \"value\": \"northeurope\"\r\n }\r\n ],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \"cpu\": 0.5\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"caasrunner.azurecr.io\",\r\n \"username\": \"CaaSRunner\"\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizhawcus/providers/Microsoft.ContainerInstance/containerGroups/runnertest2\",\r\n \"name\": \"runnertest2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-t55v9\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"137.116.116.181\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-t55v9\",\r\n \"secret\": {}\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks187_eastus/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-deployment-68d579f748-p7hgg\",\r\n \"name\": \"default-nginx-deployment-68d579f748-p7hgg\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-09-06 04:42:11 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aci-connector-linux-eastus\",\r\n \"PodName\": \"nginx-deployment-68d579f748-p7hgg\",\r\n \"UID\": \"38543626-b18f-11e8-b028-0a58ac1f0f5d\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-testscroll\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"command\": [],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"23.96.32.30\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-rc2/providers/Microsoft.ContainerInstance/containerGroups/sakreter-testscroll\",\r\n \"name\": \"sakreter-testscroll\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"helloworldtask\",\r\n \"properties\": {\r\n \"image\": \"hello-world\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/tonyxuhelloworldrg/providers/Microsoft.ContainerInstance/containerGroups/helloworldtask\",\r\n \"name\": \"helloworldtask\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"owasp-zap2docker-stable-task\",\r\n \"properties\": {\r\n \"image\": \"owasp/zap2docker-stable\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Never\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/tonyxuhelloworldrg/providers/Microsoft.ContainerInstance/containerGroups/owasp-zap2docker-stable-task\",\r\n \"name\": \"owasp-zap2docker-stable-task\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testmsi\",\r\n \"properties\": {\r\n \"image\": \"cloudcondfwestcentralus.azurecr.io/testmsi:prod\",\r\n \"command\": [],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"cloudcondfwestcentralus.azurecr.io\",\r\n \"username\": \"cloudcondfwestcentralus\"\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xiazhantest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/xiazhan-identity\": {\r\n \"principalId\": \"24753f5e-1f49-4e20-ac67-f51f1085200d\",\r\n \"clientId\": \"2e19929b-9da6-43ab-8d5d-944c15e3a5ef\"\r\n }\r\n },\r\n \"principalId\": \"c623426c-ff66-4e11-9c24-fc4d80048432\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"SystemAssigned, UserAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xiazhanacs/providers/Microsoft.ContainerInstance/containerGroups/testmsi\",\r\n \"name\": \"testmsi\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"xizhashortcut\",\r\n \"properties\": {\r\n \"image\": \"xizhabox/xizhanginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"azurefile\",\r\n \"mountPath\": \"/usr/share/nginx\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"ip\": \"52.183.9.169\",\r\n \"type\": \"Public\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"azurefile\",\r\n \"azureFile\": {\r\n \"shareName\": \"shortcut\",\r\n \"storageAccountName\": \"xizhatest\"\r\n }\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xizharg/providers/Microsoft.ContainerInstance/containerGroups/xizhashortcut\",\r\n \"name\": \"xizhashortcut\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westus2\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.11\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-g4659\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.128.0.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-g4659\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector-hackthon/providers/Microsoft.ContainerService/managedClusters/vk-cni-northeurope-1\",\r\n \"node-name\": \"virtual-kubelet-aci-connector-linux-northeurope\",\r\n \"pod-uuid\": \"7714c581-cc0c-11e8-b6c1-ee0e721431d3\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-northeurope-1_northeurope/providers/Microsoft.Network/networkProfiles/virtual-kubelet-aci-connector-linux-northeurope\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.0.0.10\"\r\n ]\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-northeurope-1_northeurope/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-7f7c7f9ff-bhmm2\",\r\n \"name\": \"default-nginx-vk-7f7c7f9ff-bhmm2\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"northeurope\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-10-09 21:44:14 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aci-connector-linux-northeurope\",\r\n \"PodName\": \"nginx-vk-7f7c7f9ff-bhmm2\",\r\n \"UID\": \"7714c581-cc0c-11e8-b6c1-ee0e721431d3\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.11\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-j7gq5\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.241.0.88\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-j7gq5\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks/providers/Microsoft.ContainerService/managedClusters/robbieaks1112\",\r\n \"node-name\": \"virtual-kubelet\",\r\n \"pod-uuid\": \"da596a5e-cc16-11e8-997e-5ed8a9244bd7\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks1112_northeurope/providers/Microsoft.Network/networkProfiles/virtual-kubelet\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.1.0.10\"\r\n ]\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks1112_northeurope/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-764d8d68f-5gljg\",\r\n \"name\": \"default-nginx-vk-764d8d68f-5gljg\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"northeurope\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-10-09 22:58:35 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet\",\r\n \"PodName\": \"nginx-vk-764d8d68f-5gljg\",\r\n \"UID\": \"da596a5e-cc16-11e8-997e-5ed8a9244bd7\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.11\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-j7gq5\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.241.0.89\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-j7gq5\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks/providers/Microsoft.ContainerService/managedClusters/robbieaks1112\",\r\n \"node-name\": \"virtual-kubelet\",\r\n \"pod-uuid\": \"207327a5-cc18-11e8-997e-5ed8a9244bd7\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks1112_northeurope/providers/Microsoft.Network/networkProfiles/virtual-kubelet\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.1.0.10\"\r\n ]\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks1112_northeurope/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-764d8d68f-c98pf\",\r\n \"name\": \"default-nginx-vk-764d8d68f-c98pf\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"northeurope\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-10-09 23:07:43 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet\",\r\n \"PodName\": \"nginx-vk-764d8d68f-c98pf\",\r\n \"UID\": \"207327a5-cc18-11e8-997e-5ed8a9244bd7\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.11\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-j7gq5\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.241.0.87\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-j7gq5\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/robbieaks/providers/Microsoft.ContainerService/managedClusters/robbieaks1112\",\r\n \"node-name\": \"virtual-kubelet\",\r\n \"pod-uuid\": \"da596a5e-cc16-11e8-997e-5ed8a9244bd7\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks1112_northeurope/providers/Microsoft.Network/networkProfiles/virtual-kubelet\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.1.0.10\"\r\n ]\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_robbieaks_robbieaks1112_northeurope/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-764d8d68f-cvfzx\",\r\n \"name\": \"default-nginx-vk-764d8d68f-cvfzx\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"northeurope\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-10-09 22:55:56 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet\",\r\n \"PodName\": \"nginx-vk-764d8d68f-cvfzx\",\r\n \"UID\": \"7b789a05-cc16-11e8-997e-5ed8a9244bd7\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"command\": [\r\n \"/bin/bash\",\r\n \"-c\",\r\n \"while true; do echo `date`; sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.11\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-fnm9b\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.128.0.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-fnm9b\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector-hackthon/providers/Microsoft.ContainerService/managedClusters/vk-cni-wcus-5\",\r\n \"node-name\": \"virtual-kubelet-aci-connector-linux-westcentralus\",\r\n \"pod-uuid\": \"059344e3-c392-11e8-b147-cea5b6a5a48f\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-wcus-5_westcentralus/providers/Microsoft.Network/networkProfiles/virtual-kubelet-aci-connector-linux-westcentralus\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.0.0.10\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-wcus-5_westcentralus/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-6c57b6b459-5dl7t\",\r\n \"name\": \"default-nginx-vk-6c57b6b459-5dl7t\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-09-29 02:47:36 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aci-connector-linux-westcentralus\",\r\n \"PodName\": \"nginx-vk-6c57b6b459-5dl7t\",\r\n \"UID\": \"059344e3-c392-11e8-b147-cea5b6a5a48f\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"command\": [\r\n \"/bin/bash\",\r\n \"-c\",\r\n \"while true; do echo `date`; sleep 10; done\"\r\n ],\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.11\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-fnm9b\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.128.0.5\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-fnm9b\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector-hackthon/providers/Microsoft.ContainerService/managedClusters/vk-cni-wcus-5\",\r\n \"node-name\": \"virtual-kubelet-aci-connector-linux-westcentralus\",\r\n \"pod-uuid\": \"058d05a1-c392-11e8-b147-cea5b6a5a48f\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-wcus-5_westcentralus/providers/Microsoft.Network/networkProfiles/virtual-kubelet-aci-connector-linux-westcentralus\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.0.0.10\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-wcus-5_westcentralus/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-6c57b6b459-pnx9x\",\r\n \"name\": \"default-nginx-vk-6c57b6b459-pnx9x\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-09-29 02:47:36 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aci-connector-linux-westcentralus\",\r\n \"PodName\": \"nginx-vk-6c57b6b459-pnx9x\",\r\n \"UID\": \"058d05a1-c392-11e8-b147-cea5b6a5a48f\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 0.1,\r\n \"cpu\": 0.1\r\n }\r\n },\r\n \"volumeMounts\": [\r\n {\r\n \"name\": \"default-token-8jmv4\",\r\n \"mountPath\": \"/var/run/secrets/kubernetes.io/serviceaccount\",\r\n \"readOnly\": true\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \"name\": \"kube-proxy\",\r\n \"properties\": {\r\n \"extensionType\": \"kube-proxy\",\r\n \"version\": \"1.0\",\r\n \"settings\": {\r\n \"clusterCidr\": \"10.240.0.0/16\",\r\n \"kubeVersion\": \"v1.9.10\"\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.128.0.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"volumes\": [\r\n {\r\n \"name\": \"default-token-8jmv4\",\r\n \"secret\": {}\r\n }\r\n ],\r\n \"diagnostics\": {\r\n \"logAnalytics\": {\r\n \"workspaceId\": \"86011e09-e0c0-441a-b210-ba20c83f3e29\\n\",\r\n \"logType\": \"ContainerInsights\",\r\n \"metadata\": {\r\n \"cluster-resource-id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/aci-connector-hackthon/providers/Microsoft.ContainerService/managedClusters/vk-cni-westcentralus-1\",\r\n \"node-name\": \"virtual-kubelet-aci-connector-linux-westcentralus\"\r\n }\r\n }\r\n },\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-westcentralus-1_westcentralus/providers/Microsoft.Network/networkProfiles/virtual-kubelet-aci-connector-linux-westcentralus\"\r\n },\r\n \"dnsConfig\": {\r\n \"nameServers\": [\r\n \"10.0.0.10\"\r\n ]\r\n }\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/MC_aci-connector-hackthon_vk-cni-westcentralus-1_westcentralus/providers/Microsoft.ContainerInstance/containerGroups/default-nginx-vk-57587cdc8-6zqqb\",\r\n \"name\": \"default-nginx-vk-57587cdc8-6zqqb\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {\r\n \"ClusterName\": \"\",\r\n \"CreationTimestamp\": \"2018-09-26 04:37:02 +0000 UTC\",\r\n \"Namespace\": \"default\",\r\n \"NodeName\": \"virtual-kubelet-aci-connector-linux-westcentralus\",\r\n \"PodName\": \"nginx-vk-57587cdc8-6zqqb\",\r\n \"UID\": \"d0817dc4-c145-11e8-865a-56abcc2efb86\"\r\n }\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-rgdiff24\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.0.0.4\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-vnettest/providers/Microsoft.Network/networkProfiles/aci-network-profile-vnettest56-default\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-rgdiff24\",\r\n \"name\": \"sakreter-rgdiff24\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"sakreter-rgdiff25\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [\r\n {\r\n \"protocol\": \"TCP\",\r\n \"port\": 80\r\n }\r\n ],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"restartPolicy\": \"Always\",\r\n \"ipAddress\": {\r\n \"ip\": \"10.0.0.5\",\r\n \"type\": \"Private\"\r\n },\r\n \"osType\": \"Linux\",\r\n \"networkProfile\": {\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-vnettest/providers/Microsoft.Network/networkProfiles/aci-network-profile-vnettest56-default\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/sakreter-cli/providers/Microsoft.ContainerInstance/containerGroups/sakreter-rgdiff25\",\r\n \"name\": \"sakreter-rgdiff25\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"westcentralus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"nginx\",\r\n \"properties\": {\r\n \"image\": \"nginx\",\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"osType\": \"Linux\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/caastest/providers/Microsoft.ContainerInstance/containerGroups/azfeuap\",\r\n \"name\": \"azfeuap\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus2euap\"\r\n },\r\n {\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"containers\": [\r\n {\r\n \"name\": \"testmsieuap\",\r\n \"properties\": {\r\n \"image\": \"cloudcondfwestcentralus.azurecr.io/testmsi:prod\",\r\n \"command\": [],\r\n \"ports\": [],\r\n \"environmentVariables\": [],\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\": 1.5,\r\n \"cpu\": 1.0\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"imageRegistryCredentials\": [\r\n {\r\n \"server\": \"cloudcondfwestcentralus.azurecr.io\",\r\n \"username\": \"cloudcondfwestcentralus\"\r\n }\r\n ],\r\n \"restartPolicy\": \"OnFailure\",\r\n \"osType\": \"Linux\"\r\n },\r\n \"identity\": {\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xiazhantest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/xiazhan-identity\": {\r\n \"principalId\": \"24753f5e-1f49-4e20-ac67-f51f1085200d\",\r\n \"clientId\": \"2e19929b-9da6-43ab-8d5d-944c15e3a5ef\"\r\n }\r\n },\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"type\": \"UserAssigned\"\r\n },\r\n \"id\": \"/subscriptions/ae43b1e3-c35d-4c8c-bc0d-f148b4c52b78/resourceGroups/xiazhanacs/providers/Microsoft.ContainerInstance/containerGroups/testmsieuap\",\r\n \"name\": \"testmsieuap\",\r\n \"type\": \"Microsoft.ContainerInstance/containerGroups\",\r\n \"location\": \"eastus2euap\"\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": { "CreateResourceGroup": [ - "aci_rg3112", - "aci_rg5829" + "aci_rg8569", + "aci_rg7814" ], "ContainerInstanceListTest": [ - "acinetsdk4829", - "acinetsdk9871" + "acinetsdk1984", + "acinetsdk5484" ] }, "Variables": { diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs index 8e20a727cb95..61652bb0bcac 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperations.cs @@ -1072,6 +1072,211 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) return _result; } + /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container image + /// has updates, new image will be downloaded. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task RestartWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRestartWithHttpMessagesAsync(resourceGroupName, containerGroupName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Stops all containers in a container group. + /// + /// + /// Stops all containers in a container group. Compute resources will be + /// deallocated and billing will stop. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task StopWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (containerGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("containerGroupName", containerGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Stop", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{containerGroupName}", System.Uri.EscapeDataString(containerGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Create or update container groups. /// @@ -1307,6 +1512,185 @@ internal ContainerGroupsOperations(ContainerInstanceManagementClient client) return _result; } + /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container image + /// has updates, new image will be downloaded. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (containerGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("containerGroupName", containerGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRestart", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{containerGroupName}", System.Uri.EscapeDataString(containerGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Get a list of container groups in the specified subscription. /// diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs index 58f542aebd3a..426e5fb573cb 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerGroupsOperationsExtensions.cs @@ -315,6 +315,96 @@ public static ContainerGroup Delete(this IContainerGroupsOperations operations, } } + /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container image + /// has updates, new image will be downloaded. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + public static void Restart(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName) + { + operations.RestartAsync(resourceGroupName, containerGroupName).GetAwaiter().GetResult(); + } + + /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container image + /// has updates, new image will be downloaded. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The cancellation token. + /// + public static async Task RestartAsync(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RestartWithHttpMessagesAsync(resourceGroupName, containerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Stops all containers in a container group. + /// + /// + /// Stops all containers in a container group. Compute resources will be + /// deallocated and billing will stop. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + public static void Stop(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName) + { + operations.StopAsync(resourceGroupName, containerGroupName).GetAwaiter().GetResult(); + } + + /// + /// Stops all containers in a container group. + /// + /// + /// Stops all containers in a container group. Compute resources will be + /// deallocated and billing will stop. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The cancellation token. + /// + public static async Task StopAsync(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.StopWithHttpMessagesAsync(resourceGroupName, containerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Create or update container groups. /// @@ -367,6 +457,51 @@ public static ContainerGroup BeginCreateOrUpdate(this IContainerGroupsOperations } } + /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container image + /// has updates, new image will be downloaded. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + public static void BeginRestart(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName) + { + operations.BeginRestartAsync(resourceGroupName, containerGroupName).GetAwaiter().GetResult(); + } + + /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container image + /// has updates, new image will be downloaded. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRestartAsync(this IContainerGroupsOperations operations, string resourceGroupName, string containerGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginRestartWithHttpMessagesAsync(resourceGroupName, containerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Get a list of container groups in the specified subscription. /// diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs index c81616ba4690..b8418cf16625 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerInstanceManagementClient.cs @@ -56,19 +56,20 @@ public partial class ContainerInstanceManagementClient : ServiceClient - /// Gets or sets the preferred language for the response. + /// The preferred language for the response. /// public string AcceptLanguage { get; set; } /// - /// Gets or sets the retry timeout in seconds for Long Running Operations. - /// Default value is 30. + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. /// public int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is generated and - /// included in each request. Default is true. + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. /// public bool? GenerateClientRequestId { get; set; } @@ -88,14 +89,27 @@ public partial class ContainerInstanceManagementClient : ServiceClient - /// Gets the IContainerLogsOperations. + /// Gets the IContainerOperations. /// - public virtual IContainerLogsOperations ContainerLogs { get; private set; } + public virtual IContainerOperations Container { get; private set; } /// - /// Gets the IStartContainerOperations. + /// Gets the IServiceAssociationLinkOperations. /// - public virtual IStartContainerOperations StartContainer { get; private set; } + public virtual IServiceAssociationLinkOperations ServiceAssociationLink { get; private set; } + + /// + /// Initializes a new instance of the ContainerInstanceManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ContainerInstanceManagementClient.Dispose(). False: will not dispose provided httpClient + protected ContainerInstanceManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } /// /// Initializes a new instance of the ContainerInstanceManagementClient class. @@ -192,6 +206,33 @@ public ContainerInstanceManagementClient(ServiceClientCredentials credentials, p } } + /// + /// Initializes a new instance of the ContainerInstanceManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ContainerInstanceManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public ContainerInstanceManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + /// /// Initializes a new instance of the ContainerInstanceManagementClient class. /// @@ -301,10 +342,10 @@ private void Initialize() ContainerGroups = new ContainerGroupsOperations(this); Operations = new Operations(this); ContainerGroupUsage = new ContainerGroupUsageOperations(this); - ContainerLogs = new ContainerLogsOperations(this); - StartContainer = new StartContainerOperations(this); + Container = new ContainerOperations(this); + ServiceAssociationLink = new ServiceAssociationLinkOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-04-01"; + ApiVersion = "2018-10-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerLogsOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerLogsOperationsExtensions.cs deleted file mode 100644 index 390bc1455b14..000000000000 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerLogsOperationsExtensions.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.ContainerInstance -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for ContainerLogsOperations. - /// - public static partial class ContainerLogsOperationsExtensions - { - /// - /// Get the logs for a specified container instance. - /// - /// - /// Get the logs for a specified container instance in a specified resource - /// group and container group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. - /// - /// - /// The name of the container group. - /// - /// - /// The name of the container instance. - /// - /// - /// The number of lines to show from the tail of the container instance log. If - /// not provided, all available logs are shown up to 4mb. - /// - public static Logs List(this IContainerLogsOperations operations, string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?)) - { - return operations.ListAsync(resourceGroupName, containerGroupName, containerName, tail).GetAwaiter().GetResult(); - } - - /// - /// Get the logs for a specified container instance. - /// - /// - /// Get the logs for a specified container instance in a specified resource - /// group and container group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. - /// - /// - /// The name of the container group. - /// - /// - /// The name of the container instance. - /// - /// - /// The number of lines to show from the tail of the container instance log. If - /// not provided, all available logs are shown up to 4mb. - /// - /// - /// The cancellation token. - /// - public static async Task ListAsync(this IContainerLogsOperations operations, string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, tail, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerOperations.cs similarity index 51% rename from src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperations.cs rename to src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerOperations.cs index 60694bb1da93..be5bddab5223 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerOperations.cs @@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.ContainerInstance using System.Threading.Tasks; /// - /// StartContainerOperations operations. + /// ContainerOperations operations. /// - internal partial class StartContainerOperations : IServiceOperations, IStartContainerOperations + internal partial class ContainerOperations : IServiceOperations, IContainerOperations { /// - /// Initializes a new instance of the StartContainerOperations class. + /// Initializes a new instance of the ContainerOperations class. /// /// /// Reference to the service client. @@ -36,7 +36,7 @@ internal partial class StartContainerOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal StartContainerOperations(ContainerInstanceManagementClient client) + internal ContainerOperations(ContainerInstanceManagementClient client) { if (client == null) { @@ -51,10 +51,228 @@ internal StartContainerOperations(ContainerInstanceManagementClient client) public ContainerInstanceManagementClient Client { get; private set; } /// - /// Starts the exec command for a specific container instance. + /// Get the logs for a specified container instance. /// /// - /// Starts the exec command for a specified container instance in a specified + /// Get the logs for a specified container instance in a specified resource + /// group and container group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The number of lines to show from the tail of the container instance log. If + /// not provided, all available logs are shown up to 4mb. + /// + /// + /// 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> ListLogsWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (containerGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); + } + if (containerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("containerGroupName", containerGroupName); + tracingParameters.Add("containerName", containerName); + tracingParameters.Add("tail", tail); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListLogs", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{containerGroupName}", System.Uri.EscapeDataString(containerGroupName)); + _url = _url.Replace("{containerName}", System.Uri.EscapeDataString(containerName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (tail != null) + { + _queryParameters.Add(string.Format("tail={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(tail, Client.SerializationSettings).Trim('"')))); + } + 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; + } + + /// + /// Executes a command in a specific container instance. + /// + /// + /// Executes a command for a specific container instance in a specified /// resource group and container group. /// /// @@ -90,7 +308,7 @@ internal StartContainerOperations(ContainerInstanceManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> LaunchExecWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -128,7 +346,7 @@ internal StartContainerOperations(ContainerInstanceManagementClient client) tracingParameters.Add("containerName", containerName); tracingParameters.Add("containerExecRequest", containerExecRequest); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "LaunchExec", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ExecuteCommand", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerOperationsExtensions.cs new file mode 100644 index 000000000000..98854a2f6e3f --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerOperationsExtensions.cs @@ -0,0 +1,147 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ContainerOperations. + /// + public static partial class ContainerOperationsExtensions + { + /// + /// Get the logs for a specified container instance. + /// + /// + /// Get the logs for a specified container instance in a specified resource + /// group and container group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The number of lines to show from the tail of the container instance log. If + /// not provided, all available logs are shown up to 4mb. + /// + public static Logs ListLogs(this IContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?)) + { + return operations.ListLogsAsync(resourceGroupName, containerGroupName, containerName, tail).GetAwaiter().GetResult(); + } + + /// + /// Get the logs for a specified container instance. + /// + /// + /// Get the logs for a specified container instance in a specified resource + /// group and container group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The number of lines to show from the tail of the container instance log. If + /// not provided, all available logs are shown up to 4mb. + /// + /// + /// The cancellation token. + /// + public static async Task ListLogsAsync(this IContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListLogsWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, tail, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Executes a command in a specific container instance. + /// + /// + /// Executes a command for a specific container instance in a specified + /// resource group and container group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + public static ContainerExecResponse ExecuteCommand(this IContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest) + { + return operations.ExecuteCommandAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest).GetAwaiter().GetResult(); + } + + /// + /// Executes a command in a specific container instance. + /// + /// + /// Executes a command for a specific container instance in a specified + /// resource group and container group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + /// + /// The cancellation token. + /// + public static async Task ExecuteCommandAsync(this IContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExecuteCommandWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs index cff3db2e7838..23454ec3edee 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerGroupsOperations.cs @@ -202,6 +202,58 @@ public partial interface IContainerGroupsOperations /// Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container + /// image has updates, new image will be downloaded. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task RestartWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Stops all containers in a container group. + /// + /// + /// Stops all containers in a container group. Compute resources will + /// be deallocated and billing will stop. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task StopWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Create or update container groups. /// /// @@ -233,6 +285,32 @@ public partial interface IContainerGroupsOperations /// Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, ContainerGroup containerGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Restarts all containers in a container group. + /// + /// + /// Restarts all containers in a container group in place. If container + /// image has updates, new image will be downloaded. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginRestartWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Get a list of container groups in the specified subscription. /// /// diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs index f66389e84d4a..081e05ab3f3f 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerInstanceManagementClient.cs @@ -52,19 +52,20 @@ public partial interface IContainerInstanceManagementClient : System.IDisposable string ApiVersion { get; } /// - /// Gets or sets the preferred language for the response. + /// The preferred language for the response. /// string AcceptLanguage { get; set; } /// - /// Gets or sets the retry timeout in seconds for Long Running - /// Operations. Default value is 30. + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. /// int? LongRunningOperationRetryTimeout { get; set; } /// - /// When set to true a unique x-ms-client-request-id value is generated - /// and included in each request. Default is true. + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. /// bool? GenerateClientRequestId { get; set; } @@ -85,14 +86,14 @@ public partial interface IContainerInstanceManagementClient : System.IDisposable IContainerGroupUsageOperations ContainerGroupUsage { get; } /// - /// Gets the IContainerLogsOperations. + /// Gets the IContainerOperations. /// - IContainerLogsOperations ContainerLogs { get; } + IContainerOperations Container { get; } /// - /// Gets the IStartContainerOperations. + /// Gets the IServiceAssociationLinkOperations. /// - IStartContainerOperations StartContainer { get; } + IServiceAssociationLinkOperations ServiceAssociationLink { get; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerLogsOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerOperations.cs similarity index 50% rename from src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerLogsOperations.cs rename to src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerOperations.cs index 24c7c9406cac..4d408fafbbe8 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerLogsOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IContainerOperations.cs @@ -19,9 +19,9 @@ namespace Microsoft.Azure.Management.ContainerInstance using System.Threading.Tasks; /// - /// ContainerLogsOperations operations. + /// ContainerOperations operations. /// - public partial interface IContainerLogsOperations + public partial interface IContainerOperations { /// /// Get the logs for a specified container instance. @@ -58,6 +58,41 @@ public partial interface IContainerLogsOperations /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListLogsWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Executes a command in a specific container instance. + /// + /// + /// Executes a command for a specific container instance in a specified + /// resource group and container group. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the container group. + /// + /// + /// The name of the container instance. + /// + /// + /// The request for the exec command. + /// + /// + /// 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> ExecuteCommandWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IStartContainerOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IServiceAssociationLinkOperations.cs similarity index 56% rename from src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IStartContainerOperations.cs rename to src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IServiceAssociationLinkOperations.cs index a0ce6cc16cb0..16fec6030a4c 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IStartContainerOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/IServiceAssociationLinkOperations.cs @@ -19,28 +19,26 @@ namespace Microsoft.Azure.Management.ContainerInstance using System.Threading.Tasks; /// - /// StartContainerOperations operations. + /// ServiceAssociationLinkOperations operations. /// - public partial interface IStartContainerOperations + public partial interface IServiceAssociationLinkOperations { /// - /// Starts the exec command for a specific container instance. + /// Delete the container instance service association link for the + /// subnet. /// /// - /// Starts the exec command for a specified container instance in a - /// specified resource group and container group. + /// Delete the container instance service association link for the + /// subnet. This operation unblocks user from deleting subnet. /// /// /// The name of the resource group. /// - /// - /// The name of the container group. + /// + /// The name of the virtual network. /// - /// - /// The name of the container instance. - /// - /// - /// The request for the exec command. + /// + /// The name of the subnet. /// /// /// The headers that will be added to request. @@ -51,12 +49,9 @@ public partial interface IStartContainerOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task> LaunchExecWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Container.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Container.cs index 47ce3e073ff8..073bdedc1d6b 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Container.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Container.cs @@ -50,7 +50,9 @@ public Container() /// instance. Only valid in response. /// The volume mounts available to the /// container instance. - public Container(string name, string image, ResourceRequirements resources, IList command = default(IList), IList ports = default(IList), IList environmentVariables = default(IList), ContainerPropertiesInstanceView instanceView = default(ContainerPropertiesInstanceView), IList volumeMounts = default(IList)) + /// The liveness probe. + /// The readiness probe. + public Container(string name, string image, ResourceRequirements resources, IList command = default(IList), IList ports = default(IList), IList environmentVariables = default(IList), ContainerPropertiesInstanceView instanceView = default(ContainerPropertiesInstanceView), IList volumeMounts = default(IList), ContainerProbe livenessProbe = default(ContainerProbe), ContainerProbe readinessProbe = default(ContainerProbe)) { Name = name; Image = image; @@ -60,6 +62,8 @@ public Container() InstanceView = instanceView; Resources = resources; VolumeMounts = volumeMounts; + LivenessProbe = livenessProbe; + ReadinessProbe = readinessProbe; CustomInit(); } @@ -120,6 +124,18 @@ public Container() [JsonProperty(PropertyName = "properties.volumeMounts")] public IList VolumeMounts { get; set; } + /// + /// Gets or sets the liveness probe. + /// + [JsonProperty(PropertyName = "properties.livenessProbe")] + public ContainerProbe LivenessProbe { get; set; } + + /// + /// Gets or sets the readiness probe. + /// + [JsonProperty(PropertyName = "properties.readinessProbe")] + public ContainerProbe ReadinessProbe { get; set; } + /// /// Validate the object. /// @@ -174,6 +190,14 @@ public virtual void Validate() } } } + if (LivenessProbe != null) + { + LivenessProbe.Validate(); + } + if (ReadinessProbe != null) + { + ReadinessProbe.Validate(); + } } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExec.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExec.cs new file mode 100644 index 000000000000..4276f9dc1426 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExec.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The container execution command, for liveness or readiness probe + /// + public partial class ContainerExec + { + /// + /// Initializes a new instance of the ContainerExec class. + /// + public ContainerExec() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerExec class. + /// + /// The commands to execute within the + /// container. + public ContainerExec(IList command = default(IList)) + { + Command = command; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the commands to execute within the container. + /// + [JsonProperty(PropertyName = "command")] + public IList Command { get; set; } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs index 9b908b7a3d74..603f4b366a7c 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequest.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.ContainerInstance.Models using System.Linq; /// - /// The start container exec request. + /// The container exec request. /// public partial class ContainerExecRequest { diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs index 57a8fc3a50b8..8558de60f813 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecRequestTerminalSize.cs @@ -31,12 +31,12 @@ public ContainerExecRequestTerminalSize() /// Initializes a new instance of the ContainerExecRequestTerminalSize /// class. /// - /// The row size of the terminal - /// The column size of the terminal - public ContainerExecRequestTerminalSize(int? row = default(int?), int? column = default(int?)) + /// The row size of the terminal + /// The column size of the terminal + public ContainerExecRequestTerminalSize(int? rows = default(int?), int? cols = default(int?)) { - Row = row; - Column = column; + Rows = rows; + Cols = cols; CustomInit(); } @@ -48,14 +48,14 @@ public ContainerExecRequestTerminalSize() /// /// Gets or sets the row size of the terminal /// - [JsonProperty(PropertyName = "row")] - public int? Row { get; set; } + [JsonProperty(PropertyName = "rows")] + public int? Rows { get; set; } /// /// Gets or sets the column size of the terminal /// - [JsonProperty(PropertyName = "column")] - public int? Column { get; set; } + [JsonProperty(PropertyName = "cols")] + public int? Cols { get; set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs index 12283406ee9d..e4b794c7cecc 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerExecResponse.cs @@ -45,16 +45,16 @@ public ContainerExecResponse() partial void CustomInit(); /// - /// Gets the uri for the exec websocket. + /// Gets or sets the uri for the exec websocket. /// [JsonProperty(PropertyName = "webSocketUri")] - public string WebSocketUri { get; private set; } + public string WebSocketUri { get; set; } /// - /// Gets the password to start the exec command. + /// Gets or sets the password to start the exec command. /// [JsonProperty(PropertyName = "password")] - public string Password { get; private set; } + public string Password { get; set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroup.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroup.cs index a5b002a12fd1..af652bfc5d8c 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroup.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroup.cs @@ -44,6 +44,8 @@ public ContainerGroup() /// The resource type. /// The resource location. /// The resource tags. + /// The identity of the container group, if + /// configured. /// The provisioning state of the /// container group. This only appears in the response. /// The image registry @@ -60,9 +62,14 @@ public ContainerGroup() /// containers in this container group. /// The instance view of the container /// group. Only valid in response. - public ContainerGroup(IList containers, string osType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), IList imageRegistryCredentials = default(IList), string restartPolicy = default(string), IpAddress ipAddress = default(IpAddress), IList volumes = default(IList), ContainerGroupPropertiesInstanceView instanceView = default(ContainerGroupPropertiesInstanceView)) + /// The diagnostic information for a + /// container group. + /// The network profile information for a + /// container group. + public ContainerGroup(IList containers, string osType, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), ContainerGroupIdentity identity = default(ContainerGroupIdentity), string provisioningState = default(string), IList imageRegistryCredentials = default(IList), string restartPolicy = default(string), IpAddress ipAddress = default(IpAddress), IList volumes = default(IList), ContainerGroupPropertiesInstanceView instanceView = default(ContainerGroupPropertiesInstanceView), ContainerGroupDiagnostics diagnostics = default(ContainerGroupDiagnostics), ContainerGroupNetworkProfile networkProfile = default(ContainerGroupNetworkProfile)) : base(id, name, type, location, tags) { + Identity = identity; ProvisioningState = provisioningState; Containers = containers; ImageRegistryCredentials = imageRegistryCredentials; @@ -71,6 +78,8 @@ public ContainerGroup() OsType = osType; Volumes = volumes; InstanceView = instanceView; + Diagnostics = diagnostics; + NetworkProfile = networkProfile; CustomInit(); } @@ -79,6 +88,12 @@ public ContainerGroup() /// partial void CustomInit(); + /// + /// Gets or sets the identity of the container group, if configured. + /// + [JsonProperty(PropertyName = "identity")] + public ContainerGroupIdentity Identity { get; set; } + /// /// Gets the provisioning state of the container group. This only /// appears in the response. @@ -137,6 +152,18 @@ public ContainerGroup() [JsonProperty(PropertyName = "properties.instanceView")] public ContainerGroupPropertiesInstanceView InstanceView { get; private set; } + /// + /// Gets or sets the diagnostic information for a container group. + /// + [JsonProperty(PropertyName = "properties.diagnostics")] + public ContainerGroupDiagnostics Diagnostics { get; set; } + + /// + /// Gets or sets the network profile information for a container group. + /// + [JsonProperty(PropertyName = "properties.networkProfile")] + public ContainerGroupNetworkProfile NetworkProfile { get; set; } + /// /// Validate the object. /// @@ -187,6 +214,14 @@ public virtual void Validate() } } } + if (Diagnostics != null) + { + Diagnostics.Validate(); + } + if (NetworkProfile != null) + { + NetworkProfile.Validate(); + } } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupDiagnostics.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupDiagnostics.cs new file mode 100644 index 000000000000..636113bb40c3 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupDiagnostics.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Container group diagnostic information. + /// + public partial class ContainerGroupDiagnostics + { + /// + /// Initializes a new instance of the ContainerGroupDiagnostics class. + /// + public ContainerGroupDiagnostics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerGroupDiagnostics class. + /// + /// Container group log analytics + /// information. + public ContainerGroupDiagnostics(LogAnalytics logAnalytics = default(LogAnalytics)) + { + LogAnalytics = logAnalytics; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets container group log analytics information. + /// + [JsonProperty(PropertyName = "logAnalytics")] + public LogAnalytics LogAnalytics { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (LogAnalytics != null) + { + LogAnalytics.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIdentity.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIdentity.cs new file mode 100644 index 000000000000..57f3c1499f9a --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIdentity.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Identity for the container group. + /// + public partial class ContainerGroupIdentity + { + /// + /// Initializes a new instance of the ContainerGroupIdentity class. + /// + public ContainerGroupIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerGroupIdentity class. + /// + /// The principal id of the container group + /// identity. This property will only be provided for a system assigned + /// identity. + /// The tenant id associated with the container + /// group. This property will only be provided for a system assigned + /// identity. + /// The type of identity used for the container + /// group. The type 'SystemAssigned, UserAssigned' includes both an + /// implicitly created identity and a set of user assigned identities. + /// The type 'None' will remove any identities from the container + /// group. Possible values include: 'SystemAssigned', 'UserAssigned', + /// 'SystemAssigned, UserAssigned', 'None' + /// The list of user identities + /// associated with the container group. The user identity dictionary + /// key references will be ARM resource ids in the form: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + public ContainerGroupIdentity(string principalId = default(string), string tenantId = default(string), ResourceIdentityType? type = default(ResourceIdentityType?), IDictionary userAssignedIdentities = default(IDictionary)) + { + PrincipalId = principalId; + TenantId = tenantId; + Type = type; + UserAssignedIdentities = userAssignedIdentities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the principal id of the container group identity. This + /// property will only be provided for a system assigned identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets the tenant id associated with the container group. This + /// property will only be provided for a system assigned identity. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets or sets the type of identity used for the container group. The + /// type 'SystemAssigned, UserAssigned' includes both an implicitly + /// created identity and a set of user assigned identities. The type + /// 'None' will remove any identities from the container group. + /// Possible values include: 'SystemAssigned', 'UserAssigned', + /// 'SystemAssigned, UserAssigned', 'None' + /// + [JsonProperty(PropertyName = "type")] + public ResourceIdentityType? Type { get; set; } + + /// + /// Gets or sets the list of user identities associated with the + /// container group. The user identity dictionary key references will + /// be ARM resource ids in the form: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + /// + [JsonProperty(PropertyName = "userAssignedIdentities")] + public IDictionary UserAssignedIdentities { get; set; } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIdentityUserAssignedIdentitiesValue.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIdentityUserAssignedIdentitiesValue.cs new file mode 100644 index 000000000000..a9320ce0e5eb --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIdentityUserAssignedIdentitiesValue.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class ContainerGroupIdentityUserAssignedIdentitiesValue + { + /// + /// Initializes a new instance of the + /// ContainerGroupIdentityUserAssignedIdentitiesValue class. + /// + public ContainerGroupIdentityUserAssignedIdentitiesValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ContainerGroupIdentityUserAssignedIdentitiesValue class. + /// + /// The principal id of user assigned + /// identity. + /// The client id of user assigned + /// identity. + public ContainerGroupIdentityUserAssignedIdentitiesValue(string principalId = default(string), string clientId = default(string)) + { + PrincipalId = principalId; + ClientId = clientId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the principal id of user assigned identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets the client id of user assigned identity. + /// + [JsonProperty(PropertyName = "clientId")] + public string ClientId { get; private set; } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIpAddressType.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIpAddressType.cs new file mode 100644 index 000000000000..c7480beb1354 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupIpAddressType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + + /// + /// Defines values for ContainerGroupIpAddressType. + /// + public static class ContainerGroupIpAddressType + { + public const string Public = "Public"; + public const string Private = "Private"; + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupNetworkProfile.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupNetworkProfile.cs new file mode 100644 index 000000000000..3429b6ac89d3 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerGroupNetworkProfile.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Container group network profile information. + /// + public partial class ContainerGroupNetworkProfile + { + /// + /// Initializes a new instance of the ContainerGroupNetworkProfile + /// class. + /// + public ContainerGroupNetworkProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerGroupNetworkProfile + /// class. + /// + /// The identifier for a network profile. + public ContainerGroupNetworkProfile(string id) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identifier for a network profile. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + } + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerHttpGet.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerHttpGet.cs new file mode 100644 index 000000000000..cc292679fff5 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerHttpGet.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The container Http Get settings, for liveness or readiness probe + /// + public partial class ContainerHttpGet + { + /// + /// Initializes a new instance of the ContainerHttpGet class. + /// + public ContainerHttpGet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerHttpGet class. + /// + /// The port number to probe. + /// The path to probe. + /// The scheme. Possible values include: 'http', + /// 'https' + public ContainerHttpGet(int port, string path = default(string), string scheme = default(string)) + { + Path = path; + Port = port; + Scheme = scheme; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the path to probe. + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Gets or sets the port number to probe. + /// + [JsonProperty(PropertyName = "port")] + public int Port { get; set; } + + /// + /// Gets or sets the scheme. Possible values include: 'http', 'https' + /// + [JsonProperty(PropertyName = "scheme")] + public string Scheme { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerProbe.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerProbe.cs new file mode 100644 index 000000000000..95d94d8c0869 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerProbe.cs @@ -0,0 +1,113 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The container probe, for liveness or readiness + /// + public partial class ContainerProbe + { + /// + /// Initializes a new instance of the ContainerProbe class. + /// + public ContainerProbe() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerProbe class. + /// + /// The execution command to probe + /// The Http Get settings to probe + /// The initial delay + /// seconds. + /// The period seconds. + /// The failure threshold. + /// The success threshold. + /// The timeout seconds. + public ContainerProbe(ContainerExec exec = default(ContainerExec), ContainerHttpGet httpGet = default(ContainerHttpGet), int? initialDelaySeconds = default(int?), int? periodSeconds = default(int?), int? failureThreshold = default(int?), int? successThreshold = default(int?), int? timeoutSeconds = default(int?)) + { + Exec = exec; + HttpGet = httpGet; + InitialDelaySeconds = initialDelaySeconds; + PeriodSeconds = periodSeconds; + FailureThreshold = failureThreshold; + SuccessThreshold = successThreshold; + TimeoutSeconds = timeoutSeconds; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the execution command to probe + /// + [JsonProperty(PropertyName = "exec")] + public ContainerExec Exec { get; set; } + + /// + /// Gets or sets the Http Get settings to probe + /// + [JsonProperty(PropertyName = "httpGet")] + public ContainerHttpGet HttpGet { get; set; } + + /// + /// Gets or sets the initial delay seconds. + /// + [JsonProperty(PropertyName = "initialDelaySeconds")] + public int? InitialDelaySeconds { get; set; } + + /// + /// Gets or sets the period seconds. + /// + [JsonProperty(PropertyName = "periodSeconds")] + public int? PeriodSeconds { get; set; } + + /// + /// Gets or sets the failure threshold. + /// + [JsonProperty(PropertyName = "failureThreshold")] + public int? FailureThreshold { get; set; } + + /// + /// Gets or sets the success threshold. + /// + [JsonProperty(PropertyName = "successThreshold")] + public int? SuccessThreshold { get; set; } + + /// + /// Gets or sets the timeout seconds. + /// + [JsonProperty(PropertyName = "timeoutSeconds")] + public int? TimeoutSeconds { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (HttpGet != null) + { + HttpGet.Validate(); + } + } + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs index 380c22ec5614..f943fd5a9367 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ContainerState.cs @@ -54,35 +54,38 @@ public ContainerState() partial void CustomInit(); /// - /// Gets the state of the container instance. + /// Gets or sets the state of the container instance. /// [JsonProperty(PropertyName = "state")] - public string State { get; private set; } + public string State { get; set; } /// - /// Gets the date-time when the container instance state started. + /// Gets or sets the date-time when the container instance state + /// started. /// [JsonProperty(PropertyName = "startTime")] - public System.DateTime? StartTime { get; private set; } + public System.DateTime? StartTime { get; set; } /// - /// Gets the container instance exit codes correspond to those from the - /// `docker run` command. + /// Gets or sets the container instance exit codes correspond to those + /// from the `docker run` command. /// [JsonProperty(PropertyName = "exitCode")] - public int? ExitCode { get; private set; } + public int? ExitCode { get; set; } /// - /// Gets the date-time when the container instance state finished. + /// Gets or sets the date-time when the container instance state + /// finished. /// [JsonProperty(PropertyName = "finishTime")] - public System.DateTime? FinishTime { get; private set; } + public System.DateTime? FinishTime { get; set; } /// - /// Gets the human-readable status of the container instance state. + /// Gets or sets the human-readable status of the container instance + /// state. /// [JsonProperty(PropertyName = "detailStatus")] - public string DetailStatus { get; private set; } + public string DetailStatus { get; set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EnvironmentVariable.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EnvironmentVariable.cs index b4a421cd0d98..ab0741eee3fe 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EnvironmentVariable.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EnvironmentVariable.cs @@ -32,10 +32,13 @@ public EnvironmentVariable() /// /// The name of the environment variable. /// The value of the environment variable. - public EnvironmentVariable(string name, string value) + /// The value of the secure environment + /// variable. + public EnvironmentVariable(string name, string value = default(string), string secureValue = default(string)) { Name = name; Value = value; + SecureValue = secureValue; CustomInit(); } @@ -56,6 +59,12 @@ public EnvironmentVariable(string name, string value) [JsonProperty(PropertyName = "value")] public string Value { get; set; } + /// + /// Gets or sets the value of the secure environment variable. + /// + [JsonProperty(PropertyName = "secureValue")] + public string SecureValue { get; set; } + /// /// Validate the object. /// @@ -68,10 +77,6 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Name"); } - if (Value == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Value"); - } } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs index bc0a15205f0c..11bfc04429c3 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/EventModel.cs @@ -54,40 +54,40 @@ public EventModel() partial void CustomInit(); /// - /// Gets the count of the event. + /// Gets or sets the count of the event. /// [JsonProperty(PropertyName = "count")] - public int? Count { get; private set; } + public int? Count { get; set; } /// - /// Gets the date-time of the earliest logged event. + /// Gets or sets the date-time of the earliest logged event. /// [JsonProperty(PropertyName = "firstTimestamp")] - public System.DateTime? FirstTimestamp { get; private set; } + public System.DateTime? FirstTimestamp { get; set; } /// - /// Gets the date-time of the latest logged event. + /// Gets or sets the date-time of the latest logged event. /// [JsonProperty(PropertyName = "lastTimestamp")] - public System.DateTime? LastTimestamp { get; private set; } + public System.DateTime? LastTimestamp { get; set; } /// - /// Gets the event name. + /// Gets or sets the event name. /// [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + public string Name { get; set; } /// - /// Gets the event message. + /// Gets or sets the event message. /// [JsonProperty(PropertyName = "message")] - public string Message { get; private set; } + public string Message { get; set; } /// - /// Gets the event type. + /// Gets or sets the event type. /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public string Type { get; set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/IpAddress.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/IpAddress.cs index 2d51d9dbe555..b02475c17135 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/IpAddress.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/IpAddress.cs @@ -34,24 +34,21 @@ public IpAddress() /// /// The list of ports exposed on the container /// group. + /// Specifies if the IP is exposed to the public + /// internet or private VNET. Possible values include: 'Public', + /// 'Private' /// The IP exposed to the public internet. /// The Dns name label for the IP. /// The FQDN for the IP. - public IpAddress(IList ports, string ip = default(string), string dnsNameLabel = default(string), string fqdn = default(string)) + public IpAddress(IList ports, string type, string ip = default(string), string dnsNameLabel = default(string), string fqdn = default(string)) { Ports = ports; + Type = type; Ip = ip; DnsNameLabel = dnsNameLabel; Fqdn = fqdn; CustomInit(); } - /// - /// Static constructor for IpAddress class. - /// - static IpAddress() - { - Type = "Public"; - } /// /// An initialization method that performs custom operations like setting defaults @@ -64,6 +61,13 @@ static IpAddress() [JsonProperty(PropertyName = "ports")] public IList Ports { get; set; } + /// + /// Gets or sets specifies if the IP is exposed to the public internet + /// or private VNET. Possible values include: 'Public', 'Private' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + /// /// Gets or sets the IP exposed to the public internet. /// @@ -82,12 +86,6 @@ static IpAddress() [JsonProperty(PropertyName = "fqdn")] public string Fqdn { get; private set; } - /// - /// Specifies if the IP is exposed to the public internet. - /// - [JsonProperty(PropertyName = "type")] - public static string Type { get; private set; } - /// /// Validate the object. /// @@ -100,6 +98,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Ports"); } + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } if (Ports != null) { foreach (var element in Ports) diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/LogAnalytics.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/LogAnalytics.cs new file mode 100644 index 000000000000..34ed73b3c474 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/LogAnalytics.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Container group log analytics information. + /// + public partial class LogAnalytics + { + /// + /// Initializes a new instance of the LogAnalytics class. + /// + public LogAnalytics() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LogAnalytics class. + /// + /// The workspace id for log + /// analytics + /// The workspace key for log + /// analytics + /// The log type to be used. Possible values + /// include: 'ContainerInsights', 'ContainerInstanceLogs' + /// Metadata for log analytics. + public LogAnalytics(string workspaceId, string workspaceKey, string logType = default(string), IDictionary metadata = default(IDictionary)) + { + WorkspaceId = workspaceId; + WorkspaceKey = workspaceKey; + LogType = logType; + Metadata = metadata; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the workspace id for log analytics + /// + [JsonProperty(PropertyName = "workspaceId")] + public string WorkspaceId { get; set; } + + /// + /// Gets or sets the workspace key for log analytics + /// + [JsonProperty(PropertyName = "workspaceKey")] + public string WorkspaceKey { get; set; } + + /// + /// Gets or sets the log type to be used. Possible values include: + /// 'ContainerInsights', 'ContainerInstanceLogs' + /// + [JsonProperty(PropertyName = "logType")] + public string LogType { get; set; } + + /// + /// Gets or sets metadata for log analytics. + /// + [JsonProperty(PropertyName = "metadata")] + public IDictionary Metadata { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (WorkspaceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceId"); + } + if (WorkspaceKey == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceKey"); + } + } + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/LogAnalyticsLogType.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/LogAnalyticsLogType.cs new file mode 100644 index 000000000000..bdcfb012b0fc --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/LogAnalyticsLogType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + + /// + /// Defines values for LogAnalyticsLogType. + /// + public static class LogAnalyticsLogType + { + public const string ContainerInsights = "ContainerInsights"; + public const string ContainerInstanceLogs = "ContainerInstanceLogs"; + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs index 5e0189538ef6..7825f565e767 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Logs.cs @@ -42,10 +42,10 @@ public Logs() partial void CustomInit(); /// - /// Gets the content of the log. + /// Gets or sets the content of the log. /// [JsonProperty(PropertyName = "content")] - public string Content { get; private set; } + public string Content { get; set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs index a31e03b20f56..3b24e378b69c 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/Operation.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.ContainerInstance.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -34,7 +35,7 @@ public Operation() /// operation. /// The intended executor of the operation. /// Possible values include: 'User', 'System' - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay), string origin = default(string)) + public Operation(string name, OperationDisplay display, string origin = default(string)) { Name = name; Display = display; @@ -48,10 +49,10 @@ public Operation() partial void CustomInit(); /// - /// Gets the name of the operation. + /// Gets or sets the name of the operation. /// [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + public string Name { get; set; } /// /// Gets or sets the display information of the operation. @@ -60,11 +61,28 @@ public Operation() public OperationDisplay Display { get; set; } /// - /// Gets the intended executor of the operation. Possible values - /// include: 'User', 'System' + /// Gets or sets the intended executor of the operation. Possible + /// values include: 'User', 'System' /// [JsonProperty(PropertyName = "origin")] - public string Origin { get; private set; } + public string Origin { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Display == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Display"); + } + } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs index c3da6753341f..fcb97d29e678 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/OperationDisplay.cs @@ -50,28 +50,28 @@ public OperationDisplay() partial void CustomInit(); /// - /// Gets the name of the provider of the operation. + /// Gets or sets the name of the provider of the operation. /// [JsonProperty(PropertyName = "provider")] - public string Provider { get; private set; } + public string Provider { get; set; } /// - /// Gets the name of the resource type of the operation. + /// Gets or sets the name of the resource type of the operation. /// [JsonProperty(PropertyName = "resource")] - public string Resource { get; private set; } + public string Resource { get; set; } /// - /// Gets the friendly name of the operation. + /// Gets or sets the friendly name of the operation. /// [JsonProperty(PropertyName = "operation")] - public string Operation { get; private set; } + public string Operation { get; set; } /// - /// Gets the description of the operation. + /// Gets or sets the description of the operation. /// [JsonProperty(PropertyName = "description")] - public string Description { get; private set; } + public string Description { get; set; } } } diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ResourceIdentityType.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ResourceIdentityType.cs new file mode 100644 index 000000000000..73eb92619fac --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/Models/ResourceIdentityType.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ResourceIdentityType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ResourceIdentityType + { + [EnumMember(Value = "SystemAssigned")] + SystemAssigned, + [EnumMember(Value = "UserAssigned")] + UserAssigned, + [EnumMember(Value = "SystemAssigned, UserAssigned")] + SystemAssignedUserAssigned, + [EnumMember(Value = "None")] + None + } + internal static class ResourceIdentityTypeEnumExtension + { + internal static string ToSerializedValue(this ResourceIdentityType? value) + { + return value == null ? null : ((ResourceIdentityType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ResourceIdentityType value) + { + switch( value ) + { + case ResourceIdentityType.SystemAssigned: + return "SystemAssigned"; + case ResourceIdentityType.UserAssigned: + return "UserAssigned"; + case ResourceIdentityType.SystemAssignedUserAssigned: + return "SystemAssigned, UserAssigned"; + case ResourceIdentityType.None: + return "None"; + } + return null; + } + + internal static ResourceIdentityType? ParseResourceIdentityType(this string value) + { + switch( value ) + { + case "SystemAssigned": + return ResourceIdentityType.SystemAssigned; + case "UserAssigned": + return ResourceIdentityType.UserAssigned; + case "SystemAssigned, UserAssigned": + return ResourceIdentityType.SystemAssignedUserAssigned; + case "None": + return ResourceIdentityType.None; + } + return null; + } + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs index 58def669f678..1a729a0f51ae 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/SdkInfo_ContainerInstanceManagementClient.cs @@ -1,22 +1,43 @@ -using System; -using System.Collections.Generic; -using System.Linq; +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// -internal static partial class SdkInfo +namespace Microsoft.Azure.Management.ContainerInstance { - public static IEnumerable> ApiInfo_ContainerInstanceManagementClient - { - get - { - return new Tuple[] - { - new Tuple("ContainerInstance", "ContainerGroupUsage", "2018-04-01"), - new Tuple("ContainerInstance", "ContainerGroups", "2018-04-01"), - new Tuple("ContainerInstance", "ContainerLogs", "2018-04-01"), - new Tuple("ContainerInstance", "Operations", "2018-04-01"), - new Tuple("ContainerInstance", "StartContainer", "2018-04-01"), - }.AsEnumerable(); - } - } + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_ContainerInstanceManagementClient + { + get + { + return new Tuple[] + { + new Tuple("ContainerInstance", "Container", "2018-10-01"), + new Tuple("ContainerInstance", "ContainerGroupUsage", "2018-10-01"), + new Tuple("ContainerInstance", "ContainerGroups", "2018-10-01"), + new Tuple("ContainerInstance", "Operations", "2018-10-01"), + new Tuple("Network", "ServiceAssociationLink", "2018-10-01"), + }.AsEnumerable(); + } + } + // BEGIN: Code Generation Metadata Section + public static readonly String AutoRestVersion = "latest"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerinstance/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Users\\sakreter\\mainWork\\azure-sdk-for-net\\src\\SDKs"; + public static readonly String GithubForkName = "Azure"; + public static readonly String GithubBranchName = "master"; + public static readonly String GithubCommidId = "396d6db190fd12c5a39478d0c730327bca2cf2d6"; + public static readonly String CodeGenerationErrors = ""; + public static readonly String GithubRepoName = "azure-rest-api-specs"; + // END: Code Generation Metadata Section + } } + + diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerLogsOperations.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ServiceAssociationLinkOperations.cs similarity index 72% rename from src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerLogsOperations.cs rename to src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ServiceAssociationLinkOperations.cs index b18e3a03c81e..cbcb0a1a124b 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ContainerLogsOperations.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ServiceAssociationLinkOperations.cs @@ -23,12 +23,12 @@ namespace Microsoft.Azure.Management.ContainerInstance using System.Threading.Tasks; /// - /// ContainerLogsOperations operations. + /// ServiceAssociationLinkOperations operations. /// - internal partial class ContainerLogsOperations : IServiceOperations, IContainerLogsOperations + internal partial class ServiceAssociationLinkOperations : IServiceOperations, IServiceAssociationLinkOperations { /// - /// Initializes a new instance of the ContainerLogsOperations class. + /// Initializes a new instance of the ServiceAssociationLinkOperations class. /// /// /// Reference to the service client. @@ -36,7 +36,7 @@ internal partial class ContainerLogsOperations : IServiceOperations /// Thrown when a required parameter is null /// - internal ContainerLogsOperations(ContainerInstanceManagementClient client) + internal ServiceAssociationLinkOperations(ContainerInstanceManagementClient client) { if (client == null) { @@ -51,24 +51,20 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) public ContainerInstanceManagementClient Client { get; private set; } /// - /// Get the logs for a specified container instance. + /// Delete the container instance service association link for the subnet. /// /// - /// Get the logs for a specified container instance in a specified resource - /// group and container group. + /// Delete the container instance service association link for the subnet. This + /// operation unblocks user from deleting subnet. /// /// /// The name of the resource group. /// - /// - /// The name of the container group. + /// + /// The name of the virtual network. /// - /// - /// The name of the container instance. - /// - /// - /// The number of lines to show from the tail of the container instance log. If - /// not provided, all available logs are shown up to 4mb. + /// + /// The name of the subnet. /// /// /// Headers that will be added to request. @@ -79,9 +75,6 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -91,7 +84,7 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, int? tail = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string virtualNetworkName, string subnetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -105,13 +98,13 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (containerGroupName == null) + if (virtualNetworkName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "containerGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "virtualNetworkName"); } - if (containerName == null) + if (subnetName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "containerName"); + throw new ValidationException(ValidationRules.CannotBeNull, "subnetName"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -121,28 +114,23 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); - tracingParameters.Add("containerGroupName", containerGroupName); - tracingParameters.Add("containerName", containerName); - tracingParameters.Add("tail", tail); + tracingParameters.Add("virtualNetworkName", virtualNetworkName); + tracingParameters.Add("subnetName", subnetName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{containerGroupName}", System.Uri.EscapeDataString(containerGroupName)); - _url = _url.Replace("{containerName}", System.Uri.EscapeDataString(containerName)); + _url = _url.Replace("{virtualNetworkName}", System.Uri.EscapeDataString(virtualNetworkName)); + _url = _url.Replace("{subnetName}", System.Uri.EscapeDataString(subnetName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } - if (tail != null) - { - _queryParameters.Add(string.Format("tail={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(tail, Client.SerializationSettings).Trim('"')))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -150,7 +138,7 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -201,7 +189,7 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -236,31 +224,13 @@ internal ContainerLogsOperations(ContainerInstanceManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + 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); diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ServiceAssociationLinkOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ServiceAssociationLinkOperationsExtensions.cs new file mode 100644 index 000000000000..abaad8123b21 --- /dev/null +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/ServiceAssociationLinkOperationsExtensions.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ServiceAssociationLinkOperations. + /// + public static partial class ServiceAssociationLinkOperationsExtensions + { + /// + /// Delete the container instance service association link for the subnet. + /// + /// + /// Delete the container instance service association link for the subnet. This + /// operation unblocks user from deleting subnet. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + public static void Delete(this IServiceAssociationLinkOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName) + { + operations.DeleteAsync(resourceGroupName, virtualNetworkName, subnetName).GetAwaiter().GetResult(); + } + + /// + /// Delete the container instance service association link for the subnet. + /// + /// + /// Delete the container instance service association link for the subnet. This + /// operation unblocks user from deleting subnet. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the virtual network. + /// + /// + /// The name of the subnet. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IServiceAssociationLinkOperations operations, string resourceGroupName, string virtualNetworkName, string subnetName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, virtualNetworkName, subnetName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperationsExtensions.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperationsExtensions.cs deleted file mode 100644 index 7fd944ac4bac..000000000000 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Generated/StartContainerOperationsExtensions.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.ContainerInstance -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for StartContainerOperations. - /// - public static partial class StartContainerOperationsExtensions - { - /// - /// Starts the exec command for a specific container instance. - /// - /// - /// Starts the exec command for a specified container instance in a specified - /// resource group and container group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. - /// - /// - /// The name of the container group. - /// - /// - /// The name of the container instance. - /// - /// - /// The request for the exec command. - /// - public static ContainerExecResponse LaunchExec(this IStartContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest) - { - return operations.LaunchExecAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest).GetAwaiter().GetResult(); - } - - /// - /// Starts the exec command for a specific container instance. - /// - /// - /// Starts the exec command for a specified container instance in a specified - /// resource group and container group. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group. - /// - /// - /// The name of the container group. - /// - /// - /// The name of the container instance. - /// - /// - /// The request for the exec command. - /// - /// - /// The cancellation token. - /// - public static async Task LaunchExecAsync(this IStartContainerOperations operations, string resourceGroupName, string containerGroupName, string containerName, ContainerExecRequest containerExecRequest, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.LaunchExecWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, containerExecRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj b/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj index 2c50d8d92883..c9b676e7a1ff 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Microsoft.Azure.Management.ContainerInstance.csproj @@ -5,13 +5,13 @@ Microsoft Azure Container Instance Management Library - 1.1.0 + 2.0.0 Microsoft.Azure.Management.ContainerInstance Microsoft.Azure.Management.ContainerInstance Microsoft Azure Container Instance Management;Container Instance; diff --git a/src/SDKs/ContainerInstance/Management.ContainerInstance/Properties/AssemblyInfo.cs b/src/SDKs/ContainerInstance/Management.ContainerInstance/Properties/AssemblyInfo.cs index 9b9d202f8a64..d51c334e674b 100644 --- a/src/SDKs/ContainerInstance/Management.ContainerInstance/Properties/AssemblyInfo.cs +++ b/src/SDKs/ContainerInstance/Management.ContainerInstance/Properties/AssemblyInfo.cs @@ -7,6 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Container Instance Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Container Instance.")] +[assembly: AssemblyVersion("2.0.0.0")] +[assembly: AssemblyFileVersion("2.0.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/src/SDKs/_metadata/containerinstance_resource-manager.txt b/src/SDKs/_metadata/containerinstance_resource-manager.txt index 999086b3bac2..b6955c147fba 100644 --- a/src/SDKs/_metadata/containerinstance_resource-manager.txt +++ b/src/SDKs/_metadata/containerinstance_resource-manager.txt @@ -1,17 +1,14 @@ -Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerinstance/resource-manager/readme.md --csharp --csharp-sdks-folder=F:\github\azure-sdk-for-net\tools\..\src\SDKs\ --version=latest --reflect-api-versions -2018-04-11 18:42:02 UTC -1) azure-rest-api-specs repository information +Installing AutoRest version: latest +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/containerinstance/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Users\sakreter\mainWork\azure-sdk-for-net\src\SDKs +2018-10-10 17:33:11 UTC +Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: d2316a3096006c9d0390fc6ec6dff31c0e65288a - -2) AutoRest information +Commit: 396d6db190fd12c5a39478d0c730327bca2cf2d6 +AutoRest information Requested version: latest -Bootstrapper version: C:\Users\chshou\AppData\Roaming\npm `-- autorest@2.0.4262 - - -Latest installed version: -.\tools\generate.ps1 was invoked by generate.ps1 - - +Bootstrapper version: autorest@2.0.4283