diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 676d03a15bb..1b9561d8f08 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +**IoT Central** + +* Support app creation/update with the new sku name ST0, ST1, ST2. + 2.0.80 ++++++ diff --git a/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/recordings/test_iotcentral_app.yaml b/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/recordings/test_iotcentral_app.yaml index 6e506d41208..354829dab97 100644 --- a/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/recordings/test_iotcentral_app.yaml +++ b/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/recordings/test_iotcentral_app.yaml @@ -1,138 +1,4 @@ interactions: -- request: - body: '{"name": "iotc-cli-test000002", "type": "IoTApps"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - iotcentral app create - Connection: - - keep-alive - Content-Length: - - '55' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g --sku --subdomain - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2018-09-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 21 Oct 2019 16:20:11 GMT - etag: - - W/"16-4/x+wI91pK3bZiWtoOg+Zr/n2HE" - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-envoy-upstream-service-time: - - '935' - x-frame-options: - - deny - x-iot-cluster: - - iotcprodsoutheastasia01 - x-iot-correlation: - - ssqyqsy.0 - x-iot-version: - - 101719.0001-master - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-msedge-ref: - - 'Ref A: CBBB73B7294648C48EE5BC13B8D6F268 Ref B: SG2EDGE1007 Ref C: 2019-10-21T16:20:10Z' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{"name": "iotc-cli-test000002", "type": "IoTApps"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - iotcentral app create - Connection: - - keep-alive - Content-Length: - - '55' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g --sku --subdomain - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2018-09-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 21 Oct 2019 16:20:13 GMT - etag: - - W/"16-4/x+wI91pK3bZiWtoOg+Zr/n2HE" - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-envoy-upstream-service-time: - - '936' - x-frame-options: - - deny - x-iot-cluster: - - iotcprodsoutheastasia01 - x-iot-correlation: - - 1nm9guv1.0 - x-iot-version: - - 101719.0001-master - x-ms-ratelimit-remaining-subscription-writes: - - '1193' - x-msedge-ref: - - 'Ref A: 4A7F2EA6A3F44BC4B823AF7DC89023E6 Ref B: SG2EDGE1109 Ref C: 2019-10-21T16:20:13Z' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK - request: body: null headers: @@ -145,17 +11,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --sku --subdomain + - -n -g --subdomain --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-21T16:20:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"date":"2020-01-13T22:46:12Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -164,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:20:15 GMT + - Mon, 13 Jan 2020 22:46:10 GMT expires: - '-1' pragma: @@ -179,8 +45,8 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westus", "properties": {"displayName": "iotc-cli-test000002", - "subdomain": "iotc-cli-test000002"}, "sku": {"name": "S1"}}' + body: !!python/unicode '{"sku": {"name": "ST2"}, "properties": {"subdomain": "iotc-cli-test000002", + "displayName": "iotc-cli-test000002"}, "location": "westus"}' headers: Accept: - application/json @@ -191,32 +57,32 @@ interactions: Connection: - keep-alive Content-Length: - - '145' + - '146' Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -n -g --sku --subdomain + - -n -g --subdomain --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"cd36259b-8948-40b1-95a8-c2a77361487b","state":"created","displayName":"iotc-cli-test000002","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2019-10-21T16:20:23.084Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"b1047199-0000-0100-0000-5daddac70000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"3c40fd70-35de-47d6-9b96-25dd85462883","state":"created","displayName":"iotc-cli-test000002","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2020-01-13T22:46:15.516Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST2"},"etag":"\"3c001074-0000-0100-0000-5e1cf3370000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '694' + - '695' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:20:50 GMT + - Mon, 13 Jan 2020 22:46:17 GMT etag: - - '"b1047199-0000-0100-0000-5daddac70000"' + - '"3c001074-0000-0100-0000-5e1cf3370000"' strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -224,19 +90,19 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '30456' + - '3665' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 4fa92aay.0 + - 7iyr186z.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-ms-ratelimit-remaining-subscription-writes: - - '1180' + - '1199' x-msedge-ref: - - 'Ref A: 00B4B513BCC44A20B702444017F2E01F Ref B: SG2EDGE0115 Ref C: 2019-10-21T16:20:20Z' + - 'Ref A: 8F8ECE63C807401B8F0FCD09BCBBF989 Ref B: BY3EDGE0118 Ref C: 2020-01-13T22:46:14Z' x-xss-protection: - 1; mode=block status: @@ -254,26 +120,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --sku --subdomain + - -n -g --subdomain --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"cd36259b-8948-40b1-95a8-c2a77361487b","state":"created","displayName":"iotc-cli-test000002","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2019-10-21T16:20:23.084Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"b1047199-0000-0100-0000-5daddac70000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"3c40fd70-35de-47d6-9b96-25dd85462883","state":"created","displayName":"iotc-cli-test000002","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2020-01-13T22:46:15.516Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST2"},"etag":"\"3c001074-0000-0100-0000-5e1cf3370000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '694' + - '695' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:21:50 GMT + - Mon, 13 Jan 2020 22:46:48 GMT etag: - - W/"b1047199-0000-0100-0000-5daddac70000" + - W/"3c001074-0000-0100-0000-5e1cf3370000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -285,151 +151,17 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '27145' + - '344' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - j5956nl.0 + - 8kra06qp.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-msedge-ref: - - 'Ref A: AF851C77A7BD473194C23F41C7506F7C Ref B: SG2EDGE1022 Ref C: 2019-10-21T16:21:23Z' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{"name": "iotc-cli-test000002-template", "type": "IoTApps"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - iotcentral app create - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g --sku --subdomain --template --display-name - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2018-09-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 21 Oct 2019 16:21:54 GMT - etag: - - W/"16-4/x+wI91pK3bZiWtoOg+Zr/n2HE" - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-envoy-upstream-service-time: - - '1631' - x-frame-options: - - deny - x-iot-cluster: - - iotcprodsoutheastasia01 - x-iot-correlation: - - 5lkxa5kd.0 - x-iot-version: - - 101719.0001-master - x-ms-ratelimit-remaining-subscription-writes: - - '1188' - x-msedge-ref: - - 'Ref A: 5F8335BA3506494F8A25B438AA96EE81 Ref B: SG2EDGE0317 Ref C: 2019-10-21T16:21:53Z' - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: '{"name": "iotc-cli-test000002-template", "type": "IoTApps"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - iotcentral app create - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g --sku --subdomain --template --display-name - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2018-09-01 - response: - body: - string: '{"nameAvailable":true}' - headers: - cache-control: - - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 21 Oct 2019 16:21:57 GMT - etag: - - W/"16-4/x+wI91pK3bZiWtoOg+Zr/n2HE" - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-envoy-upstream-service-time: - - '932' - x-frame-options: - - deny - x-iot-cluster: - - iotcprodsoutheastasia01 - x-iot-correlation: - - 3jj3wrzj.0 - x-iot-version: - - 101719.0001-master - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-msedge-ref: - - 'Ref A: 4C65EAB377894EDE911F0D00ACEA5A48 Ref B: SG2EDGE0121 Ref C: 2019-10-21T16:21:57Z' + - 'Ref A: 15D29B631CAA4430A908D8FCC1F9EA07 Ref B: BY3EDGE0211 Ref C: 2020-01-13T22:46:48Z' x-xss-protection: - 1; mode=block status: @@ -447,17 +179,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --sku --subdomain --template --display-name + - -n -g --subdomain --template --display-name --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-resource/6.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-10-21T16:20:03Z"},"properties":{"provisioningState":"Succeeded"}}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"date":"2020-01-13T22:46:12Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -466,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:21:59 GMT + - Mon, 13 Jan 2020 22:46:49 GMT expires: - '-1' pragma: @@ -481,9 +213,9 @@ interactions: code: 200 message: OK - request: - body: '{"location": "westus", "properties": {"displayName": "My Custom App Display - Name", "subdomain": "iotc-cli-test000002-template", "template": "iotc-devkit-sample@1.0.0"}, - "sku": {"name": "S1"}}' + body: !!python/unicode '{"sku": {"name": "ST1"}, "properties": {"subdomain": "iotc-cli-test000002-template", + "displayName": "My Custom App Display Name", "template": "iotc-default@1.0.0"}, + "location": "westus"}' headers: Accept: - application/json @@ -494,33 +226,33 @@ interactions: Connection: - keep-alive Content-Length: - - '196' + - '191' Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -n -g --sku --subdomain --template --display-name + - -n -g --subdomain --template --display-name --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"b519cede-4325-46f0-8afb-47f728a0ab12","state":"created","displayName":"My - Custom App Display Name","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002-template","createdDate":"2019-10-21T16:22:07.042Z","template":"iotc-devkit-sample@1.0.0"},"sku":{"name":"S1"},"etag":"\"b104ccbf-0000-0100-0000-5daddb2f0000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"342ed6f2-4ee3-4743-b3c4-e3dd153c3e59","state":"created","displayName":"My + Custom App Display Name","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002-template","createdDate":"2020-01-13T22:46:51.100Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST1"},"etag":"\"01008ab0-0000-0100-0000-5e1cf35b0000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '729' + - '724' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:22:17 GMT + - Mon, 13 Jan 2020 22:46:53 GMT etag: - - '"b104ccbf-0000-0100-0000-5daddb2f0000"' + - '"01008ab0-0000-0100-0000-5e1cf35b0000"' strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -528,19 +260,19 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '14747' + - '3959' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - c53a64o9.0 + - cp57vok1.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-ms-ratelimit-remaining-subscription-writes: - - '1190' + - '1199' x-msedge-ref: - - 'Ref A: FBD58C138C464B6BBCD20384424CB753 Ref B: SG2EDGE0317 Ref C: 2019-10-21T16:22:03Z' + - 'Ref A: BBB7B7F1C1DA4A4BB3A7FFA8310E23A1 Ref B: BY3EDGE0420 Ref C: 2020-01-13T22:46:50Z' x-xss-protection: - 1; mode=block status: @@ -558,27 +290,27 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g --sku --subdomain --template --display-name + - -n -g --subdomain --template --display-name --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"b519cede-4325-46f0-8afb-47f728a0ab12","state":"created","displayName":"My - Custom App Display Name","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002-template","createdDate":"2019-10-21T16:22:07.042Z","template":"iotc-devkit-sample@1.0.0"},"sku":{"name":"S1"},"etag":"\"b104ccbf-0000-0100-0000-5daddb2f0000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"342ed6f2-4ee3-4743-b3c4-e3dd153c3e59","state":"created","displayName":"My + Custom App Display Name","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002-template","createdDate":"2020-01-13T22:46:51.100Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST1"},"etag":"\"01008ab0-0000-0100-0000-5e1cf35b0000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '729' + - '724' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:22:51 GMT + - Mon, 13 Jan 2020 22:47:24 GMT etag: - - W/"b104ccbf-0000-0100-0000-5daddb2f0000" + - W/"01008ab0-0000-0100-0000-5e1cf35b0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -590,17 +322,17 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '1156' + - '348' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 4te57fmc.0 + - 73fcwe0v.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-msedge-ref: - - 'Ref A: CE2DFD0B28934CB9A86C42E0B6A13846 Ref B: SG2EDGE0317 Ref C: 2019-10-21T16:22:50Z' + - 'Ref A: EAD1319C9C8344D8A89F844AD214F790 Ref B: BY3EDGE0121 Ref C: 2020-01-13T22:47:24Z' x-xss-protection: - 1; mode=block status: @@ -620,27 +352,27 @@ interactions: ParameterSetName: - -n -g --set User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"b519cede-4325-46f0-8afb-47f728a0ab12","state":"created","displayName":"My - Custom App Display Name","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002-template","createdDate":"2019-10-21T16:22:07.042Z","template":"iotc-devkit-sample@1.0.0"},"sku":{"name":"S1"},"etag":"\"b104ccbf-0000-0100-0000-5daddb2f0000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"342ed6f2-4ee3-4743-b3c4-e3dd153c3e59","state":"created","displayName":"My + Custom App Display Name","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002-template","createdDate":"2020-01-13T22:46:51.100Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST1"},"etag":"\"01008ab0-0000-0100-0000-5e1cf35b0000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '729' + - '724' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:22:54 GMT + - Mon, 13 Jan 2020 22:47:26 GMT etag: - - W/"b104ccbf-0000-0100-0000-5daddb2f0000" + - W/"01008ab0-0000-0100-0000-5e1cf35b0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -652,26 +384,26 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '1155' + - '342' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - b1zgagv0.0 + - 4dd8he5a.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-msedge-ref: - - 'Ref A: 41C62C7C86204B99A3746CBC9F539882 Ref B: SG2EDGE1114 Ref C: 2019-10-21T16:22:53Z' + - 'Ref A: BB8444339A3F4940A900566CA89F22D2 Ref B: BY3EDGE0315 Ref C: 2020-01-13T22:47:26Z' x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"location": "westus", "tags": {}, "properties": {"displayName": "iotc-cli-test000002update", - "subdomain": "iotc-cli-test000002update", "template": "iotc-devkit-sample@1.0.0"}, - "sku": {"name": "S1"}}' + body: !!python/unicode '{"sku": {"name": "ST2"}, "location": "westus", "properties": + {"subdomain": "iotc-cli-test000002update", "displayName": "iotc-cli-test000002update", + "template": "iotc-default@1.0.0"}, "tags": {}}' headers: Accept: - application/json @@ -682,34 +414,34 @@ interactions: Connection: - keep-alive Content-Length: - - '209' + - '204' Content-Type: - application/json; charset=utf-8 IF-MATCH: - - '"b104ccbf-0000-0100-0000-5daddb2f0000"' + - !!python/unicode '"01008ab0-0000-0100-0000-5e1cf35b0000"' ParameterSetName: - -n -g --set User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"b519cede-4325-46f0-8afb-47f728a0ab12","state":"created","displayName":"iotc-cli-test000002update","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002update","createdDate":"2019-10-21T16:22:07.042Z","lastUpdated":"2019-10-21T16:23:00.776Z","template":"iotc-devkit-sample@1.0.0"},"sku":{"name":"S1"},"etag":"\"b104dbe3-0000-0100-0000-5daddb650000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"342ed6f2-4ee3-4743-b3c4-e3dd153c3e59","state":"created","displayName":"iotc-cli-test000002update","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002update","createdDate":"2020-01-13T22:46:51.100Z","lastUpdated":"2020-01-13T22:47:27.803Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST2"},"etag":"\"0100a2b0-0000-0100-0000-5e1cf37f0000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '771' + - '766' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:23:03 GMT + - Mon, 13 Jan 2020 22:47:27 GMT etag: - - W/"b104dbe3-0000-0100-0000-5daddb650000" + - W/"0100a2b0-0000-0100-0000-5e1cf37f0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -721,19 +453,19 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '4544' + - '1408' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 1qk5b7rp.0 + - 5cme9j2z.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1199' x-msedge-ref: - - 'Ref A: A172644582B24A6D8AE8FF653251ACB4 Ref B: SG2EDGE0912 Ref C: 2019-10-21T16:22:57Z' + - 'Ref A: 95258E20B94148808B2118C81836C5A7 Ref B: BY3EDGE0408 Ref C: 2020-01-13T22:47:26Z' x-xss-protection: - 1; mode=block status: @@ -753,26 +485,26 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"cd36259b-8948-40b1-95a8-c2a77361487b","state":"created","displayName":"iotc-cli-test000002","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2019-10-21T16:20:23.084Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"b1047199-0000-0100-0000-5daddac70000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"3c40fd70-35de-47d6-9b96-25dd85462883","state":"created","displayName":"iotc-cli-test000002","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2020-01-13T22:46:15.516Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST2"},"etag":"\"3c001074-0000-0100-0000-5e1cf3370000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '694' + - '695' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:23:06 GMT + - Mon, 13 Jan 2020 22:47:29 GMT etag: - - W/"b1047199-0000-0100-0000-5daddac70000" + - W/"3c001074-0000-0100-0000-5e1cf3370000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -784,17 +516,17 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '1164' + - '341' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 6n7pi5ty.0 + - 1hdd1c4o.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-msedge-ref: - - 'Ref A: B9818A975CD3420F8F2EAABA8A07708C Ref B: SG2EDGE0916 Ref C: 2019-10-21T16:23:06Z' + - 'Ref A: A1E40B7B81B24BDDB79E697FB3C00A8F Ref B: BY3EDGE0419 Ref C: 2020-01-13T22:47:29Z' x-xss-protection: - 1; mode=block status: @@ -814,26 +546,26 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"b519cede-4325-46f0-8afb-47f728a0ab12","state":"created","displayName":"iotc-cli-test000002update","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002update","createdDate":"2019-10-21T16:22:07.042Z","lastUpdated":"2019-10-21T16:23:00.776Z","template":"iotc-devkit-sample@1.0.0"},"sku":{"name":"S1"},"etag":"\"b104dbe3-0000-0100-0000-5daddb650000\""}' + string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"342ed6f2-4ee3-4743-b3c4-e3dd153c3e59","state":"created","displayName":"iotc-cli-test000002update","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002update","createdDate":"2020-01-13T22:46:51.100Z","lastUpdated":"2020-01-13T22:47:27.803Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST2"},"etag":"\"0100a2b0-0000-0100-0000-5e1cf37f0000\""}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '771' + - '766' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:23:10 GMT + - Mon, 13 Jan 2020 22:47:29 GMT etag: - - W/"b104dbe3-0000-0100-0000-5daddb650000" + - W/"0100a2b0-0000-0100-0000-5e1cf37f0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -845,17 +577,17 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '1181' + - '350' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 5gwwnzf8.0 + - bnzexa78.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-msedge-ref: - - 'Ref A: 3187C5B27F64419E84759F5C8696586F Ref B: SG2EDGE0912 Ref C: 2019-10-21T16:23:09Z' + - 'Ref A: C440DA371477455986F20004ADD26900 Ref B: BY3EDGE0410 Ref C: 2020-01-13T22:47:29Z' x-xss-protection: - 1; mode=block status: @@ -877,24 +609,22 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01 response: body: - string: '' + string: !!python/unicode headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - '0' - content-type: - - text/plain date: - - Mon, 21 Oct 2019 16:23:16 GMT + - Mon, 13 Jan 2020 22:47:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -902,19 +632,19 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '2425' + - '817' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 30gv78wh.0 + - 1rrqh66.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-ms-ratelimit-remaining-subscription-deletes: - - '14996' + - '14999' x-msedge-ref: - - 'Ref A: 054729708D6A418C9055D0D1EB31D124 Ref B: SG2EDGE1007 Ref C: 2019-10-21T16:23:13Z' + - 'Ref A: FCCD24B02A7B48E59F44D0F3F5F51428 Ref B: BY3EDGE0106 Ref C: 2020-01-13T22:47:31Z' x-xss-protection: - 1; mode=block status: @@ -934,26 +664,26 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps?api-version=2018-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"cd36259b-8948-40b1-95a8-c2a77361487b","state":"created","displayName":"iotc-cli-test000002","tenant":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2019-10-21T16:20:23.084Z","template":"iotc-default@1.0.0"},"sku":{"name":"S1"},"etag":"\"b1047199-0000-0100-0000-5daddac70000\""}],"nextLink":null}' + string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"3c40fd70-35de-47d6-9b96-25dd85462883","state":"created","displayName":"iotc-cli-test000002","tenant":"7f448912-3312-4b33-838d-76eb99405624","capabilities":{},"subdomain":"iotc-cli-test000002","createdDate":"2020-01-13T22:46:15.516Z","template":"iotc-default@1.0.0"},"sku":{"name":"ST2"},"etag":"\"3c001074-0000-0100-0000-5e1cf3370000\""}],"nextLink":null}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '722' + - '723' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 16:23:20 GMT + - Mon, 13 Jan 2020 22:47:32 GMT etag: - - W/"2d2-D/JuZaA6ZD9I6S6iQV1lcy7EBQU" + - W/"2d3-i7x0zca9fcPPmEBF0C6fwhBHvcc" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -965,17 +695,17 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '1158' + - '345' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - 875slvti.0 + - 9n29pqqc.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-msedge-ref: - - 'Ref A: 029D3E86B53A486EA86C169FE635615B Ref B: SG2EDGE0109 Ref C: 2019-10-21T16:23:19Z' + - 'Ref A: A0CC0A30F81C406EBA75951440F99473 Ref B: BY3EDGE0419 Ref C: 2020-01-13T22:47:32Z' x-xss-protection: - 1; mode=block status: @@ -997,24 +727,22 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-iotcentral/1.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - python/2.7.14 (Windows-10-10.0.18362) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-iotcentral/2.0.0 + Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01 response: body: - string: '' + string: !!python/unicode headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - '0' - content-type: - - text/plain date: - - Mon, 21 Oct 2019 16:23:27 GMT + - Mon, 13 Jan 2020 22:47:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -1022,19 +750,19 @@ interactions: x-download-options: - noopen x-envoy-upstream-service-time: - - '3337' + - '823' x-frame-options: - deny x-iot-cluster: - - iotcprodsoutheastasia01 + - iotcprodwestus02 x-iot-correlation: - - bea4pyvj.0 + - jpguqeh.0 x-iot-version: - - 101719.0001-master + - 010720.0004-master x-ms-ratelimit-remaining-subscription-deletes: - '14999' x-msedge-ref: - - 'Ref A: 500AC2464CFF41B082158632E7AED8CE Ref B: SG2EDGE0916 Ref C: 2019-10-21T16:23:23Z' + - 'Ref A: E069DEE2512B469F9A13F5D338540A4D Ref B: BY3EDGE0320 Ref C: 2020-01-13T22:47:33Z' x-xss-protection: - 1; mode=block status: diff --git a/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/test_iotcentral_commands.py b/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/test_iotcentral_commands.py index ae6d9cd50b2..cc01aee87ac 100644 --- a/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/test_iotcentral_commands.py +++ b/src/azure-cli/azure/cli/command_modules/iotcentral/tests/latest/test_iotcentral_commands.py @@ -15,34 +15,35 @@ def test_iotcentral_app(self, resource_group, resource_group_location): template_app_display_name = "My Custom App Display Name" rg = resource_group location = resource_group_location - template = 'iotc-devkit-sample@1.0.0' + template = 'iotc-default@1.0.0' updatedName = app_name + 'update' # Test 'az iotcentral app create' - self.cmd('iotcentral app create -n {0} -g {1} --sku S1 --subdomain {2}'.format(app_name, rg, app_name), checks=[ + self.cmd('iotcentral app create -n {0} -g {1} --subdomain {2} --sku {3}'.format(app_name, rg, app_name, 'ST2'), checks=[ self.check('resourceGroup', rg), self.check('location', location), self.check('subdomain', app_name), self.check('displayName', app_name), - self.check('sku.name', 'S1')]) + self.check('sku.name', 'ST2')]) # Test 'az iotcentral app create with template and display name' - self.cmd('iotcentral app create -n {0} -g {1} --sku S1 --subdomain {2} --template {3} --display-name \"{4}\"' - .format(template_app_name, rg, template_app_name, template, template_app_display_name), checks=[ + self.cmd('iotcentral app create -n {0} -g {1} --subdomain {2} --template {3} --display-name \"{4}\" --sku {5}' + .format(template_app_name, rg, template_app_name, template, template_app_display_name, 'ST1'), checks=[ self.check('resourceGroup', rg), self.check('location', location), self.check('subdomain', template_app_name), self.check('displayName', template_app_display_name), - self.check('sku.name', 'S1'), + self.check('sku.name', 'ST1'), self.check('template', template)]) # Test 'az iotcentral app update' - self.cmd('iotcentral app update -n {0} -g {1} --set displayName={2} subdomain={3}' - .format(template_app_name, rg, updatedName, updatedName), checks=[ + self.cmd('iotcentral app update -n {0} -g {1} --set displayName={2} subdomain={3} sku.name={4}' + .format(template_app_name, rg, updatedName, updatedName, 'ST2'), checks=[ self.check('resourceGroup', rg), self.check('location', location), self.check('subdomain', updatedName), - self.check('displayName', updatedName)]) + self.check('displayName', updatedName), + self.check('sku.name', 'ST2')]) # Test 'az iotcentral app show' self.cmd('iotcentral app show -n {0} -g {1}'.format(app_name, rg), checks=[ @@ -50,7 +51,7 @@ def test_iotcentral_app(self, resource_group, resource_group_location): self.check('location', location), self.check('subdomain', app_name), self.check('displayName', app_name), - self.check('sku.name', 'S1')]) + self.check('sku.name', 'ST2')]) # Test 'az iotcentral app show with template and display name' self.cmd('iotcentral app show -n {0} -g {1}'.format(template_app_name, rg), checks=[ @@ -58,7 +59,7 @@ def test_iotcentral_app(self, resource_group, resource_group_location): self.check('location', location), self.check('subdomain', updatedName), self.check('displayName', updatedName), - self.check('sku.name', 'S1'), + self.check('sku.name', 'ST2'), self.check('template', template)]) # Test 'az iotcentral app delete with template and display name' @@ -72,7 +73,7 @@ def test_iotcentral_app(self, resource_group, resource_group_location): self.check('[0].location', location), self.check('[0].subdomain', app_name), self.check('[0].displayName', app_name), - self.check('[0].sku.name', 'S1')]) + self.check('[0].sku.name', 'ST2')]) # Test 'az iotcentral app delete' self.cmd('iotcentral app delete -n {0} -g {1}'.format(app_name, rg), checks=[ diff --git a/src/azure-cli/requirements.py2.Darwin.txt b/src/azure-cli/requirements.py2.Darwin.txt index d0e3bf8a880..87039448105 100644 --- a/src/azure-cli/requirements.py2.Darwin.txt +++ b/src/azure-cli/requirements.py2.Darwin.txt @@ -44,7 +44,7 @@ azure-mgmt-eventgrid==2.2.0 azure-mgmt-eventhub==2.6.0 azure-mgmt-hdinsight==1.3.0 azure-mgmt-imagebuilder==0.2.1 -azure-mgmt-iotcentral==1.0.0 +azure-mgmt-iotcentral==2.0.0 azure-mgmt-iothub==0.8.2 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 diff --git a/src/azure-cli/requirements.py2.Linux.txt b/src/azure-cli/requirements.py2.Linux.txt index d0e3bf8a880..87039448105 100644 --- a/src/azure-cli/requirements.py2.Linux.txt +++ b/src/azure-cli/requirements.py2.Linux.txt @@ -44,7 +44,7 @@ azure-mgmt-eventgrid==2.2.0 azure-mgmt-eventhub==2.6.0 azure-mgmt-hdinsight==1.3.0 azure-mgmt-imagebuilder==0.2.1 -azure-mgmt-iotcentral==1.0.0 +azure-mgmt-iotcentral==2.0.0 azure-mgmt-iothub==0.8.2 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 diff --git a/src/azure-cli/requirements.py2.windows.txt b/src/azure-cli/requirements.py2.windows.txt index 170c31a257c..6ac5456febe 100644 --- a/src/azure-cli/requirements.py2.windows.txt +++ b/src/azure-cli/requirements.py2.windows.txt @@ -43,7 +43,7 @@ azure-mgmt-eventgrid==2.2.0 azure-mgmt-eventhub==2.6.0 azure-mgmt-hdinsight==1.3.0 azure-mgmt-imagebuilder==0.2.1 -azure-mgmt-iotcentral==1.0.0 +azure-mgmt-iotcentral==2.0.0 azure-mgmt-iothub==0.8.2 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index bb9d08f0982..81d8d3ccf9a 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -44,7 +44,7 @@ azure-mgmt-eventgrid==2.2.0 azure-mgmt-eventhub==2.6.0 azure-mgmt-hdinsight==1.3.0 azure-mgmt-imagebuilder==0.2.1 -azure-mgmt-iotcentral==1.0.0 +azure-mgmt-iotcentral==2.0.0 azure-mgmt-iothub==0.8.2 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index bb9d08f0982..81d8d3ccf9a 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -44,7 +44,7 @@ azure-mgmt-eventgrid==2.2.0 azure-mgmt-eventhub==2.6.0 azure-mgmt-hdinsight==1.3.0 azure-mgmt-imagebuilder==0.2.1 -azure-mgmt-iotcentral==1.0.0 +azure-mgmt-iotcentral==2.0.0 azure-mgmt-iothub==0.8.2 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 5651b1d9d12..7752fc5b4cd 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -43,7 +43,7 @@ azure-mgmt-eventgrid==2.2.0 azure-mgmt-eventhub==2.6.0 azure-mgmt-hdinsight==1.3.0 azure-mgmt-imagebuilder==0.2.1 -azure-mgmt-iotcentral==1.0.0 +azure-mgmt-iotcentral==2.0.0 azure-mgmt-iothub==0.8.2 azure-mgmt-iothubprovisioningservices==0.2.0 azure-mgmt-keyvault==1.1.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index e1a583137c5..1722fa9c6f4 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -90,7 +90,7 @@ 'azure-mgmt-eventhub~=2.6', 'azure-mgmt-hdinsight~=1.3.0', 'azure-mgmt-imagebuilder~=0.2.1', - 'azure-mgmt-iotcentral~=1.0', + 'azure-mgmt-iotcentral~=2.0.0', 'azure-mgmt-iothub~=0.8.2', 'azure-mgmt-iothubprovisioningservices~=0.2.0', 'azure-mgmt-keyvault~=1.1',