From 9b009794e9aaa55f38461f7bc03fe906b1651ce7 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Wed, 25 Jul 2018 09:23:26 -0700 Subject: [PATCH 01/19] renamed the command in the example readme --- src/mesh/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesh/README.rst b/src/mesh/README.rst index fa202dcbc92..2b3f99532d1 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -9,7 +9,7 @@ Commands to manage Azure Service Fabric Mesh resources az mesh: Manage Azure Service Fabric Mesh resources. Commands: - app create: Create an application. + app deployment create: Create an application. app delete: Delete an application. app list : List applications. app show : Show the details of an application. @@ -20,7 +20,7 @@ Commands to create an application :: Command - az mesh app create: Create an Service Fabric Mesh application. + az mesh deployment create: Create an Service Fabric Mesh application. Arguments --resource-group -g [Required]: Name of resource group. You can configure the default group From 4e95a232fdf6ee0597e573039c45696cd318ad69 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 10:42:48 -0700 Subject: [PATCH 02/19] incremented version for previous PR --- src/mesh/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/setup.py b/src/mesh/setup.py index 1d8870099fb..d93e05848e1 100644 --- a/src/mesh/setup.py +++ b/src/mesh/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.9.0" +VERSION = "0.9.1" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From e6a2970503358e6084261870c250a3641f21e09c Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 10:54:00 -0700 Subject: [PATCH 03/19] updated mesh in the index.json --- src/index.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.json b/src/index.json index fa0eff78075..38434fb593c 100644 --- a/src/index.json +++ b/src/index.json @@ -920,9 +920,9 @@ ], "mesh": [ { - "filename": "mesh-0.9.0-py2.py3-none-any.whl", - "sha256Digest": "fcfdaadd48b7ac5bb7248d07c0d8f20f2057faeed58b9e70634df3afb6ec84b5", - "downloadUrl": "https://meshcli.blob.core.windows.net/cli/mesh-0.9.0-py2.py3-none-any.whl", + "filename": "mesh-0.9.1-py2.py3-none-any.whl", + "sha256Digest": "0c3a9d251910208139baf854d03de925e4d9b46bee99208f61ca4dcd2382eaa7", + "downloadUrl": "https://meshcli.blob.core.windows.net/cli/mesh-0.9.1-py2.py3-none-any.whl", "metadata": { "azext.minCliCoreVersion": "2.0.30", "azext.isPreview": true, @@ -948,7 +948,7 @@ "metadata_version": "2.0", "name": "mesh", "summary": "Support for Microsoft Azure Service Fabric Mesh - Public Preview", - "version": "0.9.0" + "version": "0.9.1" } } ] From cb356eed829db9cb37fdc8cb270f321306aba0ce Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 10:56:01 -0700 Subject: [PATCH 04/19] fixed command name for deployment --- src/mesh/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/README.rst b/src/mesh/README.rst index 2b3f99532d1..53c3c0facb8 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -9,7 +9,7 @@ Commands to manage Azure Service Fabric Mesh resources az mesh: Manage Azure Service Fabric Mesh resources. Commands: - app deployment create: Create an application. + deployment create: Create an application. app delete: Delete an application. app list : List applications. app show : Show the details of an application. From 921fee0acd52af4d5562812933a25c5bef3a972f Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 11:13:59 -0700 Subject: [PATCH 05/19] added version change to table --- src/mesh/HISTORY.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesh/HISTORY.rst b/src/mesh/HISTORY.rst index 29ca537bc34..c6218a300c9 100644 --- a/src/mesh/HISTORY.rst +++ b/src/mesh/HISTORY.rst @@ -3,6 +3,11 @@ Release History =============== +0.9.1 (2018-07-26) +++++++++++++++++++ + +* Fix output in table format for volume list. + 0.9.0 (2018-07-16) ++++++++++++++++++ From 5831f0a2563caa67f118c55d0b1c0ff37f438914 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 11:21:48 -0700 Subject: [PATCH 06/19] pasted in latest -h --- src/mesh/README.rst | 61 ++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/src/mesh/README.rst b/src/mesh/README.rst index 53c3c0facb8..a3dc0101a25 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -1,6 +1,6 @@ Microsoft Azure CLI 'mesh' Command Module ============================================================== - +Official doc https://docs.microsoft.com/en-us/azure/service-fabric-mesh/ Commands to manage Azure Service Fabric Mesh resources ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :: @@ -19,31 +19,34 @@ Commands to create an application ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :: - Command - az mesh deployment create: Create an Service Fabric Mesh application. - - Arguments - --resource-group -g [Required]: Name of resource group. You can configure the default group - using `az configure --defaults group=`. - --mode - --no-wait : Do not wait for the long-running operation to finish. - --parameters - --template-file : The full file path of creation template. - --template-uri : The full file path of creation template on a http or https link. - - Global Arguments - --debug : Increase logging verbosity to show all debug logs. - --help -h : Show this help message and exit. - --output -o : Output format. Allowed values: json, jsonc, table, tsv. - Default: json. - --query : JMESPath query string. See http://jmespath.org/ for more - information and examples. - --verbose : Increase logging verbosity. Use --debug for full debug logs. - - Examples - Create an application with a template file on the remote. - az mesh app create --resource-group mygroup --template-uri - https://seabreezequickstart.blob.core.windows.net/quickstart/application-quickstart.json - - Create an application with a template file on local disk. - az mesh app create --resource-group mygroup --template-file ./appTemplate.json + Command + az mesh deployment create: Create a Service Fabric Mesh application. + + Arguments + --resource-group -g [Required]: Name of resource group. You can configure the default group + using `az configure --defaults group=`. + --mode + --name -n : The deployment name. Default to template file base name. + --no-wait : Do not wait for the long-running operation to finish. + --parameters + --template-file : The full file path of creation template. + --template-uri : The full file path of creation template on a http or https link. + + Global Arguments + --debug : Increase logging verbosity to show all debug logs. + --help -h : Show this help message and exit. + --output -o : Output format. Allowed values: json, jsonc, table, tsv. + Default: json. + --query : JMESPath query string. See http://jmespath.org/ for more + information and examples. + --subscription : Name or ID of subscription. You can configure the default + subscription using `az account set -s NAME_OR_ID`". + --verbose : Increase logging verbosity. Use --debug for full debug logs. + + Examples + Create a deployment with a template file on the remote. + az mesh deployment create --resource-group mygroup --template-uri + https://seabreezequickstart.blob.core.windows.net/templates/quickstart/sbz_rp.linux.json + + Create a deployment with a template file on local disk. + az mesh deployment create --resource-group mygroup --template-file ./appTemplate.json From f849716be9d1570fa8cbf11d7e095b5920f69eb6 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 11:25:35 -0700 Subject: [PATCH 07/19] improved readme.rst with all of the current -h output --- src/mesh/README.rst | 80 +++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/src/mesh/README.rst b/src/mesh/README.rst index a3dc0101a25..33148484cdb 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -4,49 +4,51 @@ Official doc https://docs.microsoft.com/en-us/azure/service-fabric-mesh/ Commands to manage Azure Service Fabric Mesh resources ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :: - Group - az mesh: Manage Azure Service Fabric Mesh resources. + az mesh: Manage Azure Service Fabric Mesh Resources. + + Subgroups: + app : Manage Service Fabric Mesh applications. + code-package-log: Examine the logs for a codepackage. + deployment : Manage Service Fabric Mesh deployments. + network : Manage networks. + service : Manage Service Fabric Mesh services. + service-replica : Manage Service Fabric Mesh service replicas. + volume : Manage volumes. - Commands: - deployment create: Create an application. - app delete: Delete an application. - app list : List applications. - app show : Show the details of an application. - codepackage logs : Tail the log of a container. Commands to create an application ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :: - Command - az mesh deployment create: Create a Service Fabric Mesh application. - - Arguments - --resource-group -g [Required]: Name of resource group. You can configure the default group - using `az configure --defaults group=`. - --mode - --name -n : The deployment name. Default to template file base name. - --no-wait : Do not wait for the long-running operation to finish. - --parameters - --template-file : The full file path of creation template. - --template-uri : The full file path of creation template on a http or https link. - - Global Arguments - --debug : Increase logging verbosity to show all debug logs. - --help -h : Show this help message and exit. - --output -o : Output format. Allowed values: json, jsonc, table, tsv. - Default: json. - --query : JMESPath query string. See http://jmespath.org/ for more - information and examples. - --subscription : Name or ID of subscription. You can configure the default - subscription using `az account set -s NAME_OR_ID`". - --verbose : Increase logging verbosity. Use --debug for full debug logs. - - Examples - Create a deployment with a template file on the remote. - az mesh deployment create --resource-group mygroup --template-uri - https://seabreezequickstart.blob.core.windows.net/templates/quickstart/sbz_rp.linux.json - - Create a deployment with a template file on local disk. - az mesh deployment create --resource-group mygroup --template-file ./appTemplate.json +-Command + az mesh deployment create: Create a Service Fabric Mesh application. + +-Arguments + --resource-group -g [Required]: Name of resource group. You can configure the default group + using `az configure --defaults group=`. + --mode + --name -n : The deployment name. Default to template file base name. + --no-wait : Do not wait for the long-running operation to finish. + --parameters + --template-file : The full file path of creation template. + --template-uri : The full file path of creation template on a http or https link. + +-Global Arguments + --debug : Increase logging verbosity to show all debug logs. + --help -h : Show this help message and exit. + --output -o : Output format. Allowed values: json, jsonc, table, tsv. + Default: json. + --query : JMESPath query string. See http://jmespath.org/ for more + information and examples. + --subscription : Name or ID of subscription. You can configure the default + subscription using `az account set -s NAME_OR_ID`". + --verbose : Increase logging verbosity. Use --debug for full debug logs. + +-Examples + Create a deployment with a template file on the remote. + az mesh deployment create --resource-group mygroup --template-uri + https://seabreezequickstart.blob.core.windows.net/templates/quickstart/sbz_rp.linux.json + + Create a deployment with a template file on local disk. + az mesh deployment create --resource-group mygroup --template-file ./appTemplate.json From 975853f2181471f063389ec60a2855c08711f7ae Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Thu, 26 Jul 2018 11:39:46 -0700 Subject: [PATCH 08/19] fixed project url for mesh extensions --- src/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.json b/src/index.json index 38434fb593c..fac0c13a847 100644 --- a/src/index.json +++ b/src/index.json @@ -939,7 +939,7 @@ "description": "DESCRIPTION.rst" }, "project_urls": { - "Home": "https://github.com/Azure/azure-cli" + "Home": "https://github.com/Azure/azure-cli-extensions" } } }, From 7c10c28320576dbeda1c8e76fb6b2569d58e6d37 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 30 Jul 2018 10:13:20 -0700 Subject: [PATCH 09/19] added tests --- .../tests/latest/data/template1.json | 93 +++ .../latest/recordings/test_app_commands.yaml | 59 ++ .../recordings/test_service_commands.yaml | 540 +++++++++++++++++ .../test_service_replica_commands.yaml | 573 ++++++++++++++++++ .../tests/latest/test_mesh_commands.py | 128 ++++ 5 files changed, 1393 insertions(+) create mode 100644 src/mesh/azext_mesh/servicefabricmesh/tests/latest/data/template1.json create mode 100644 src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml create mode 100644 src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml create mode 100644 src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml create mode 100644 src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/data/template1.json b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/data/template1.json new file mode 100644 index 00000000000..35e930ad07d --- /dev/null +++ b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/data/template1.json @@ -0,0 +1,93 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", + "parameters": { + "location": { + "type": "string", + "metadata": { + "description": "Location of the resources." + }, + "defaultValue": "eastus" + } + }, + "resources": [ + { + "apiVersion": "2018-07-01-preview", + "name": "helloWorldNetwork", + "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters('location')]", + "dependsOn": [], + "properties": { + "addressPrefix": "10.0.0.4/22", + "ingressConfig": { + "layer4": [ + { + "name": "helloWorldIngress", + "publicPort": "80", + "applicationName": "helloWorldApp", + "serviceName": "helloWorldService", + "endpointName": "helloWorldListener" + } + ] + } + } + }, + { + "apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", + "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters('location')]", + "dependsOn": [ + "Microsoft.ServiceFabricMesh/networks/helloWorldNetwork" + ], + "properties": { + "description": "Service Fabric Mesh HelloWorld Application!", + "services": [ + { + "type": "Microsoft.ServiceFabricMesh/services", + "location": "[parameters('location')]", + "name": "helloWorldService", + "properties": { + "description": "Service Fabric Mesh Hello World Service.", + "osType": "linux", + "codePackages": [ + { + "name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", + "endpoints": [ + { + "name": "helloWorldListener", + "port": "80" + } + ], + "resources": { + "requests": { + "cpu": "1", + "memoryInGB": "1" + } + } + }, + { + "name": "helloWorldSideCar", + "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": { + "requests": { + "cpu": "1", + "memoryInGB": "1" + } + } + } + ], + "replicaCount": "1", + "networkRefs": [ + { + "name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'helloWorldNetwork')]" + } + ] + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml new file mode 100644 index 00000000000..b7372341951 --- /dev/null +++ b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml @@ -0,0 +1,59 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-07-26T20:43:55Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-26T20:43:55Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['274'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:43:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 26 Jul 2018 20:43:59 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdVNDVSSVI0WUhYLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml new file mode 100644 index 00000000000..3711ca64c5a --- /dev/null +++ b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml @@ -0,0 +1,540 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-07-26T20:43:59Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-26T20:43:59Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['274'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:44:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:44:02.503993Z","duration":"PT0S","correlationId":"1430d3a6-cf21-4c6e-b5d4-51af30fc70c9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3009'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:44:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-26T20:44:03.7724165Z","duration":"PT0.3318146S","correlationId":"5944c821-e6d9-4845-b30d-f2cf3fde601a","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586689690420370127?api-version=2018-05-01'] + cache-control: [no-cache] + content-length: ['1201'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:44:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689690420370127?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:44:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689690420370127?api-version=2018-05-01 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:44:47.3110605Z","duration":"PT43.8704586S","correlationId":"5944c821-e6d9-4845-b30d-f2cf3fde601a","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1547'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:45:10.0777049Z","duration":"PT0S","correlationId":"37434847-0f71-4797-b0e4-554a55017bbb","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3010'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:44:47.3110605Z","duration":"PT43.8704586S","correlationId":"5944c821-e6d9-4845-b30d-f2cf3fde601a","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1547'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ + Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ + Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ + \n \"status\": \"Ready\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['529'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:45:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ + \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ + : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ + ,\r\n \"publicIPAddress\": \"40.121.65.125\",\r\n \"layer4\": [\r\ + \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ + publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ + \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ + : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['756'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:45:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"\ + properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ + \ \"description\": \"Service Fabric Mesh HelloWorld Application!\",\r\n\ + \ \"healthState\": \"Ok\",\r\n \"serviceNames\": [\r\n \ + \ \"helloWorldService\"\r\n ],\r\n \"status\": \"Ready\"\ + \r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['618'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:45:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh service list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"helloWorldService\"\ + ,\r\n \"type\": \"Microsoft.ServiceFabricMesh/services\",\r\n \"\ + location\": \"eastus\",\r\n \"properties\": {\r\n \"osType\":\ + \ \"Linux\",\r\n \"codePackages\": [\r\n {\r\n \ + \ \"name\": \"helloWorldCode\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\"\ + ,\r\n \"endpoints\": [\r\n {\r\n \"\ + name\": \"helloWorldListener\",\r\n \"port\": 80\r\n \ + \ }\r\n ],\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 \"name\": \"helloWorldSideCar\",\r\n \ + \ \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\",\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 \"networkRefs\"\ + : [\r\n {\r\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + \r\n }\r\n ],\r\n \"description\": \"Service Fabric\ + \ Mesh Hello World Service.\",\r\n \"replicaCount\": 1,\r\n \ + \ \"healthState\": \"Ok\",\r\n \"status\": \"Active\"\r\n }\r\n\ + \ }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1387'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:45:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh service show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"name\": \"helloWorldService\",\r\n \"type\": \"Microsoft.ServiceFabricMesh/services\"\ + ,\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"osType\"\ + : \"Linux\",\r\n \"codePackages\": [\r\n {\r\n \"name\": \"\ + helloWorldCode\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\"\ + ,\r\n \"endpoints\": [\r\n {\r\n \"name\": \"helloWorldListener\"\ + ,\r\n \"port\": 80\r\n }\r\n ],\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 \"name\": \"helloWorldSideCar\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\"\ + ,\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 \"networkRefs\": [\r\n {\r\n \ + \ \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + \r\n }\r\n ],\r\n \"description\": \"Service Fabric Mesh Hello\ + \ World Service.\",\r\n \"replicaCount\": 1,\r\n \"healthState\": \"\ + Ok\",\r\n \"status\": \"Active\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1182'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:45:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 26 Jul 2018 20:45:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 26 Jul 2018 20:45:21 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkczQUJUTEIySzZCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml new file mode 100644 index 00000000000..46066c53f80 --- /dev/null +++ b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml @@ -0,0 +1,573 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-07-26T20:45:22Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-26T20:45:22Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['274'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:45:24.8115649Z","duration":"PT0S","correlationId":"3972cda5-9bfa-455d-9866-ff0bf6fa083d","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3010'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-26T20:45:26.2500967Z","duration":"PT0.4022815S","correlationId":"0d4d883e-8389-4bd6-866b-d038160ebbae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586689689596297975?api-version=2018-05-01'] + cache-control: [no-cache] + content-length: ['1201'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689689596297975?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:45:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689689596297975?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:46:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689689596297975?api-version=2018-05-01 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:46:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:46:28.0473215Z","duration":"PT1M2.1995063S","correlationId":"0d4d883e-8389-4bd6-866b-d038160ebbae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1548'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:46:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:47:02.4047126Z","duration":"PT0S","correlationId":"b7b8cb85-6697-4a65-bd26-5de6e31cebaa","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3010'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:47:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:46:28.0473215Z","duration":"PT1M2.1995063S","correlationId":"0d4d883e-8389-4bd6-866b-d038160ebbae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1548'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 26 Jul 2018 20:47:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ + Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ + Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ + \n \"status\": \"Ready\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['529'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:47:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ + \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ + : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ + ,\r\n \"publicIPAddress\": \"40.121.65.125\",\r\n \"layer4\": [\r\ + \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ + publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ + \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ + : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['756'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:47:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"\ + properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ + \ \"description\": \"Service Fabric Mesh HelloWorld Application!\",\r\n\ + \ \"healthState\": \"Ok\",\r\n \"serviceNames\": [\r\n \ + \ \"helloWorldService\"\r\n ],\r\n \"status\": \"Ready\"\ + \r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['618'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:47:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh service-replica list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"osType\": \"Linux\",\r\ + \n \"codePackages\": [\r\n {\r\n \"name\": \"helloWorldCode\"\ + ,\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\",\r\ + \n \"endpoints\": [\r\n {\r\n \"name\": \"\ + helloWorldListener\",\r\n \"port\": 80\r\n }\r\n \ + \ ],\r\n \"resources\": {\r\n \"requests\": {\r\ + \n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n \ + \ }\r\n },\r\n \"instanceView\": {\r\n \ + \ \"restartCount\": 1,\r\n \"currentState\": {\r\n \ + \ \"state\": \"Running\",\r\n \"exitCode\": \"0\"\r\n \ + \ },\r\n \"previousState\": {\r\n \"state\"\ + : \"NotSpecified\",\r\n \"exitCode\": \"0\"\r\n }\r\ + \n }\r\n },\r\n {\r\n \"name\": \"helloWorldSideCar\"\ + ,\r\n \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\"\ + ,\r\n \"resources\": {\r\n \"requests\": {\r\n \ + \ \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n \ + \ }\r\n },\r\n \"instanceView\": {\r\n \"restartCount\"\ + : 1,\r\n \"currentState\": {\r\n \"state\": \"Running\"\ + ,\r\n \"exitCode\": \"0\"\r\n },\r\n \"\ + previousState\": {\r\n \"state\": \"NotSpecified\",\r\n \ + \ \"exitCode\": \"0\"\r\n }\r\n }\r\n }\r\ + \n ],\r\n \"networkRefs\": [\r\n {\r\n \"name\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + \r\n }\r\n ],\r\n \"replicaName\": \"0\"\r\n }\r\n ]\r\ + \n}"} + headers: + cache-control: [no-cache] + content-length: ['1651'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:47:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh service-replica show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas/0?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"osType\": \"Linux\",\r\n \"codePackages\": [\r\n \ + \ {\r\n \"name\": \"helloWorldCode\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\"\ + ,\r\n \"endpoints\": [\r\n {\r\n \"name\": \"helloWorldListener\"\ + ,\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\"\ + : {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \ + \ \"cpu\": 1.0\r\n }\r\n },\r\n \"instanceView\": {\r\ + \n \"restartCount\": 1,\r\n \"currentState\": {\r\n \ + \ \"state\": \"Running\",\r\n \"exitCode\": \"0\"\r\n },\r\ + \n \"previousState\": {\r\n \"state\": \"NotSpecified\",\r\ + \n \"exitCode\": \"0\"\r\n }\r\n }\r\n },\r\n {\r\ + \n \"name\": \"helloWorldSideCar\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\"\ + ,\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\"\ + : 1.0,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"instanceView\"\ + : {\r\n \"restartCount\": 1,\r\n \"currentState\": {\r\n \ + \ \"state\": \"Running\",\r\n \"exitCode\": \"0\"\r\n \ + \ },\r\n \"previousState\": {\r\n \"state\": \"NotSpecified\"\ + ,\r\n \"exitCode\": \"0\"\r\n }\r\n }\r\n }\r\n ],\r\ + \n \"networkRefs\": [\r\n {\r\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + \r\n }\r\n ],\r\n \"replicaName\": \"0\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1390'] + content-type: [application/json] + date: ['Thu, 26 Jul 2018 20:47:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 26 Jul 2018 20:47:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 26 Jul 2018 20:47:11 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdQWjZPTE1MQUVMLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py new file mode 100644 index 00000000000..df1a28ed32e --- /dev/null +++ b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py @@ -0,0 +1,128 @@ +import unittest +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +import os + + +def _get_test_data_file(filename): + curr_dir = os.path.dirname(os.path.realpath(__file__)) + return os.path.join(curr_dir, 'data', filename).replace('\\', '\\\\') + # return os.path.abspath(os.path.join(os.path.abspath(__file__), 'data', filename)).replace("\\", "\\") + + +class AzureMeshServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer(random_name_length=20) + def test_app_commands(self, resource_group): + app_name = 'helloWorldApp' + self.kwargs.update({ + 'resource_id': '', + 'resource_group': resource_group, + 'deployment_name': self.create_random_name(prefix='cli', length=24), + 'app_name': app_name, + 'template_location': _get_test_data_file('template1.json') + }) + + # Test create + self.cmd('az mesh deployment create -g {rg} --template-file {template_location} --name {deployment_name}') + + # Test list + app_list = self.cmd('az mesh app list --resource-group {rg}', checks=[ + self.check('[0].name', app_name) + ]).get_output_in_json() + assert len(app_list) == 1 + + # Test show resource group/name + data = self.cmd('az mesh app show --resource-group {rg} --name {app_name}', checks=[ + self.exists('description'), + self.check('healthState', 'Ok'), + self.exists('id'), + self.exists('location'), + self.check('name', app_name), + self.check('provisioningState', 'Succeeded'), + self.exists('serviceNames'), + self.check('resourceGroup', resource_group), + self.check('status', 'Ready'), + self.exists('type') + ]).get_output_in_json() + resource_id = data['id'] + + # Test show resource id + show_data = self.cmd('az mesh app show --id {0}'.format(resource_id)).get_output_in_json() + + assert data == show_data + + # Test delete + self.cmd('az mesh app delete -g {rg} --name {app_name} --yes') + + app_list = self.cmd('az mesh app list --resource-group {rg}').get_output_in_json() + assert len(app_list) == 0 + + @ResourceGroupPreparer(random_name_length=20) + def test_service_commands(self, resource_group): + app_name = 'helloWorldApp' + + self.kwargs.update({ + 'resource_id': '', + 'resource_group': resource_group, + 'deployment_name': self.create_random_name(prefix='cli', length=24), + 'app_name': app_name, + 'service_name': 'helloWorldService', + 'template_location': _get_test_data_file('template1.json') + + }) + + self.cmd('az mesh deployment create -g {rg} --template-file {template_location} --name {deployment_name}') + + app_list = self.cmd('az mesh app list --resource-group {rg}', checks=[ + self.check('[0].name', app_name) + ]).get_output_in_json() + assert len(app_list) == 1 + + # Test list + service_list = self.cmd('az mesh service list --resource-group {rg} --app-name {app_name}', checks=[ + + ]).get_output_in_json() + assert len(service_list) == 1 + + # Test show + self.cmd('az mesh service show --resource-group {rg} --app-name {app_name} --name {service_name}', checks=[]) + + self.cmd('az mesh app delete -g {rg} --name {app_name} --yes') + + @ResourceGroupPreparer(random_name_length=20) + def test_service_replica_commands(self, resource_group): + app_name = 'helloWorldApp' + + self.kwargs.update({ + 'resource_group': resource_group, + 'deployment_name': self.create_random_name(prefix='cli', length=24), + 'app_name': app_name, + 'service_name': 'helloWorldService', + 'replica_name': 0, + 'template_location': _get_test_data_file('template1.json') + + }) + + self.cmd('az mesh deployment create -g {rg} --template-file {template_location} --name {deployment_name}') + + app_list = self.cmd('az mesh app list --resource-group {rg}', checks=[ + self.check('[0].name', app_name) + ]).get_output_in_json() + assert len(app_list) == 1 + + # Test list + service_list = self.cmd('az mesh service-replica list --resource-group {rg} --app-name {app_name} --service-name {service_name}',).get_output_in_json() + assert len(service_list) == 1 + + # Test show + self.cmd('az mesh service-replica show --resource-group {rg} --app-name {app_name} --service-name {service_name} --replica-name {replica_name}', checks=[ + self.exists('codePackages'), + self.exists('networkRefs'), + self.exists('osType'), + self.exists('replicaName'), + ]) + + self.cmd('az mesh app delete -g {rg} --name {app_name} --yes') + + +if __name__ == '__main__': + unittest.main() From 9ee5c13410e6c13fe32630fff401dd12fe6b27f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 30 Jul 2018 10:50:45 -0700 Subject: [PATCH 10/19] fixed tests --- .../latest/recordings/test_app_commands.yaml | 59 -- .../tests/latest/data/template1.json | 0 .../latest/recordings/test_app_commands.yaml | 545 ++++++++++++++++++ .../recordings/test_service_commands.yaml | 56 +- .../test_service_replica_commands.yaml | 89 +-- .../tests/latest/test_mesh_commands.py | 1 - 6 files changed, 605 insertions(+), 145 deletions(-) delete mode 100644 src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml rename src/mesh/azext_mesh/{servicefabricmesh => }/tests/latest/data/template1.json (100%) create mode 100644 src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml rename src/mesh/azext_mesh/{servicefabricmesh => }/tests/latest/recordings/test_service_commands.yaml (90%) rename src/mesh/azext_mesh/{servicefabricmesh => }/tests/latest/recordings/test_service_replica_commands.yaml (87%) rename src/mesh/azext_mesh/{servicefabricmesh => }/tests/latest/test_mesh_commands.py (97%) diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml b/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml deleted file mode 100644 index b7372341951..00000000000 --- a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_app_commands.yaml +++ /dev/null @@ -1,59 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-07-26T20:43:55Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-26T20:43:55Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['274'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:43:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 26 Jul 2018 20:43:59 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdVNDVSSVI0WUhYLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/data/template1.json b/src/mesh/azext_mesh/tests/latest/data/template1.json similarity index 100% rename from src/mesh/azext_mesh/servicefabricmesh/tests/latest/data/template1.json rename to src/mesh/azext_mesh/tests/latest/data/template1.json diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml new file mode 100644 index 00000000000..094372fe9a5 --- /dev/null +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml @@ -0,0 +1,545 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-07-30T17:44:18Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-30T17:44:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:44:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:44:27.2016234Z","duration":"PT0S","correlationId":"3a152655-70d6-499a-b929-3a27ea35e23c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3010'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:44:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-30T17:44:28.8075496Z","duration":"PT0.5039956S","correlationId":"4315832c-e01d-41aa-a1b4-4162dd7b0007","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586686342171740553?api-version=2018-05-01'] + cache-control: [no-cache] + content-length: ['1201'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:44:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686342171740553?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:44:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686342171740553?api-version=2018-05-01 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:45:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:15.1260565Z","duration":"PT46.8225025S","correlationId":"4315832c-e01d-41aa-a1b4-4162dd7b0007","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1547'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:45:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:35.2086098Z","duration":"PT0S","correlationId":"f8bd1e43-faa7-4574-b7fe-6fa644344c95","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3010'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:45:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:15.1260565Z","duration":"PT46.8225025S","correlationId":"4315832c-e01d-41aa-a1b4-4162dd7b0007","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1547'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:45:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ + Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ + Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ + \n \"status\": \"Ready\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['529'] + content-type: [application/json] + date: ['Mon, 30 Jul 2018 17:45:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ + \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ + : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ + ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ + \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ + publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ + \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ + : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['756'] + content-type: [application/json] + date: ['Mon, 30 Jul 2018 17:45:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"\ + properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ + \ \"description\": \"Service Fabric Mesh HelloWorld Application!\",\r\n\ + \ \"healthState\": \"Ok\",\r\n \"serviceNames\": [\r\n \ + \ \"helloWorldService\"\r\n ],\r\n \"status\": \"Ready\"\ + \r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['618'] + content-type: [application/json] + date: ['Mon, 30 Jul 2018 17:45:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ + Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ + Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ + \n \"status\": \"Ready\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['529'] + content-type: [application/json] + date: ['Mon, 30 Jul 2018 17:45:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ + Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ + Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ + \n \"status\": \"Ready\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['529'] + content-type: [application/json] + date: ['Mon, 30 Jul 2018 17:45:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 30 Jul 2018 17:45:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app list] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview + response: + body: {string: '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 30 Jul 2018 17:45:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 30 Jul 2018 17:45:41 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTS0tGVUREUDRXLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml similarity index 90% rename from src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml rename to src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml index 3711ca64c5a..d95a12f3ae4 100644 --- a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-07-26T20:43:59Z"}}' + "date": "2018-07-30T17:45:42Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -16,12 +16,12 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-26T20:43:59Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-30T17:45:42Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:44:00 GMT'] + date: ['Mon, 30 Jul 2018 17:45:43 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -63,14 +63,14 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:44:02.503993Z","duration":"PT0S","correlationId":"1430d3a6-cf21-4c6e-b5d4-51af30fc70c9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:45.0254135Z","duration":"PT0S","correlationId":"f7e806eb-43a3-4af9-b9b1-1acd5a3181b0","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] - content-length: ['3009'] + content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:44:02 GMT'] + date: ['Mon, 30 Jul 2018 17:45:44 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -114,13 +114,13 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-26T20:44:03.7724165Z","duration":"PT0.3318146S","correlationId":"5944c821-e6d9-4845-b30d-f2cf3fde601a","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-30T17:45:46.4594973Z","duration":"PT0.3956639S","correlationId":"67f69e75-b2d8-4549-9fd4-b850daa3dca7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586689690420370127?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586686341394137774?api-version=2018-05-01'] cache-control: [no-cache] content-length: ['1201'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:44:03 GMT'] + date: ['Mon, 30 Jul 2018 17:45:46 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -138,14 +138,14 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689690420370127?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686341394137774?api-version=2018-05-01 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:44:34 GMT'] + date: ['Mon, 30 Jul 2018 17:46:16 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,14 +163,14 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689690420370127?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686341394137774?api-version=2018-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:04 GMT'] + date: ['Mon, 30 Jul 2018 17:46:46 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -190,12 +190,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:44:47.3110605Z","duration":"PT43.8704586S","correlationId":"5944c821-e6d9-4845-b30d-f2cf3fde601a","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:46:29.3158049Z","duration":"PT43.2519715S","correlationId":"67f69e75-b2d8-4549-9fd4-b850daa3dca7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:05 GMT'] + date: ['Mon, 30 Jul 2018 17:46:47 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -237,14 +237,14 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:45:10.0777049Z","duration":"PT0S","correlationId":"37434847-0f71-4797-b0e4-554a55017bbb","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:46:52.8313066Z","duration":"PT0S","correlationId":"5fdb1b10-4e94-4f76-a809-d5e81929a985","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:09 GMT'] + date: ['Mon, 30 Jul 2018 17:46:51 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -268,12 +268,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:44:47.3110605Z","duration":"PT43.8704586S","correlationId":"5944c821-e6d9-4845-b30d-f2cf3fde601a","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:46:29.3158049Z","duration":"PT43.2519715S","correlationId":"67f69e75-b2d8-4549-9fd4-b850daa3dca7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:10 GMT'] + date: ['Mon, 30 Jul 2018 17:46:52 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -306,7 +306,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:45:10 GMT'] + date: ['Mon, 30 Jul 2018 17:46:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -335,7 +335,7 @@ interactions: ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.121.65.125\",\r\n \"layer4\": [\r\ + ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ @@ -344,7 +344,7 @@ interactions: cache-control: [no-cache] content-length: ['756'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:45:10 GMT'] + date: ['Mon, 30 Jul 2018 17:46:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -380,7 +380,7 @@ interactions: cache-control: [no-cache] content-length: ['618'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:45:11 GMT'] + date: ['Mon, 30 Jul 2018 17:46:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -428,7 +428,7 @@ interactions: cache-control: [no-cache] content-length: ['1387'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:45:14 GMT'] + date: ['Mon, 30 Jul 2018 17:46:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -472,7 +472,7 @@ interactions: cache-control: [no-cache] content-length: ['1182'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:45:16 GMT'] + date: ['Mon, 30 Jul 2018 17:46:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -501,7 +501,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 26 Jul 2018 20:45:20 GMT'] + date: ['Mon, 30 Jul 2018 17:47:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -529,9 +529,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 26 Jul 2018 20:45:21 GMT'] + date: ['Mon, 30 Jul 2018 17:47:02 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkczQUJUTEIySzZCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdDU09EUE80TUI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml similarity index 87% rename from src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml rename to src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml index 46066c53f80..39b4a210cfd 100644 --- a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/recordings/test_service_replica_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-07-26T20:45:22Z"}}' + "date": "2018-07-30T17:47:03Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -16,12 +16,12 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-26T20:45:22Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-30T17:47:03Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:23 GMT'] + date: ['Mon, 30 Jul 2018 17:47:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -63,21 +63,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:45:24.8115649Z","duration":"PT0S","correlationId":"3972cda5-9bfa-455d-9866-ff0bf6fa083d","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:47:05.4923948Z","duration":"PT0S","correlationId":"f8c8c8b7-afac-467d-8990-2e86b3daa354","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:24 GMT'] + date: ['Mon, 30 Jul 2018 17:47:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", @@ -114,18 +114,18 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-26T20:45:26.2500967Z","duration":"PT0.4022815S","correlationId":"0d4d883e-8389-4bd6-866b-d038160ebbae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-30T17:47:06.8538549Z","duration":"PT0.4305311S","correlationId":"e541912e-b08b-42ad-ba3d-dfe80d1d9386","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586689689596297975?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586686340590542875?api-version=2018-05-01'] cache-control: [no-cache] content-length: ['1201'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:25 GMT'] + date: ['Mon, 30 Jul 2018 17:47:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -138,14 +138,14 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689689596297975?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686340590542875?api-version=2018-05-01 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:45:56 GMT'] + date: ['Mon, 30 Jul 2018 17:47:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,39 +163,14 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689689596297975?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:46:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586689689596297975?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686340590542875?api-version=2018-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:46:57 GMT'] + date: ['Mon, 30 Jul 2018 17:48:07 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -215,12 +190,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:46:28.0473215Z","duration":"PT1M2.1995063S","correlationId":"0d4d883e-8389-4bd6-866b-d038160ebbae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:47:55.4162661Z","duration":"PT48.9929423S","correlationId":"e541912e-b08b-42ad-ba3d-dfe80d1d9386","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1548'] + content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:46:57 GMT'] + date: ['Mon, 30 Jul 2018 17:48:07 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -262,21 +237,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:47:02.4047126Z","duration":"PT0S","correlationId":"b7b8cb85-6697-4a65-bd26-5de6e31cebaa","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:48:13.1393266Z","duration":"PT0S","correlationId":"c8a1d80d-e3d7-4497-8af0-2fc2a2ed18a2","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:47:02 GMT'] + date: ['Mon, 30 Jul 2018 17:48:12 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -293,12 +268,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-26T20:46:28.0473215Z","duration":"PT1M2.1995063S","correlationId":"0d4d883e-8389-4bd6-866b-d038160ebbae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:47:55.4162661Z","duration":"PT48.9929423S","correlationId":"e541912e-b08b-42ad-ba3d-dfe80d1d9386","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1548'] + content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Thu, 26 Jul 2018 20:47:01 GMT'] + date: ['Mon, 30 Jul 2018 17:48:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -331,7 +306,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:47:02 GMT'] + date: ['Mon, 30 Jul 2018 17:48:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -360,7 +335,7 @@ interactions: ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.121.65.125\",\r\n \"layer4\": [\r\ + ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ @@ -369,7 +344,7 @@ interactions: cache-control: [no-cache] content-length: ['756'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:47:02 GMT'] + date: ['Mon, 30 Jul 2018 17:48:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -405,7 +380,7 @@ interactions: cache-control: [no-cache] content-length: ['618'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:47:03 GMT'] + date: ['Mon, 30 Jul 2018 17:48:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -458,7 +433,7 @@ interactions: cache-control: [no-cache] content-length: ['1651'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:47:06 GMT'] + date: ['Mon, 30 Jul 2018 17:48:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -505,7 +480,7 @@ interactions: cache-control: [no-cache] content-length: ['1390'] content-type: [application/json] - date: ['Thu, 26 Jul 2018 20:47:08 GMT'] + date: ['Mon, 30 Jul 2018 17:48:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -534,7 +509,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 26 Jul 2018 20:47:10 GMT'] + date: ['Mon, 30 Jul 2018 17:48:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -562,9 +537,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 26 Jul 2018 20:47:11 GMT'] + date: ['Mon, 30 Jul 2018 17:48:24 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdQWjZPTE1MQUVMLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSSkpOMlozNVRYLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] diff --git a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py similarity index 97% rename from src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py rename to src/mesh/azext_mesh/tests/latest/test_mesh_commands.py index df1a28ed32e..bd86386b083 100644 --- a/src/mesh/azext_mesh/servicefabricmesh/tests/latest/test_mesh_commands.py +++ b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py @@ -6,7 +6,6 @@ def _get_test_data_file(filename): curr_dir = os.path.dirname(os.path.realpath(__file__)) return os.path.join(curr_dir, 'data', filename).replace('\\', '\\\\') - # return os.path.abspath(os.path.join(os.path.abspath(__file__), 'data', filename)).replace("\\", "\\") class AzureMeshServiceScenarioTest(ScenarioTest): From 9ae10fa7de160f7afd1b3530790a4e854888ca91 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 30 Jul 2018 11:00:02 -0700 Subject: [PATCH 11/19] added proper license header --- src/mesh/azext_mesh/tests/latest/test_mesh_commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py index bd86386b083..62ff1ef9acf 100644 --- a/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py +++ b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py @@ -1,3 +1,10 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long,unused-argument + import unittest from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer import os From bf20e90739d86957a34977d9e3089d0dd677c38b Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Wed, 1 Aug 2018 13:36:17 -0700 Subject: [PATCH 12/19] added a test for log --- src/mesh/azext_mesh/commands.py | 2 +- .../latest/recordings/test_app_commands.yaml | 341 +++++++++-- .../test_code_package_log_commands.yaml | 543 ++++++++++++++++++ .../recordings/test_service_commands.yaml | 87 ++- .../test_service_replica_commands.yaml | 87 ++- .../tests/latest/test_mesh_commands.py | 31 +- 6 files changed, 993 insertions(+), 98 deletions(-) create mode 100644 src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml diff --git a/src/mesh/azext_mesh/commands.py b/src/mesh/azext_mesh/commands.py index c444ca737a7..ef087dad9f6 100644 --- a/src/mesh/azext_mesh/commands.py +++ b/src/mesh/azext_mesh/commands.py @@ -21,7 +21,7 @@ def transform_log_output(result): """Print log. """ - print(result) + return result def transform_application(result): diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml index 094372fe9a5..92c5529a99c 100644 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-07-30T17:44:18Z"}}' + "date": "2018-08-01T19:13:14Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -16,12 +16,12 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-30T17:44:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-01T19:13:14Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:44:25 GMT'] + date: ['Wed, 01 Aug 2018 19:13:16 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -63,14 +63,14 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:44:27.2016234Z","duration":"PT0S","correlationId":"3a152655-70d6-499a-b929-3a27ea35e23c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:13:18.751927Z","duration":"PT0S","correlationId":"2cd07ebc-490d-4f2e-89a8-b8db722025f7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] - content-length: ['3010'] + content-length: ['3009'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:44:27 GMT'] + date: ['Wed, 01 Aug 2018 19:13:18 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -114,13 +114,13 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-30T17:44:28.8075496Z","duration":"PT0.5039956S","correlationId":"4315832c-e01d-41aa-a1b4-4162dd7b0007","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-01T19:13:20.2437537Z","duration":"PT0.4289613S","correlationId":"d53c52c9-ca1d-41cb-8a17-8774728511e9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586686342171740553?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586684560856628220?api-version=2018-05-01'] cache-control: [no-cache] content-length: ['1201'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:44:28 GMT'] + date: ['Wed, 01 Aug 2018 19:13:19 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -138,14 +138,139 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686342171740553?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:13:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:14:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:14:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:15:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:15:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:44:59 GMT'] + date: ['Wed, 01 Aug 2018 19:16:21 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,14 +288,164 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686342171740553?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:16:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:17:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:17:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:18:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:18:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:19:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:28 GMT'] + date: ['Wed, 01 Aug 2018 19:19:52 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -190,12 +465,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:15.1260565Z","duration":"PT46.8225025S","correlationId":"4315832c-e01d-41aa-a1b4-4162dd7b0007","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:19:29.5162116Z","duration":"PT6M9.7014192S","correlationId":"d53c52c9-ca1d-41cb-8a17-8774728511e9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1547'] + content-length: ['1548'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:29 GMT'] + date: ['Wed, 01 Aug 2018 19:19:53 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -237,21 +512,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:35.2086098Z","duration":"PT0S","correlationId":"f8bd1e43-faa7-4574-b7fe-6fa644344c95","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:19:56.5654715Z","duration":"PT0S","correlationId":"8a405343-8d96-4e92-9c4f-8495017e5a25","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:34 GMT'] + date: ['Wed, 01 Aug 2018 19:19:55 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -268,12 +543,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:15.1260565Z","duration":"PT46.8225025S","correlationId":"4315832c-e01d-41aa-a1b4-4162dd7b0007","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:19:29.5162116Z","duration":"PT6M9.7014192S","correlationId":"d53c52c9-ca1d-41cb-8a17-8774728511e9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1547'] + content-length: ['1548'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:35 GMT'] + date: ['Wed, 01 Aug 2018 19:19:56 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -306,7 +581,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:45:35 GMT'] + date: ['Wed, 01 Aug 2018 19:19:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -335,16 +610,16 @@ interactions: ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ + ,\r\n \"publicIPAddress\": \"137.117.72.249\",\r\n \"layer4\": [\r\ \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['756'] + content-length: ['757'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:45:35 GMT'] + date: ['Wed, 01 Aug 2018 19:19:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -380,7 +655,7 @@ interactions: cache-control: [no-cache] content-length: ['618'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:45:36 GMT'] + date: ['Wed, 01 Aug 2018 19:19:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -415,7 +690,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:45:36 GMT'] + date: ['Wed, 01 Aug 2018 19:19:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -450,7 +725,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:45:37 GMT'] + date: ['Wed, 01 Aug 2018 19:19:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -479,7 +754,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 30 Jul 2018 17:45:41 GMT'] + date: ['Wed, 01 Aug 2018 19:20:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -507,7 +782,7 @@ interactions: cache-control: [no-cache] content-length: ['12'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:41 GMT'] + date: ['Wed, 01 Aug 2018 19:20:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -534,9 +809,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 30 Jul 2018 17:45:41 GMT'] + date: ['Wed, 01 Aug 2018 19:20:04 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTS0tGVUREUDRXLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdBVzM3WFpTSEhILVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml new file mode 100644 index 00000000000..0963b1a10b3 --- /dev/null +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml @@ -0,0 +1,543 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", + "date": "2018-08-01T19:20:05Z"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-01T19:20:05Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['274'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:20:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:20:07.561357Z","duration":"PT0S","correlationId":"1ae829fa-42f5-4616-aa0d-fb21c3c9b1b4","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3009'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:20:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-01T19:20:08.8989518Z","duration":"PT0.3732883S","correlationId":"c2a119a9-dbc1-4173-be64-74423254303c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586684556769519455?api-version=2018-05-01'] + cache-control: [no-cache] + content-length: ['1201'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:20:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684556769519455?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:20:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684556769519455?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:21:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684556769519455?api-version=2018-05-01 + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:21:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:21:09.5030403Z","duration":"PT1M0.9773768S","correlationId":"c2a119a9-dbc1-4173-be64-74423254303c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1548'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:21:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", + "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": + {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": + [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", + "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": + "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": + "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", + "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", + "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", + "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], + "properties": {"description": "Service Fabric Mesh HelloWorld Application!", + "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", + "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh + Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", + "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": + "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", + "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", + "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": + "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', + ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Length: ['1794'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:21:45.3198321Z","duration":"PT0S","correlationId":"79e4052d-bd0f-47d7-a461-795539ff5777","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service + Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} + headers: + cache-control: [no-cache] + content-length: ['3010'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:21:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:21:09.5030403Z","duration":"PT1M0.9773768S","correlationId":"c2a119a9-dbc1-4173-be64-74423254303c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1548'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:21:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ + ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ + ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ + Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ + Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ + \n \"status\": \"Ready\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['529'] + content-type: [application/json] + date: ['Wed, 01 Aug 2018 19:21:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ + \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ + : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ + ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ + \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ + publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ + \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ + : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['756'] + content-type: [application/json] + date: ['Wed, 01 Aug 2018 19:21:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh network show] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ + \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ + ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ + : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ + : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ + ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ + \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ + publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ + \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ + : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['756'] + content-type: [application/json] + date: ['Wed, 01 Aug 2018 19:21:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Connection: [close] + Host: [40.117.135.22] + User-Agent: [Python-urllib/3.6] + method: GET + uri: http://40.117.135.22 + response: + body: {string: "\r\n \r\n Service Fabric Mesh Landing\ + \ Page\r\n \r\n\r\n \r\n \ + \ \r\n \r\n
\r\n
\r\n

Welcome to Service Fabric Mesh!

\r\n \ + \ (linux alpine)\r\n

To access docs\ + \ or file an issue go to
Service Fabric Mesh Preview GitHub

\r\n \"project\r\n\r\n \ + \
\r\n
\r\n
\r\ + \n
\r\n \r\n\r\n"} + headers: + accept-ranges: [bytes] + connection: [close] + content-length: ['1268'] + content-type: [text/html] + date: ['Wed, 01 Aug 2018 19:21:47 GMT'] + etag: ['"5b452443-4f4"'] + last-modified: ['Tue, 10 Jul 2018 21:25:23 GMT'] + server: [nginx/1.15.1] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh code-package-log get] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas/0/codePackages/helloWorldCode/logs?api-version=2018-07-01-preview + response: + body: {string: "{\r\n \"content\": \"2018-08-01T19:21:47.070534670+00:00 stdout\ + \ F 10.88.0.1 - - [01/Aug/2018:19:21:47 +0000] \\\"GET / HTTP/1.1\\\" 200\ + \ 1268 \\\"-\\\" \\\"Python-urllib/3.6\\\" \\\"-\\\"\\r\\n\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['174'] + content-type: [application/json] + date: ['Wed, 01 Aug 2018 19:21:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh app delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Wed, 01 Aug 2018 19:22:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Wed, 01 Aug 2018 19:22:02 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdGT0sySldJVllYLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml index d95a12f3ae4..b512c9219d4 100644 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-07-30T17:45:42Z"}}' + "date": "2018-08-01T19:22:02Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -16,12 +16,12 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-30T17:45:42Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-01T19:22:02Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:43 GMT'] + date: ['Wed, 01 Aug 2018 19:22:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -63,21 +63,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:45:45.0254135Z","duration":"PT0S","correlationId":"f7e806eb-43a3-4af9-b9b1-1acd5a3181b0","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:22:05.1660725Z","duration":"PT0S","correlationId":"09d478f8-e954-4865-b532-bf93687ff9ac","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:44 GMT'] + date: ['Wed, 01 Aug 2018 19:22:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", @@ -114,18 +114,18 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-30T17:45:46.4594973Z","duration":"PT0.3956639S","correlationId":"67f69e75-b2d8-4549-9fd4-b850daa3dca7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-01T19:22:06.6444538Z","duration":"PT0.3690416S","correlationId":"2778fd0c-20f9-4705-b8a3-89d485108037","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586686341394137774?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586684555592021994?api-version=2018-05-01'] cache-control: [no-cache] content-length: ['1201'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:45:46 GMT'] + date: ['Wed, 01 Aug 2018 19:22:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -138,14 +138,39 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686341394137774?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684555592021994?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:22:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684555592021994?api-version=2018-05-01 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:46:16 GMT'] + date: ['Wed, 01 Aug 2018 19:23:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,14 +188,14 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686341394137774?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684555592021994?api-version=2018-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:46:46 GMT'] + date: ['Wed, 01 Aug 2018 19:23:37 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -190,12 +215,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:46:29.3158049Z","duration":"PT43.2519715S","correlationId":"67f69e75-b2d8-4549-9fd4-b850daa3dca7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:23:09.428477Z","duration":"PT1M3.1530648S","correlationId":"2778fd0c-20f9-4705-b8a3-89d485108037","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:46:47 GMT'] + date: ['Wed, 01 Aug 2018 19:23:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -237,21 +262,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:46:52.8313066Z","duration":"PT0S","correlationId":"5fdb1b10-4e94-4f76-a809-d5e81929a985","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:23:42.889044Z","duration":"PT0S","correlationId":"00d7f4c4-206e-4952-b746-ca83023afc79","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] - content-length: ['3010'] + content-length: ['3009'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:46:51 GMT'] + date: ['Wed, 01 Aug 2018 19:23:42 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -268,12 +293,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:46:29.3158049Z","duration":"PT43.2519715S","correlationId":"67f69e75-b2d8-4549-9fd4-b850daa3dca7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:23:09.428477Z","duration":"PT1M3.1530648S","correlationId":"2778fd0c-20f9-4705-b8a3-89d485108037","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:46:52 GMT'] + date: ['Wed, 01 Aug 2018 19:23:42 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -306,7 +331,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:46:52 GMT'] + date: ['Wed, 01 Aug 2018 19:23:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -344,7 +369,7 @@ interactions: cache-control: [no-cache] content-length: ['756'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:46:53 GMT'] + date: ['Wed, 01 Aug 2018 19:23:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -380,7 +405,7 @@ interactions: cache-control: [no-cache] content-length: ['618'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:46:53 GMT'] + date: ['Wed, 01 Aug 2018 19:23:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -428,7 +453,7 @@ interactions: cache-control: [no-cache] content-length: ['1387'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:46:54 GMT'] + date: ['Wed, 01 Aug 2018 19:23:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -472,7 +497,7 @@ interactions: cache-control: [no-cache] content-length: ['1182'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:46:56 GMT'] + date: ['Wed, 01 Aug 2018 19:24:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -501,13 +526,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 30 Jul 2018 17:47:02 GMT'] + date: ['Wed, 01 Aug 2018 19:24:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 200, message: OK} - request: body: null @@ -529,9 +554,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 30 Jul 2018 17:47:02 GMT'] + date: ['Wed, 01 Aug 2018 19:24:13 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdDU09EUE80TUI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdKRU9BWlBGNVFJLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml index 39b4a210cfd..e27b13a4087 100644 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-07-30T17:47:03Z"}}' + "date": "2018-08-01T19:24:14Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -16,12 +16,12 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-30T17:47:03Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-01T19:24:14Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:47:03 GMT'] + date: ['Wed, 01 Aug 2018 19:24:14 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -63,21 +63,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:47:05.4923948Z","duration":"PT0S","correlationId":"f8c8c8b7-afac-467d-8990-2e86b3daa354","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:24:16.3567895Z","duration":"PT0S","correlationId":"e20a8831-274a-4da0-9157-350f9f81d469","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:47:04 GMT'] + date: ['Wed, 01 Aug 2018 19:24:15 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", @@ -114,13 +114,13 @@ interactions: method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-07-30T17:47:06.8538549Z","duration":"PT0.4305311S","correlationId":"e541912e-b08b-42ad-ba3d-dfe80d1d9386","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-01T19:24:17.8422282Z","duration":"PT0.4411861S","correlationId":"a079c3bc-985f-4ca6-9c39-ef28c4951b5d","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586686340590542875?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586684554280765744?api-version=2018-05-01'] cache-control: [no-cache] content-length: ['1201'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:47:06 GMT'] + date: ['Wed, 01 Aug 2018 19:24:17 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -138,14 +138,14 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686340590542875?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684554280765744?api-version=2018-05-01 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:47:36 GMT'] + date: ['Wed, 01 Aug 2018 19:24:47 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,14 +163,39 @@ interactions: msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python AZURECLI/2.0.42.dev13398] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586686340590542875?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684554280765744?api-version=2018-05-01 + response: + body: {string: '{"status":"Running"}'} + headers: + cache-control: [no-cache] + content-length: ['20'] + content-type: [application/json; charset=utf-8] + date: ['Wed, 01 Aug 2018 19:25:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [mesh deployment create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python + AZURECLI/2.0.42.dev13398] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684554280765744?api-version=2018-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:48:07 GMT'] + date: ['Wed, 01 Aug 2018 19:25:48 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -190,12 +215,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:47:55.4162661Z","duration":"PT48.9929423S","correlationId":"e541912e-b08b-42ad-ba3d-dfe80d1d9386","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:25:33.1595232Z","duration":"PT1M15.7584811S","correlationId":"a079c3bc-985f-4ca6-9c39-ef28c4951b5d","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1547'] + content-length: ['1549'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:48:07 GMT'] + date: ['Wed, 01 Aug 2018 19:25:48 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -237,21 +262,21 @@ interactions: method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:48:13.1393266Z","duration":"PT0S","correlationId":"c8a1d80d-e3d7-4497-8af0-2fc2a2ed18a2","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:25:54.3376205Z","duration":"PT0S","correlationId":"c39262fe-ced9-4b4f-bc64-5db704a9a832","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:48:12 GMT'] + date: ['Wed, 01 Aug 2018 19:25:54 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -268,12 +293,12 @@ interactions: method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-07-30T17:47:55.4162661Z","duration":"PT48.9929423S","correlationId":"e541912e-b08b-42ad-ba3d-dfe80d1d9386","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:25:33.1595232Z","duration":"PT1M15.7584811S","correlationId":"a079c3bc-985f-4ca6-9c39-ef28c4951b5d","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1547'] + content-length: ['1549'] content-type: [application/json; charset=utf-8] - date: ['Mon, 30 Jul 2018 17:48:13 GMT'] + date: ['Wed, 01 Aug 2018 19:25:54 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -306,7 +331,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:48:12 GMT'] + date: ['Wed, 01 Aug 2018 19:25:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -344,7 +369,7 @@ interactions: cache-control: [no-cache] content-length: ['756'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:48:13 GMT'] + date: ['Wed, 01 Aug 2018 19:25:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -380,7 +405,7 @@ interactions: cache-control: [no-cache] content-length: ['618'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:48:13 GMT'] + date: ['Wed, 01 Aug 2018 19:25:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -433,7 +458,7 @@ interactions: cache-control: [no-cache] content-length: ['1651'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:48:16 GMT'] + date: ['Wed, 01 Aug 2018 19:26:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -480,7 +505,7 @@ interactions: cache-control: [no-cache] content-length: ['1390'] content-type: [application/json] - date: ['Mon, 30 Jul 2018 17:48:18 GMT'] + date: ['Wed, 01 Aug 2018 19:26:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -509,13 +534,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 30 Jul 2018 17:48:23 GMT'] + date: ['Wed, 01 Aug 2018 19:26:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 200, message: OK} - request: body: null @@ -537,9 +562,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 30 Jul 2018 17:48:24 GMT'] + date: ['Wed, 01 Aug 2018 19:26:10 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSSkpOMlozNVRYLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkc0SldRUUs2TFNELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] diff --git a/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py index 62ff1ef9acf..dc5c0fa7bc0 100644 --- a/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py +++ b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py @@ -8,7 +8,7 @@ import unittest from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer import os - +import urllib.request def _get_test_data_file(filename): curr_dir = os.path.dirname(os.path.realpath(__file__)) @@ -105,7 +105,6 @@ def test_service_replica_commands(self, resource_group): 'service_name': 'helloWorldService', 'replica_name': 0, 'template_location': _get_test_data_file('template1.json') - }) self.cmd('az mesh deployment create -g {rg} --template-file {template_location} --name {deployment_name}') @@ -129,6 +128,34 @@ def test_service_replica_commands(self, resource_group): self.cmd('az mesh app delete -g {rg} --name {app_name} --yes') + @ResourceGroupPreparer(random_name_length=20) + def test_code_package_log_commands(self, resource_group): + app_name = 'helloWorldApp' + + self.kwargs.update({ + 'resource_group': resource_group, + 'deployment_name': self.create_random_name(prefix='cli', length=24), + 'app_name': app_name, + 'service_name': 'helloWorldService', + 'replica_name': 0, + 'template_location': _get_test_data_file('template1.json'), + 'code_package_name': 'helloWorldCode', + 'network_name': 'helloWorldNetwork' + }) + + self.cmd('az mesh deployment create -g {rg} --template-file {template_location} --name {deployment_name}') + + network_info = self.cmd('az mesh network show -g {rg} -n {network_name}').get_output_in_json() + ip = network_info["ingressConfig"]["publicIpAddress"] + urllib.request.urlopen('http://' + ip) + + # Test log + self.cmd('az mesh code-package-log get --app-name {app_name} --code-package-name helloWorldCode --replica-name {replica_name} --resource-group {rg} --service-name {service_name} ', checks=[ + self.exists('content') + ]) + + self.cmd('az mesh app delete -g {rg} --name {app_name} --yes') + if __name__ == '__main__': unittest.main() From d6abff8f2414baf8864070ee5e6f07fcd02111b5 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Fri, 3 Aug 2018 09:31:48 -0700 Subject: [PATCH 13/19] added logging command test and changed output handling --- .../latest/recordings/test_app_commands.yaml | 457 ++++-------------- .../test_code_package_log_commands.yaml | 194 ++++---- .../recordings/test_service_commands.yaml | 192 ++++---- .../test_service_replica_commands.yaml | 207 ++++---- 4 files changed, 389 insertions(+), 661 deletions(-) diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml index 92c5529a99c..7d7829431de 100644 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-08-01T19:13:14Z"}}' + "date": "2018-08-02T22:59:01Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,19 +9,19 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-01T19:13:14Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-02T22:59:01Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:13:16 GMT'] + date: ['Thu, 02 Aug 2018 22:59:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -56,21 +56,21 @@ interactions: Connection: [keep-alive] Content-Length: ['1794'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:13:18.751927Z","duration":"PT0S","correlationId":"2cd07ebc-490d-4f2e-89a8-b8db722025f7","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T22:59:05.201965Z","duration":"PT0S","correlationId":"4c0c5175-3b23-4067-909d-5795a430bef8","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3009'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:13:18 GMT'] + date: ['Thu, 02 Aug 2018 22:59:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -107,25 +107,25 @@ interactions: Connection: [keep-alive] Content-Length: ['1794'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-01T19:13:20.2437537Z","duration":"PT0.4289613S","correlationId":"d53c52c9-ca1d-41cb-8a17-8774728511e9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-02T22:59:06.6636068Z","duration":"PT0.4527307S","correlationId":"b2a371bf-62e0-4b53-ac65-5a9cfac20265","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586684560856628220?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586683561392667468?api-version=2017-05-10'] cache-control: [no-cache] content-length: ['1201'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:13:19 GMT'] + date: ['Thu, 02 Aug 2018 22:59:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -134,293 +134,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:13:49 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:14:20 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:14:50 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:15:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:15:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:16:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:16:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:17:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:17:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:18:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:18:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683561392667468?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:19:22 GMT'] + date: ['Thu, 02 Aug 2018 22:59:37 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -434,18 +161,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684560856628220?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683561392667468?api-version=2017-05-10 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:19:52 GMT'] + date: ['Thu, 02 Aug 2018 23:00:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -459,18 +188,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:19:29.5162116Z","duration":"PT6M9.7014192S","correlationId":"d53c52c9-ca1d-41cb-8a17-8774728511e9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T22:59:57.2932204Z","duration":"PT51.0823443S","correlationId":"b2a371bf-62e0-4b53-ac65-5a9cfac20265","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1548'] + content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:19:53 GMT'] + date: ['Thu, 02 Aug 2018 23:00:07 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -505,28 +236,28 @@ interactions: Connection: [keep-alive] Content-Length: ['1794'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:19:56.5654715Z","duration":"PT0S","correlationId":"8a405343-8d96-4e92-9c4f-8495017e5a25","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:00:13.1626678Z","duration":"PT0S","correlationId":"504db90d-9ba6-49ee-9a71-e4f188e8d497","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:19:55 GMT'] + date: ['Thu, 02 Aug 2018 23:00:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -536,19 +267,19 @@ interactions: CommandName: [mesh deployment create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:19:29.5162116Z","duration":"PT6M9.7014192S","correlationId":"d53c52c9-ca1d-41cb-8a17-8774728511e9","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T22:59:57.2932204Z","duration":"PT51.0823443S","correlationId":"b2a371bf-62e0-4b53-ac65-5a9cfac20265","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] - content-length: ['1548'] + content-length: ['1547'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:19:56 GMT'] + date: ['Thu, 02 Aug 2018 23:00:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -563,9 +294,9 @@ interactions: CommandName: [mesh deployment create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview @@ -581,7 +312,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:19:56 GMT'] + date: ['Thu, 02 Aug 2018 23:00:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -598,9 +329,9 @@ interactions: CommandName: [mesh deployment create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview @@ -610,16 +341,16 @@ interactions: ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"137.117.72.249\",\r\n \"layer4\": [\r\ + ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['757'] + content-length: ['755'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:19:56 GMT'] + date: ['Thu, 02 Aug 2018 23:00:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -636,9 +367,9 @@ interactions: CommandName: [mesh app list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview @@ -655,7 +386,7 @@ interactions: cache-control: [no-cache] content-length: ['618'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:19:57 GMT'] + date: ['Thu, 02 Aug 2018 23:00:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -672,9 +403,9 @@ interactions: CommandName: [mesh app show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview @@ -690,7 +421,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:19:57 GMT'] + date: ['Thu, 02 Aug 2018 23:00:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -707,9 +438,9 @@ interactions: CommandName: [mesh app show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview @@ -725,7 +456,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:19:58 GMT'] + date: ['Thu, 02 Aug 2018 23:00:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -743,9 +474,9 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview @@ -754,7 +485,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 01 Aug 2018 19:20:03 GMT'] + date: ['Thu, 02 Aug 2018 23:00:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -770,9 +501,9 @@ interactions: CommandName: [mesh app list] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview @@ -782,7 +513,7 @@ interactions: cache-control: [no-cache] content-length: ['12'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:20:03 GMT'] + date: ['Thu, 02 Aug 2018 23:00:20 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -798,20 +529,20 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 01 Aug 2018 19:20:04 GMT'] + date: ['Thu, 02 Aug 2018 23:00:21 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdBVzM3WFpTSEhILVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTWE1UQlFCS0xKLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml index 0963b1a10b3..5a55f29ab7f 100644 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml +++ b/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-08-01T19:20:05Z"}}' + "date": "2018-08-02T23:00:21Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,24 +9,24 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-01T19:20:05Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-02T23:00:21Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['274'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:20:05 GMT'] + date: ['Thu, 02 Aug 2018 23:00:22 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", @@ -56,28 +56,28 @@ interactions: Connection: [keep-alive] Content-Length: ['1794'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:20:07.561357Z","duration":"PT0S","correlationId":"1ae829fa-42f5-4616-aa0d-fb21c3c9b1b4","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:00:24.1872534Z","duration":"PT0S","correlationId":"6c337dca-b21a-4e6b-8065-a9f81879ce98","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] - content-length: ['3009'] + content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:20:06 GMT'] + date: ['Thu, 02 Aug 2018 23:00:23 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", @@ -107,25 +107,25 @@ interactions: Connection: [keep-alive] Content-Length: ['1794'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-01T19:20:08.8989518Z","duration":"PT0.3732883S","correlationId":"c2a119a9-dbc1-4173-be64-74423254303c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-02T23:00:25.6791274Z","duration":"PT0.472813S","correlationId":"b5691558-1887-4b90-adc8-e77675b85b8f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586684556769519455?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586683560602712965?api-version=2017-05-10'] cache-control: [no-cache] - content-length: ['1201'] + content-length: ['1200'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:20:08 GMT'] + date: ['Thu, 02 Aug 2018 23:00:25 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -134,18 +134,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684556769519455?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683560602712965?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:20:38 GMT'] + date: ['Thu, 02 Aug 2018 23:00:55 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -159,18 +161,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684556769519455?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683560602712965?api-version=2017-05-10 response: body: {string: '{"status":"Running"}'} headers: cache-control: [no-cache] content-length: ['20'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:21:08 GMT'] + date: ['Thu, 02 Aug 2018 23:01:25 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -184,18 +188,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586684556769519455?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683560602712965?api-version=2017-05-10 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:21:39 GMT'] + date: ['Thu, 02 Aug 2018 23:01:56 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -209,18 +215,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [mesh deployment create] Connection: [keep-alive] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] + accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:21:09.5030403Z","duration":"PT1M0.9773768S","correlationId":"c2a119a9-dbc1-4173-be64-74423254303c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:01:31.8477618Z","duration":"PT1M6.6414474S","correlationId":"b5691558-1887-4b90-adc8-e77675b85b8f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] content-length: ['1548'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:21:39 GMT'] + date: ['Thu, 02 Aug 2018 23:01:56 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -255,21 +263,21 @@ interactions: Connection: [keep-alive] Content-Length: ['1794'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:21:45.3198321Z","duration":"PT0S","correlationId":"79e4052d-bd0f-47d7-a461-795539ff5777","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:02:02.0152215Z","duration":"PT0S","correlationId":"01255cff-0ab4-47c4-97af-368e3509fd4f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} headers: cache-control: [no-cache] content-length: ['3010'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:21:45 GMT'] + date: ['Thu, 02 Aug 2018 23:02:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -286,19 +294,19 @@ interactions: CommandName: [mesh deployment create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-01T19:21:09.5030403Z","duration":"PT1M0.9773768S","correlationId":"c2a119a9-dbc1-4173-be64-74423254303c","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:01:31.8477618Z","duration":"PT1M6.6414474S","correlationId":"b5691558-1887-4b90-adc8-e77675b85b8f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} headers: cache-control: [no-cache] content-length: ['1548'] content-type: [application/json; charset=utf-8] - date: ['Wed, 01 Aug 2018 19:21:45 GMT'] + date: ['Thu, 02 Aug 2018 23:02:02 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -313,9 +321,9 @@ interactions: CommandName: [mesh deployment create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview @@ -331,7 +339,7 @@ interactions: cache-control: [no-cache] content-length: ['529'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:21:46 GMT'] + date: ['Thu, 02 Aug 2018 23:02:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -348,9 +356,9 @@ interactions: CommandName: [mesh deployment create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview @@ -360,16 +368,16 @@ interactions: ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ + ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['756'] + content-length: ['755'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:21:46 GMT'] + date: ['Thu, 02 Aug 2018 23:02:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -386,9 +394,9 @@ interactions: CommandName: [mesh network show] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.4.29 - msrest_azure/0.4.31 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.42.dev13398] + User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 + msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python + AZURECLI/2.0.39] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview @@ -398,16 +406,16 @@ interactions: ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.117.135.22\",\r\n \"layer4\": [\r\ + ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['756'] + content-length: ['755'] content-type: [application/json] - date: ['Wed, 01 Aug 2018 19:21:46 GMT'] + date: ['Thu, 02 Aug 2018 23:02:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -420,10 +428,10 @@ interactions: body: null headers: Connection: [close] - Host: [40.117.135.22] + Host: [40.114.34.79] User-Agent: [Python-urllib/3.6] method: GET - uri: http://40.117.135.22 + uri: http://40.114.34.79 response: body: {string: "\r\n \r\n Service Fabric Mesh Landing\ \ Page\r\n Date: Fri, 3 Aug 2018 09:39:08 -0700 Subject: [PATCH 14/19] increased version and history and read me --- src/mesh/HISTORY.rst | 6 ++++++ src/mesh/README.rst | 7 +++++++ src/mesh/setup.py | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mesh/HISTORY.rst b/src/mesh/HISTORY.rst index c6218a300c9..38575b54b9b 100644 --- a/src/mesh/HISTORY.rst +++ b/src/mesh/HISTORY.rst @@ -3,6 +3,12 @@ Release History =============== +0.9.1 (2018-07-26) +++++++++++++++++++ + +* Fix output in get logs command. + + 0.9.1 (2018-07-26) ++++++++++++++++++ diff --git a/src/mesh/README.rst b/src/mesh/README.rst index 33148484cdb..e31586b4572 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -1,6 +1,13 @@ Microsoft Azure CLI 'mesh' Command Module ============================================================== Official doc https://docs.microsoft.com/en-us/azure/service-fabric-mesh/ + +Run tests using +python tests/latest/test_mesh_commands.py +Delete the recordings file to run live tests instead of through vcr. +For more info on testing see +https://github.com/Azure/azure-cli/blob/dev/doc/authoring_tests.md + Commands to manage Azure Service Fabric Mesh resources ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :: diff --git a/src/mesh/setup.py b/src/mesh/setup.py index d93e05848e1..f8b0a9e2237 100644 --- a/src/mesh/setup.py +++ b/src/mesh/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.9.1" +VERSION = "0.9.2" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From e8fb5ecbf7ca51b6250e6c3747fcf4314e27b983 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 6 Aug 2018 10:43:31 -0700 Subject: [PATCH 15/19] fixed history version and new line --- src/mesh/azext_mesh/tests/latest/test_mesh_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py index dc5c0fa7bc0..2b7b4922dfe 100644 --- a/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py +++ b/src/mesh/azext_mesh/tests/latest/test_mesh_commands.py @@ -10,6 +10,7 @@ import os import urllib.request + def _get_test_data_file(filename): curr_dir = os.path.dirname(os.path.realpath(__file__)) return os.path.join(curr_dir, 'data', filename).replace('\\', '\\\\') From 00a6b3edbefd57a26b59dc4d5a22fc66b7c42f95 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 6 Aug 2018 10:43:46 -0700 Subject: [PATCH 16/19] added history change --- src/mesh/HISTORY.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/HISTORY.rst b/src/mesh/HISTORY.rst index 38575b54b9b..c1b88495e64 100644 --- a/src/mesh/HISTORY.rst +++ b/src/mesh/HISTORY.rst @@ -3,7 +3,7 @@ Release History =============== -0.9.1 (2018-07-26) +0.9.2 (2018-07-26) ++++++++++++++++++ * Fix output in get logs command. From 57437be81193999fe4026c80312d4b0e6ff0699f Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 6 Aug 2018 10:45:28 -0700 Subject: [PATCH 17/19] added what file to delete for recordings --- src/mesh/README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesh/README.rst b/src/mesh/README.rst index e31586b4572..9cf0e787054 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -4,7 +4,8 @@ Official doc https://docs.microsoft.com/en-us/azure/service-fabric-mesh/ Run tests using python tests/latest/test_mesh_commands.py -Delete the recordings file to run live tests instead of through vcr. +Delete the recordings file to run live tests instead of through vcr by deleting + mesh\azext_mesh\tests\latest\recordings For more info on testing see https://github.com/Azure/azure-cli/blob/dev/doc/authoring_tests.md From c6bfeae9765b3c3a8f568044f9f6926849bdaeb1 Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 6 Aug 2018 12:11:02 -0700 Subject: [PATCH 18/19] removed recordings --- .../latest/recordings/test_app_commands.yaml | 551 ----------------- .../test_code_package_log_commands.yaml | 551 ----------------- .../recordings/test_service_commands.yaml | 573 ------------------ .../test_service_replica_commands.yaml | 554 ----------------- 4 files changed, 2229 deletions(-) delete mode 100644 src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml delete mode 100644 src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml delete mode 100644 src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml delete mode 100644 src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml deleted file mode 100644 index 7d7829431de..00000000000 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_app_commands.yaml +++ /dev/null @@ -1,551 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-08-02T22:59:01Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-02T22:59:01Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['274'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 22:59:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T22:59:05.201965Z","duration":"PT0S","correlationId":"4c0c5175-3b23-4067-909d-5795a430bef8","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3009'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 22:59:04 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-02T22:59:06.6636068Z","duration":"PT0.4527307S","correlationId":"b2a371bf-62e0-4b53-ac65-5a9cfac20265","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586683561392667468?api-version=2017-05-10'] - cache-control: [no-cache] - content-length: ['1201'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 22:59:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683561392667468?api-version=2017-05-10 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 22:59:37 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683561392667468?api-version=2017-05-10 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T22:59:57.2932204Z","duration":"PT51.0823443S","correlationId":"b2a371bf-62e0-4b53-ac65-5a9cfac20265","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1547'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:00:13.1626678Z","duration":"PT0S","correlationId":"504db90d-9ba6-49ee-9a71-e4f188e8d497","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T22:59:57.2932204Z","duration":"PT51.0823443S","correlationId":"b2a371bf-62e0-4b53-ac65-5a9cfac20265","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1547'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ - Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ - Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ - \n \"status\": \"Ready\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:00:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ - \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ - : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ - \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ - publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ - \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ - : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['755'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:00:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"\ - properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ - \ \"description\": \"Service Fabric Mesh HelloWorld Application!\",\r\n\ - \ \"healthState\": \"Ok\",\r\n \"serviceNames\": [\r\n \ - \ \"helloWorldService\"\r\n ],\r\n \"status\": \"Ready\"\ - \r\n }\r\n }\r\n ]\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['618'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:00:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ - Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ - Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ - \n \"status\": \"Ready\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:00:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ - Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ - Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ - \n \"status\": \"Ready\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:00:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:00:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview - response: - body: {string: '{"value":[]}'} - headers: - cache-control: [no-cache] - content-length: ['12'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:20 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:00:21 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTWE1UQlFCS0xKLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml deleted file mode 100644 index 5a55f29ab7f..00000000000 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_code_package_log_commands.yaml +++ /dev/null @@ -1,551 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-08-02T23:00:21Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-02T23:00:21Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['274'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:00:24.1872534Z","duration":"PT0S","correlationId":"6c337dca-b21a-4e6b-8065-a9f81879ce98","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-02T23:00:25.6791274Z","duration":"PT0.472813S","correlationId":"b5691558-1887-4b90-adc8-e77675b85b8f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586683560602712965?api-version=2017-05-10'] - cache-control: [no-cache] - content-length: ['1200'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683560602712965?api-version=2017-05-10 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:00:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683560602712965?api-version=2017-05-10 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:01:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683560602712965?api-version=2017-05-10 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:01:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:01:31.8477618Z","duration":"PT1M6.6414474S","correlationId":"b5691558-1887-4b90-adc8-e77675b85b8f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1548'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:01:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:02:02.0152215Z","duration":"PT0S","correlationId":"01255cff-0ab4-47c4-97af-368e3509fd4f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:02:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:01:31.8477618Z","duration":"PT1M6.6414474S","correlationId":"b5691558-1887-4b90-adc8-e77675b85b8f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1548'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:02:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ - Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ - Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ - \n \"status\": \"Ready\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:02:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ - \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ - : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ - \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ - publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ - \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ - : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['755'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:02:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh network show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ - \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ - : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ - \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ - publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ - \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ - : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['755'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:02:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Connection: [close] - Host: [40.114.34.79] - User-Agent: [Python-urllib/3.6] - method: GET - uri: http://40.114.34.79 - response: - body: {string: "\r\n \r\n Service Fabric Mesh Landing\ - \ Page\r\n \r\n\r\n \r\n \ - \ \r\n \r\n
\r\n
\r\n

Welcome to Service Fabric Mesh!

\r\n \ - \ (linux alpine)\r\n

To access docs\ - \ or file an issue go to
Service Fabric Mesh Preview GitHub

\r\n \"project\r\n\r\n \ - \
\r\n
\r\n
\r\ - \n
\r\n \r\n\r\n"} - headers: - accept-ranges: [bytes] - connection: [close] - content-length: ['1268'] - content-type: [text/html] - date: ['Thu, 02 Aug 2018 23:02:03 GMT'] - etag: ['"5b452443-4f4"'] - last-modified: ['Tue, 10 Jul 2018 21:25:23 GMT'] - server: [nginx/1.15.1] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh code-package-log get] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas/0/codePackages/helloWorldCode/logs?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"content\": \"2018-08-02T23:02:03.735741242+00:00 stdout\ - \ F 10.88.0.1 - - [02/Aug/2018:23:02:03 +0000] \\\"GET / HTTP/1.1\\\" 200\ - \ 1268 \\\"-\\\" \\\"Python-urllib/3.6\\\" \\\"-\\\"\\r\\n\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['174'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:02:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:02:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:02:11 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdDU1lKNUhKMjQzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml deleted file mode 100644 index d9ca8c79fe0..00000000000 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_service_commands.yaml +++ /dev/null @@ -1,573 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-08-02T23:02:12Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-02T23:02:12Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['274'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:02:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:02:14.7669931Z","duration":"PT0S","correlationId":"15e6a7fb-1fc6-4b15-bd8a-69615e9495ff","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:02:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-02T23:02:16.1788442Z","duration":"PT0.3109222S","correlationId":"f9214936-a815-43d0-a053-f7f8b6688002","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586683559496096885?api-version=2017-05-10'] - cache-control: [no-cache] - content-length: ['1201'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:02:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683559496096885?api-version=2017-05-10 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:02:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683559496096885?api-version=2017-05-10 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:03:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683559496096885?api-version=2017-05-10 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:03:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:03:18.8084388Z","duration":"PT1M2.9405168S","correlationId":"f9214936-a815-43d0-a053-f7f8b6688002","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1548'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:03:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:03:52.4430029Z","duration":"PT0S","correlationId":"8898ce05-e00b-4cc5-85d3-89d095411d1f","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:03:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:03:18.8084388Z","duration":"PT1M2.9405168S","correlationId":"f9214936-a815-43d0-a053-f7f8b6688002","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1548'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:03:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ - Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ - Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ - \n \"status\": \"Ready\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:03:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ - \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ - : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ - \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ - publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ - \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ - : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['755'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:03:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"\ - properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ - \ \"description\": \"Service Fabric Mesh HelloWorld Application!\",\r\n\ - \ \"healthState\": \"Ok\",\r\n \"serviceNames\": [\r\n \ - \ \"helloWorldService\"\r\n ],\r\n \"status\": \"Ready\"\ - \r\n }\r\n }\r\n ]\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['618'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:03:53 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh service list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"helloWorldService\"\ - ,\r\n \"type\": \"Microsoft.ServiceFabricMesh/services\",\r\n \"\ - location\": \"eastus\",\r\n \"properties\": {\r\n \"osType\":\ - \ \"Linux\",\r\n \"codePackages\": [\r\n {\r\n \ - \ \"name\": \"helloWorldCode\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\"\ - ,\r\n \"endpoints\": [\r\n {\r\n \"\ - name\": \"helloWorldListener\",\r\n \"port\": 80\r\n \ - \ }\r\n ],\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 \"name\": \"helloWorldSideCar\",\r\n \ - \ \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\",\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 \"networkRefs\"\ - : [\r\n {\r\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - \r\n }\r\n ],\r\n \"description\": \"Service Fabric\ - \ Mesh Hello World Service.\",\r\n \"replicaCount\": 1,\r\n \ - \ \"healthState\": \"Ok\",\r\n \"status\": \"Active\"\r\n }\r\n\ - \ }\r\n ]\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['1387'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:03:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh service show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"name\": \"helloWorldService\",\r\n \"type\": \"Microsoft.ServiceFabricMesh/services\"\ - ,\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"osType\"\ - : \"Linux\",\r\n \"codePackages\": [\r\n {\r\n \"name\": \"\ - helloWorldCode\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\"\ - ,\r\n \"endpoints\": [\r\n {\r\n \"name\": \"helloWorldListener\"\ - ,\r\n \"port\": 80\r\n }\r\n ],\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 \"name\": \"helloWorldSideCar\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\"\ - ,\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 \"networkRefs\": [\r\n {\r\n \ - \ \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - \r\n }\r\n ],\r\n \"description\": \"Service Fabric Mesh Hello\ - \ World Service.\",\r\n \"replicaCount\": 1,\r\n \"healthState\": \"\ - Ok\",\r\n \"status\": \"Active\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['1182'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:03:57 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:04:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:04:02 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdEVDNMSEFRQk9NLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml b/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml deleted file mode 100644 index e12918c6b60..00000000000 --- a/src/mesh/azext_mesh/tests/latest/recordings/test_service_replica_commands.yaml +++ /dev/null @@ -1,554 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-08-02T23:04:03Z"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['110'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-08-02T23:04:03Z"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['274'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:04:04 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:04:06.0967028Z","duration":"PT0S","correlationId":"20f54456-7938-4430-95cc-a12a28d26dd3","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:04:05 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-08-02T23:04:07.6070341Z","duration":"PT0.4029651S","correlationId":"b1f8be42-4a5e-4ed1-9d72-4d60fe9f9689","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}]}}'} - headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002/operationStatuses/08586683558382735419?api-version=2017-05-10'] - cache-control: [no-cache] - content-length: ['1201'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:04:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683558382735419?api-version=2017-05-10 - response: - body: {string: '{"status":"Running"}'} - headers: - cache-control: [no-cache] - content-length: ['20'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:04:37 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586683558382735419?api-version=2017-05-10 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - cache-control: [no-cache] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:05:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:04:50.1398076Z","duration":"PT42.9357386S","correlationId":"b1f8be42-4a5e-4ed1-9d72-4d60fe9f9689","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1547'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:05:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"template": {"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json", - "contentVersion": "1.0.0.0", "parameters": {"location": {"type": "string", "metadata": - {"description": "Location of the resources."}, "defaultValue": "eastus"}}, "resources": - [{"apiVersion": "2018-07-01-preview", "name": "helloWorldNetwork", "type": "Microsoft.ServiceFabricMesh/networks", - "location": "[parameters(''location'')]", "dependsOn": [], "properties": {"addressPrefix": - "10.0.0.4/22", "ingressConfig": {"layer4": [{"name": "helloWorldIngress", "publicPort": - "80", "applicationName": "helloWorldApp", "serviceName": "helloWorldService", - "endpointName": "helloWorldListener"}]}}}, {"apiVersion": "2018-07-01-preview", - "name": "helloWorldApp", "type": "Microsoft.ServiceFabricMesh/applications", - "location": "[parameters(''location'')]", "dependsOn": ["Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"], - "properties": {"description": "Service Fabric Mesh HelloWorld Application!", - "services": [{"type": "Microsoft.ServiceFabricMesh/services", "location": "[parameters(''location'')]", - "name": "helloWorldService", "properties": {"description": "Service Fabric Mesh - Hello World Service.", "osType": "linux", "codePackages": [{"name": "helloWorldCode", - "image": "seabreeze/azure-mesh-helloworld:1.1-alpine", "endpoints": [{"name": - "helloWorldListener", "port": "80"}], "resources": {"requests": {"cpu": "1", - "memoryInGB": "1"}}}, {"name": "helloWorldSideCar", "image": "seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine", - "resources": {"requests": {"cpu": "1", "memoryInGB": "1"}}}], "replicaCount": - "1", "networkRefs": [{"name": "[resourceId(''Microsoft.ServiceFabricMesh/networks'', - ''helloWorldNetwork'')]"}]}}]}}]}, "parameters": {}, "mode": "Incremental"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Length: ['1794'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/validate?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:05:13.8104094Z","duration":"PT0S","correlationId":"cee1f307-3f3f-429e-b0ce-7e6eda3be7ae","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"validatedResources":[{"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","name":"helloWorldNetwork","type":"Microsoft.ServiceFabricMesh/networks","location":"eastus","properties":{"addressPrefix":"10.0.0.4/22","ingressConfig":{"layer4":[{"name":"helloWorldIngress","publicPort":"80","applicationName":"helloWorldApp","serviceName":"helloWorldService","endpointName":"helloWorldListener"}]}}},{"dependsOn":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"],"apiVersion":"2018-07-01-preview","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","name":"helloWorldApp","type":"Microsoft.ServiceFabricMesh/applications","location":"eastus","properties":{"description":"Service - Fabric Mesh HelloWorld Application!","services":[{"type":"Microsoft.ServiceFabricMesh/services","location":"eastus","name":"helloWorldService","properties":{"description":"Service - Fabric Mesh Hello World Service.","osType":"linux","codePackages":[{"name":"helloWorldCode","image":"seabreeze/azure-mesh-helloworld:1.1-alpine","endpoints":[{"name":"helloWorldListener","port":"80"}],"resources":{"requests":{"cpu":"1","memoryInGB":"1"}}},{"name":"helloWorldSideCar","image":"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine","resources":{"requests":{"cpu":"1","memoryInGB":"1"}}}],"replicaCount":"1","networkRefs":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}]}}]}}'} - headers: - cache-control: [no-cache] - content-length: ['3010'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:05:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/cli000002","name":"cli000002","properties":{"templateHash":"8082464397853678251","parameters":{"location":{"type":"String","value":"eastus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-08-02T23:04:50.1398076Z","duration":"PT42.9357386S","correlationId":"b1f8be42-4a5e-4ed1-9d72-4d60fe9f9689","providers":[{"namespace":"Microsoft.ServiceFabricMesh","resourceTypes":[{"resourceType":"networks","locations":["eastus"]},{"resourceType":"applications","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork","resourceType":"Microsoft.ServiceFabricMesh/networks","resourceName":"helloWorldNetwork"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp","resourceType":"Microsoft.ServiceFabricMesh/applications","resourceName":"helloWorldApp"}],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"}]}}'} - headers: - cache-control: [no-cache] - content-length: ['1547'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 02 Aug 2018 23:05:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"\ - Service Fabric Mesh HelloWorld Application!\",\r\n \"healthState\": \"\ - Ok\",\r\n \"serviceNames\": [\r\n \"helloWorldService\"\r\n ],\r\ - \n \"status\": \"Ready\"\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['529'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:05:13 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh deployment create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"type\": \"Microsoft.ServiceFabricMesh/networks\",\r\n\ - \ \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - ,\r\n \"name\": \"helloWorldNetwork\",\r\n \"tags\": {},\r\n \"properties\"\ - : {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\"\ - : \"10.0.0.4/22\",\r\n \"ingressConfig\": {\r\n \"qosLevel\": \"Bronze\"\ - ,\r\n \"publicIPAddress\": \"40.114.34.79\",\r\n \"layer4\": [\r\ - \n {\r\n \"name\": \"helloWorldIngress\",\r\n \"\ - publicPort\": 80,\r\n \"applicationName\": \"helloWorldApp\",\r\n\ - \ \"serviceName\": \"helloWorldService\",\r\n \"endpointName\"\ - : \"helloWorldListener\"\r\n }\r\n ]\r\n }\r\n }\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['755'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:05:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"type\": \"Microsoft.ServiceFabricMesh/applications\"\ - ,\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp\"\ - ,\r\n \"name\": \"helloWorldApp\",\r\n \"tags\": {},\r\n \"\ - properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ - \ \"description\": \"Service Fabric Mesh HelloWorld Application!\",\r\n\ - \ \"healthState\": \"Ok\",\r\n \"serviceNames\": [\r\n \ - \ \"helloWorldService\"\r\n ],\r\n \"status\": \"Ready\"\ - \r\n }\r\n }\r\n ]\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['618'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:05:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh service-replica list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"osType\": \"Linux\",\r\ - \n \"codePackages\": [\r\n {\r\n \"name\": \"helloWorldCode\"\ - ,\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\",\r\ - \n \"endpoints\": [\r\n {\r\n \"name\": \"\ - helloWorldListener\",\r\n \"port\": 80\r\n }\r\n \ - \ ],\r\n \"resources\": {\r\n \"requests\": {\r\ - \n \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n \ - \ }\r\n },\r\n \"instanceView\": {\r\n \ - \ \"restartCount\": 1,\r\n \"currentState\": {\r\n \ - \ \"state\": \"Running\",\r\n \"exitCode\": \"0\"\r\n \ - \ },\r\n \"previousState\": {\r\n \"state\"\ - : \"NotSpecified\",\r\n \"exitCode\": \"0\"\r\n }\r\ - \n }\r\n },\r\n {\r\n \"name\": \"helloWorldSideCar\"\ - ,\r\n \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\"\ - ,\r\n \"resources\": {\r\n \"requests\": {\r\n \ - \ \"memoryInGB\": 1.0,\r\n \"cpu\": 1.0\r\n \ - \ }\r\n },\r\n \"instanceView\": {\r\n \"restartCount\"\ - : 1,\r\n \"currentState\": {\r\n \"state\": \"Running\"\ - ,\r\n \"exitCode\": \"0\"\r\n },\r\n \"\ - previousState\": {\r\n \"state\": \"NotSpecified\",\r\n \ - \ \"exitCode\": \"0\"\r\n }\r\n }\r\n }\r\ - \n ],\r\n \"networkRefs\": [\r\n {\r\n \"name\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - \r\n }\r\n ],\r\n \"replicaName\": \"0\"\r\n }\r\n ]\r\ - \n}"} - headers: - cache-control: [no-cache] - content-length: ['1651'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:05:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh service-replica show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp/services/helloWorldService/replicas/0?api-version=2018-07-01-preview - response: - body: {string: "{\r\n \"osType\": \"Linux\",\r\n \"codePackages\": [\r\n \ - \ {\r\n \"name\": \"helloWorldCode\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld:1.1-alpine\"\ - ,\r\n \"endpoints\": [\r\n {\r\n \"name\": \"helloWorldListener\"\ - ,\r\n \"port\": 80\r\n }\r\n ],\r\n \"resources\"\ - : {\r\n \"requests\": {\r\n \"memoryInGB\": 1.0,\r\n \ - \ \"cpu\": 1.0\r\n }\r\n },\r\n \"instanceView\": {\r\ - \n \"restartCount\": 1,\r\n \"currentState\": {\r\n \ - \ \"state\": \"Running\",\r\n \"exitCode\": \"0\"\r\n },\r\ - \n \"previousState\": {\r\n \"state\": \"NotSpecified\",\r\ - \n \"exitCode\": \"0\"\r\n }\r\n }\r\n },\r\n {\r\ - \n \"name\": \"helloWorldSideCar\",\r\n \"image\": \"seabreeze/azure-mesh-helloworld-sidecar:1.0-alpine\"\ - ,\r\n \"resources\": {\r\n \"requests\": {\r\n \"memoryInGB\"\ - : 1.0,\r\n \"cpu\": 1.0\r\n }\r\n },\r\n \"instanceView\"\ - : {\r\n \"restartCount\": 1,\r\n \"currentState\": {\r\n \ - \ \"state\": \"Running\",\r\n \"exitCode\": \"0\"\r\n \ - \ },\r\n \"previousState\": {\r\n \"state\": \"NotSpecified\"\ - ,\r\n \"exitCode\": \"0\"\r\n }\r\n }\r\n }\r\n ],\r\ - \n \"networkRefs\": [\r\n {\r\n \"name\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/networks/helloWorldNetwork\"\ - \r\n }\r\n ],\r\n \"replicaName\": \"0\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['1390'] - content-type: [application/json] - date: ['Thu, 02 Aug 2018 23:05:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [mesh app delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 azure-mgmt-servicefabricmesh/2018-07-01-preview Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabricMesh/applications/helloWorldApp?api-version=2018-07-01-preview - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:05:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.5 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.1 - msrest_azure/0.4.33 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.39] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 02 Aug 2018 23:05:25 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdVSlhONk5UQ0w1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14997'] - status: {code: 202, message: Accepted} -version: 1 From 647a0b19687910853da1ba859768f0e50af6f76a Mon Sep 17 00:00:00 2001 From: Jeffrey Jarry Date: Mon, 6 Aug 2018 14:39:51 -0700 Subject: [PATCH 19/19] changed text and fixed history date --- src/mesh/HISTORY.rst | 2 +- src/mesh/README.rst | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mesh/HISTORY.rst b/src/mesh/HISTORY.rst index c1b88495e64..a837f6f415e 100644 --- a/src/mesh/HISTORY.rst +++ b/src/mesh/HISTORY.rst @@ -3,7 +3,7 @@ Release History =============== -0.9.2 (2018-07-26) +0.9.2 (2018-08-03) ++++++++++++++++++ * Fix output in get logs command. diff --git a/src/mesh/README.rst b/src/mesh/README.rst index 9cf0e787054..dbf1fa67f34 100644 --- a/src/mesh/README.rst +++ b/src/mesh/README.rst @@ -2,10 +2,8 @@ Microsoft Azure CLI 'mesh' Command Module ============================================================== Official doc https://docs.microsoft.com/en-us/azure/service-fabric-mesh/ -Run tests using +Run tests live using python tests/latest/test_mesh_commands.py -Delete the recordings file to run live tests instead of through vcr by deleting - mesh\azext_mesh\tests\latest\recordings For more info on testing see https://github.com/Azure/azure-cli/blob/dev/doc/authoring_tests.md