diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py b/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py index 360fa231a03..8a85d76ab2c 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py @@ -7,6 +7,7 @@ from knack.log import get_logger from knack.util import CLIError from azure.cli.core.azclierror import ValidationError +from azure.cli.core.commands.validators import validate_tags from azure.cli.command_modules.servicefabric._sf_utils import _get_resource_group_by_name from azure.mgmt.servicefabricmanagedclusters.models import (PartitionScheme, ServiceKind) from ._client_factory import servicefabric_client_factory, servicefabric_managed_client_factory @@ -99,6 +100,7 @@ def validate_create_application(cmd, namespace): # Managed Clusters def validate_create_managed_cluster(cmd, namespace): + validate_tags(namespace) rg = _get_resource_group_by_name(cmd.cli_ctx, namespace.resource_group_name) if rg is None and namespace.location is None: raise CLIError("Resource group {} doesn't exists and location is not provided. " @@ -119,6 +121,7 @@ def validate_create_managed_cluster(cmd, namespace): def validate_create_managed_service(namespace): + validate_tags(namespace) if namespace.service_type is None: raise CLIError("--service-type is required") @@ -162,6 +165,7 @@ def validate_create_managed_service(namespace): def validate_update_managed_service(cmd, namespace): + validate_tags(namespace) client = servicefabric_managed_client_factory(cmd.cli_ctx) service = _safe_get_resource(client.services.get, (namespace.resource_group_name, namespace.cluster_name, @@ -264,6 +268,7 @@ def validate_update_managed_service_correlation(cmd, namespace): def validate_update_managed_application(cmd, namespace): + validate_tags(namespace) client = servicefabric_managed_client_factory(cmd.cli_ctx) app = _safe_get_resource(client.applications.get, (namespace.resource_group_name, namespace.cluster_name, namespace.application_name)) @@ -299,6 +304,7 @@ def validate_update_managed_application(cmd, namespace): def validate_create_managed_application(cmd, namespace): + validate_tags(namespace) client = servicefabric_managed_client_factory(cmd.cli_ctx) if namespace.package_url is None: type_version = _safe_get_resource(client.application_type_versions.get, diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_basic_cluster.yaml b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_basic_cluster.yaml index 528eb5d54a0..f63bb6b79d2 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_basic_cluster.yaml +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_basic_cluster.yaml @@ -11,14 +11,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:45 GMT + - Mon, 06 Jun 2022 22:21:54 GMT expires: - '-1' pragma: @@ -53,14 +53,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -69,7 +69,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:45 GMT + - Mon, 06 Jun 2022 22:21:54 GMT expires: - '-1' pragma: @@ -95,14 +95,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:45 GMT + - Mon, 06 Jun 2022 22:21:54 GMT expires: - '-1' pragma: @@ -137,14 +137,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -153,7 +153,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:45 GMT + - Mon, 06 Jun 2022 22:21:55 GMT expires: - '-1' pragma: @@ -179,14 +179,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -195,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:46 GMT + - Mon, 06 Jun 2022 22:21:54 GMT expires: - '-1' pragma: @@ -221,14 +221,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -237,7 +237,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:46 GMT + - Mon, 06 Jun 2022 22:21:54 GMT expires: - '-1' pragma: @@ -263,14 +263,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -279,7 +279,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:46 GMT + - Mon, 06 Jun 2022 22:21:55 GMT expires: - '-1' pragma: @@ -305,14 +305,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -321,7 +321,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:47 GMT + - Mon, 06 Jun 2022 22:21:55 GMT expires: - '-1' pragma: @@ -347,14 +347,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -363,7 +363,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:47 GMT + - Mon, 06 Jun 2022 22:21:55 GMT expires: - '-1' pragma: @@ -389,14 +389,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -405,7 +405,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:47 GMT + - Mon, 06 Jun 2022 22:21:55 GMT expires: - '-1' pragma: @@ -431,14 +431,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -447,7 +447,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:47 GMT + - Mon, 06 Jun 2022 22:21:55 GMT expires: - '-1' pragma: @@ -473,14 +473,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -489,7 +489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:47 GMT + - Mon, 06 Jun 2022 22:21:56 GMT expires: - '-1' pragma: @@ -515,14 +515,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -531,7 +531,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:47 GMT + - Mon, 06 Jun 2022 22:21:56 GMT expires: - '-1' pragma: @@ -557,14 +557,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -573,7 +573,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:48 GMT + - Mon, 06 Jun 2022 22:21:56 GMT expires: - '-1' pragma: @@ -599,14 +599,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-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":"2021-08-13T19:21:42Z"},"properties":{"provisioningState":"Succeeded"}}' + 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":"2022-06-06T22:21:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -615,7 +615,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:48 GMT + - Mon, 06 Jun 2022 22:21:57 GMT expires: - '-1' pragma: @@ -630,10 +630,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "eastasia", "sku": {"name": "Basic"}, "properties": {"dnsName": - "sfrp-cli-000002", "clientConnectionPort": 19000, "httpGatewayConnectionPort": - 19080, "adminUserName": "vmadmin", "adminPassword": "Pass@000003", "clients": - [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}], + body: '{"location": "eastasia", "tags": {"key1": "value1", "key2": "value2"}, + "sku": {"name": "Basic"}, "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "adminPassword": + "Pass@000003", "clients": [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}], "zonalResiliency": false}}' headers: Accept: @@ -645,11 +645,11 @@ interactions: Connection: - keep-alive Content-Length: - - '346' + - '392' Content-Type: - application/json ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) @@ -659,12 +659,17 @@ interactions: body: string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": - \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": - \"Creating\",\r\n \"clusterId\": \"6776d7d5-aabd-403c-a2e6-c2d819458976\",\r\n - \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"clusterUpgradeCadence\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n + \ \"createdAt\": \"2022-06-06T22:21:58.6158767+00:00\",\r\n \"lastModifiedBy\": + \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": + \"2022-06-06T22:21:58.6158767+00:00\"\r\n },\r\n \"sku\": {\r\n \"name\": + \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"clusterId\": \"b7dd1847-586d-4f26-9630-c24007ee8c80\",\r\n \"clusterUpgradeMode\": + \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n - \ \"clusterCertificateThumbprints\": [\r\n null\r\n ],\r\n \"clientConnectionPort\": + \ \"clusterCertificateThumbprints\": [],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n @@ -672,15 +677,15 @@ interactions: false\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 cache-control: - no-cache content-length: - - '1052' + - '1423' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:21:53 GMT + - Mon, 06 Jun 2022 22:22:00 GMT expires: - '-1' pragma: @@ -712,26 +717,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 30.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '191' + - '190' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:22:23 GMT + - Mon, 06 Jun 2022 22:22:30 GMT expires: - '-1' pragma: @@ -762,26 +767,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 40.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 30.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '191' + - '190' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:22:53 GMT + - Mon, 06 Jun 2022 22:23:01 GMT expires: - '-1' pragma: @@ -812,26 +817,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 40.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '191' + - '190' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:23:24 GMT + - Mon, 06 Jun 2022 22:23:31 GMT expires: - '-1' pragma: @@ -862,26 +867,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 40.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '191' + - '190' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:23:54 GMT + - Mon, 06 Jun 2022 22:24:01 GMT expires: - '-1' pragma: @@ -912,26 +917,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 40.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '191' + - '190' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:24:24 GMT + - Mon, 06 Jun 2022 22:24:31 GMT expires: - '-1' pragma: @@ -962,26 +967,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 51.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '191' + - '190' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:24:54 GMT + - Mon, 06 Jun 2022 22:25:01 GMT expires: - '-1' pragma: @@ -1012,26 +1017,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/eb410005-d007-438c-a066-641ea3149e8c?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/9a6c0002-b267-4462-8d8f-7ece62090438?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"eb410005-d007-438c-a066-641ea3149e8c\",\r\n \"startTime\": - \"2021-08-13T19:21:52.7472388Z\",\r\n \"endTime\": \"2021-08-13T19:25:14.3797267Z\",\r\n + string: "{\r\n \"name\": \"9a6c0002-b267-4462-8d8f-7ece62090438\",\r\n \"startTime\": + \"2022-06-06T22:22:00.589972Z\",\r\n \"endTime\": \"2022-06-06T22:25:31.0026222Z\",\r\n \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" headers: cache-control: - no-cache content-length: - - '203' + - '202' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:25:25 GMT + - Mon, 06 Jun 2022 22:25:31 GMT expires: - '-1' pragma: @@ -1062,7 +1067,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) @@ -1072,14 +1077,19 @@ interactions: body: string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": - \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"clusterId\": \"6776d7d5-aabd-403c-a2e6-c2d819458976\",\r\n - \ \"clusterState\": \"WaitingForNodes\",\r\n \"clusterUpgradeMode\": - \"Automatic\",\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n + \ \"createdAt\": \"2022-06-06T22:21:58.6158767+00:00\",\r\n \"lastModifiedBy\": + \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": + \"2022-06-06T22:21:58.6158767+00:00\"\r\n },\r\n \"sku\": {\r\n \"name\": + \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"clusterId\": \"b7dd1847-586d-4f26-9630-c24007ee8c80\",\r\n \"clusterState\": + \"WaitingForNodes\",\r\n \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n - \ \"ipv4Address\": \"168.63.140.105\",\r\n \"clusterCertificateThumbprints\": - [\r\n \"A69832B19902DF0AD919D684C1941A37C45BB445\"\r\n ],\r\n \"clientConnectionPort\": + \ \"ipv4Address\": \"20.239.73.16\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"84FEAB7E0232838441C02C538D878730BD06725A\"\r\n ],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n @@ -1089,11 +1099,11 @@ interactions: cache-control: - no-cache content-length: - - '1238' + - '1625' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:25:25 GMT + - Mon, 06 Jun 2022 22:25:32 GMT expires: - '-1' pragma: @@ -1141,26 +1151,26 @@ interactions: body: string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodetypes/pnt\",\r\n \ \"type\": \"Microsoft.ServiceFabric/managedclusters/nodetypes\",\r\n \"location\": - \"eastasia\",\r\n \"name\": \"pnt\",\r\n \"tags\": {},\r\n \"properties\": - {\r\n \"provisioningState\": \"Creating\",\r\n \"isPrimary\": true,\r\n - \ \"vmImagePublisher\": \"MicrosoftWindowsServer\",\r\n \"vmImageOffer\": - \"WindowsServer\",\r\n \"vmImageSku\": \"2019-Datacenter\",\r\n \"vmImageVersion\": - \"latest\",\r\n \"vmSize\": \"Standard_D2\",\r\n \"vmInstanceCount\": - 5,\r\n \"dataDiskSizeGB\": 100,\r\n \"dataDiskType\": \"StandardSSD_LRS\",\r\n - \ \"placementProperties\": {},\r\n \"capacities\": {},\r\n \"vmExtensions\": - [],\r\n \"isStateless\": false,\r\n \"multiplePlacementGroups\": false\r\n - \ }\r\n}" + \"eastasia\",\r\n \"name\": \"pnt\",\r\n \"tags\": {},\r\n \"systemData\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"isPrimary\": true,\r\n \"vmImagePublisher\": \"MicrosoftWindowsServer\",\r\n + \ \"vmImageOffer\": \"WindowsServer\",\r\n \"vmImageSku\": \"2019-Datacenter\",\r\n + \ \"vmImageVersion\": \"latest\",\r\n \"vmSize\": \"Standard_D2\",\r\n + \ \"vmInstanceCount\": 5,\r\n \"dataDiskSizeGB\": 100,\r\n \"dataDiskType\": + \"StandardSSD_LRS\",\r\n \"placementProperties\": {},\r\n \"capacities\": + {},\r\n \"vmExtensions\": [],\r\n \"isStateless\": false,\r\n \"multiplePlacementGroups\": + false\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 cache-control: - no-cache content-length: - - '888' + - '909' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:25:27 GMT + - Mon, 06 Jun 2022 22:25:37 GMT expires: - '-1' pragma: @@ -1198,12 +1208,12 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 30.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -1212,7 +1222,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:25:57 GMT + - Mon, 06 Jun 2022 22:26:07 GMT expires: - '-1' pragma: @@ -1248,11 +1258,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1262,7 +1272,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:26:27 GMT + - Mon, 06 Jun 2022 22:26:37 GMT expires: - '-1' pragma: @@ -1298,11 +1308,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1312,7 +1322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:26:57 GMT + - Mon, 06 Jun 2022 22:27:07 GMT expires: - '-1' pragma: @@ -1348,11 +1358,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1362,7 +1372,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:27:27 GMT + - Mon, 06 Jun 2022 22:27:37 GMT expires: - '-1' pragma: @@ -1398,11 +1408,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1412,7 +1422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:27:58 GMT + - Mon, 06 Jun 2022 22:28:08 GMT expires: - '-1' pragma: @@ -1448,11 +1458,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1462,7 +1472,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:28:28 GMT + - Mon, 06 Jun 2022 22:28:38 GMT expires: - '-1' pragma: @@ -1498,11 +1508,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1512,7 +1522,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:28:58 GMT + - Mon, 06 Jun 2022 22:29:08 GMT expires: - '-1' pragma: @@ -1548,11 +1558,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1562,7 +1572,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:29:28 GMT + - Mon, 06 Jun 2022 22:29:39 GMT expires: - '-1' pragma: @@ -1598,11 +1608,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1612,7 +1622,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:29:59 GMT + - Mon, 06 Jun 2022 22:30:09 GMT expires: - '-1' pragma: @@ -1648,11 +1658,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1662,7 +1672,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:30:29 GMT + - Mon, 06 Jun 2022 22:30:39 GMT expires: - '-1' pragma: @@ -1698,11 +1708,11 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: @@ -1712,7 +1722,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:31:00 GMT + - Mon, 06 Jun 2022 22:31:10 GMT expires: - '-1' pragma: @@ -1748,21 +1758,21 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"f8f70005-0e8d-4d5b-bfe5-2c0c9d56e251\",\r\n \"startTime\": - \"2021-08-13T19:25:27.2277206Z\",\r\n \"endTime\": \"2021-08-13T19:31:30.152964Z\",\r\n - \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '202' + - '191' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:31:30 GMT + - Mon, 06 Jun 2022 22:31:40 GMT expires: - '-1' pragma: @@ -1798,29 +1808,21 @@ interactions: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodeTypes/pnt?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodetypes/pnt\",\r\n - \ \"type\": \"Microsoft.ServiceFabric/managedclusters/nodetypes\",\r\n \"location\": - \"eastasia\",\r\n \"name\": \"pnt\",\r\n \"tags\": {},\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"isPrimary\": true,\r\n - \ \"vmImagePublisher\": \"MicrosoftWindowsServer\",\r\n \"vmImageOffer\": - \"WindowsServer\",\r\n \"vmImageSku\": \"2019-Datacenter\",\r\n \"vmImageVersion\": - \"latest\",\r\n \"vmSize\": \"Standard_D2\",\r\n \"vmInstanceCount\": - 5,\r\n \"dataDiskSizeGB\": 100,\r\n \"dataDiskType\": \"StandardSSD_LRS\",\r\n - \ \"placementProperties\": {},\r\n \"capacities\": {},\r\n \"vmExtensions\": - [],\r\n \"isStateless\": false,\r\n \"multiplePlacementGroups\": false\r\n - \ }\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '889' + - '191' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:31:30 GMT + - Mon, 06 Jun 2022 22:32:11 GMT expires: - '-1' pragma: @@ -1843,35 +1845,34 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - sf managed-node-type delete + - sf managed-node-type create Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -g -c -n + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodeTypes/pnt?api-version=2021-05-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: '{"error":{"code":"InvalidParameter","message":"Cluster must have at - least one active primary node type."}}' + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '106' + - '191' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:31:32 GMT + - Mon, 06 Jun 2022 22:32:41 GMT expires: - '-1' pragma: @@ -1881,57 +1882,47 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster show + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n - \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": - \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"clusterId\": \"6776d7d5-aabd-403c-a2e6-c2d819458976\",\r\n - \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"8.0.514.9590\",\r\n - \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"clusterUpgradeCadence\": - \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n - \ \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n \"ipv4Address\": - \"168.63.140.105\",\r\n \"clusterCertificateThumbprints\": [\r\n \"A69832B19902DF0AD919D684C1941A37C45BB445\"\r\n - \ ],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": - 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n - \ \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n - \ }\r\n ],\r\n \"enableAutoOSUpgrade\": false,\r\n \"zonalResiliency\": - false\r\n }\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '1275' + - '191' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:31:34 GMT + - Mon, 06 Jun 2022 22:33:11 GMT expires: - '-1' pragma: @@ -1954,66 +1945,52 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n - \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": - \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {},\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": - \"Deleting\",\r\n \"clusterId\": \"6776d7d5-aabd-403c-a2e6-c2d819458976\",\r\n - \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"clusterUpgradeCadence\": - \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n - \ \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n \"ipv4Address\": - \"168.63.140.105\",\r\n \"clusterCertificateThumbprints\": [\r\n \"A69832B19902DF0AD919D684C1941A37C45BB445\"\r\n - \ ],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": - 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n - \ \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n - \ }\r\n ],\r\n \"enableAutoOSUpgrade\": false,\r\n \"zonalResiliency\": - false\r\n }\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 cache-control: - no-cache content-length: - - '1197' + - '191' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:31:35 GMT + - Mon, 06 Jun 2022 22:33:41 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 pragma: - no-cache server: - - Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + - 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 - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -2022,21 +1999,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2045,7 +2022,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:32:06 GMT + - Mon, 06 Jun 2022 22:34:12 GMT expires: - '-1' pragma: @@ -2055,6 +2032,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -2068,21 +2049,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 50.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2091,7 +2072,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:32:36 GMT + - Mon, 06 Jun 2022 22:34:42 GMT expires: - '-1' pragma: @@ -2101,6 +2082,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -2114,21 +2099,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2137,7 +2122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:33:06 GMT + - Mon, 06 Jun 2022 22:35:12 GMT expires: - '-1' pragma: @@ -2147,6 +2132,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -2160,21 +2149,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2183,7 +2172,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:33:36 GMT + - Mon, 06 Jun 2022 22:35:42 GMT expires: - '-1' pragma: @@ -2193,6 +2182,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -2206,21 +2199,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2229,7 +2222,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:34:06 GMT + - Mon, 06 Jun 2022 22:36:13 GMT expires: - '-1' pragma: @@ -2239,6 +2232,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -2252,21 +2249,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2275,7 +2272,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:34:37 GMT + - Mon, 06 Jun 2022 22:36:44 GMT expires: - '-1' pragma: @@ -2285,6 +2282,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -2298,21 +2299,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2321,7 +2322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:35:07 GMT + - Mon, 06 Jun 2022 22:37:13 GMT expires: - '-1' pragma: @@ -2348,21 +2349,21 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n - \ \"percentComplete\": 60.0,\r\n \"status\": \"Created\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache @@ -2371,7 +2372,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:35:37 GMT + - Mon, 06 Jun 2022 22:37:45 GMT expires: - '-1' pragma: @@ -2398,30 +2399,30 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster delete + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bba90005-ce67-4be9-b8a2-a2536c6bc73e?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: "{\r\n \"name\": \"bba90005-ce67-4be9-b8a2-a2536c6bc73e\",\r\n \"startTime\": - \"2021-08-13T19:31:35.9657556Z\",\r\n \"endTime\": \"2021-08-13T19:36:08.0926826Z\",\r\n - \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '203' + - '191' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:36:08 GMT + - Mon, 06 Jun 2022 22:38:15 GMT expires: - '-1' pragma: @@ -2431,10 +2432,6 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -2444,30 +2441,80 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - sf managed-cluster show + - sf managed-node-type create Connection: - keep-alive ParameterSetName: - - -g -c + - -g -c -n --instance-count --primary User-Agent: - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 response: body: - string: '' + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" headers: cache-control: - no-cache content-length: - - '0' + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:38:45 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/4eee0002-070e-4e93-a229-f9915aa48c80?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"4eee0002-070e-4e93-a229-f9915aa48c80\",\r\n \"startTime\": + \"2022-06-06T22:25:36.9405105Z\",\r\n \"endTime\": \"2022-06-06T22:39:11.477584Z\",\r\n + \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '202' + content-type: + - application/json; charset=utf-8 date: - - Fri, 13 Aug 2021 19:36:09 GMT + - Mon, 06 Jun 2022 22:39:15 GMT expires: - '-1' pragma: @@ -2479,6 +2526,936 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodeTypes/pnt?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodetypes/pnt\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/nodetypes\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"pnt\",\r\n \"tags\": {},\r\n \"systemData\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"isPrimary\": true,\r\n \"vmImagePublisher\": \"MicrosoftWindowsServer\",\r\n + \ \"vmImageOffer\": \"WindowsServer\",\r\n \"vmImageSku\": \"2019-Datacenter\",\r\n + \ \"vmImageVersion\": \"latest\",\r\n \"vmSize\": \"Standard_D2\",\r\n + \ \"vmInstanceCount\": 5,\r\n \"dataDiskSizeGB\": 100,\r\n \"dataDiskType\": + \"StandardSSD_LRS\",\r\n \"placementProperties\": {},\r\n \"capacities\": + {},\r\n \"vmExtensions\": [],\r\n \"isStateless\": false,\r\n \"multiplePlacementGroups\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '910' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:39:15 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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodeTypes/pnt?api-version=2021-05-01 + response: + body: + string: '{"error":{"code":"InvalidParameter","message":"Cluster must have at + least one active primary node type."}}' + headers: + cache-control: + - no-cache + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:39:18 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: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n + \ \"createdAt\": \"2022-06-06T22:21:58.6158767+00:00\",\r\n \"lastModifiedBy\": + \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": + \"2022-06-06T22:21:58.6158767+00:00\"\r\n },\r\n \"sku\": {\r\n \"name\": + \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"clusterId\": \"b7dd1847-586d-4f26-9630-c24007ee8c80\",\r\n \"clusterState\": + \"Ready\",\r\n \"clusterCodeVersion\": \"9.0.1017.9590\",\r\n \"clusterUpgradeMode\": + \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": false,\r\n \"clusterUpgradeCadence\": + \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n + \ \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n \"ipv4Address\": + \"20.239.73.16\",\r\n \"clusterCertificateThumbprints\": [\r\n \"84FEAB7E0232838441C02C538D878730BD06725A\"\r\n + \ ],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n + \ \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ],\r\n \"enableAutoOSUpgrade\": false,\r\n \"zonalResiliency\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1659' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:39: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n + \ \"createdAt\": \"2022-06-06T22:21:58.6158767+00:00\",\r\n \"lastModifiedBy\": + \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": + \"2022-06-06T22:21:58.6158767+00:00\"\r\n },\r\n \"sku\": {\r\n \"name\": + \"Basic\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n + \ \"clusterId\": \"b7dd1847-586d-4f26-9630-c24007ee8c80\",\r\n \"clusterUpgradeMode\": + \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": false,\r\n \"clusterUpgradeCadence\": + \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n + \ \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n \"ipv4Address\": + \"20.239.73.16\",\r\n \"clusterCertificateThumbprints\": [\r\n \"84FEAB7E0232838441C02C538D878730BD06725A\"\r\n + \ ],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n + \ \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ],\r\n \"enableAutoOSUpgrade\": false,\r\n \"zonalResiliency\": + false\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + cache-control: + - no-cache + content-length: + - '1584' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:39:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0,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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:39:52 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:40:22 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:40:52 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:41:22 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:41: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:42:23 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:42: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:43:24 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:43:54 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:44:25 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:44: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:45:26 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster delete + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/51cf0002-7932-45b8-983e-97fa6747b6a9?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"51cf0002-7932-45b8-983e-97fa6747b6a9\",\r\n \"startTime\": + \"2022-06-06T22:39:22.2433569Z\",\r\n \"endTime\": \"2022-06-06T22:45:41.2279447Z\",\r\n + \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '203' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:45: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: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002'' + under resource group ''clitest.rg000001'' was not found. For more details + please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '311' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Jun 2022 22:45:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway status: code: 404 message: Not Found diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py index e4570890016..7cda330e50e 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py @@ -21,12 +21,13 @@ def test_basic_cluster(self): 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', 'loc': 'eastasia', 'cluster_name': self.create_random_name('sfrp-cli-', 24), - 'vm_password': self.create_random_name('Pass@', 9) + 'vm_password': self.create_random_name('Pass@', 9), + 'tags': "key1=value1 key2=value2" }) - self.cmd('az sf managed-cluster create -g {rg} -c {cluster_name} -l {loc} --cert-thumbprint {cert_tp} --cert-is-admin --admin-password {vm_password}', + cluster = self.cmd('az sf managed-cluster create -g {rg} -c {cluster_name} -l {loc} --cert-thumbprint {cert_tp} --cert-is-admin --admin-password {vm_password} --tags {tags}', checks=[self.check('provisioningState', 'Succeeded'), - self.check('clusterState', 'WaitingForNodes')]) + self.check('clusterState', 'WaitingForNodes')]).get_output_in_json() self.cmd('az sf managed-node-type create -g {rg} -c {cluster_name} -n pnt --instance-count 5 --primary', checks=[self.check('provisioningState', 'Succeeded')]) @@ -36,7 +37,8 @@ def test_basic_cluster(self): self.cmd('az sf managed-node-type delete -g {rg} -c {cluster_name} -n pnt') self.cmd('az sf managed-cluster show -g {rg} -c {cluster_name}', - checks=[self.check('clusterState', 'Deploying')]) + checks=[self.check('clusterState', 'Ready'), + self.check('tags', cluster["tags"])]) self.cmd('az sf managed-cluster delete -g {rg} -c {cluster_name}') @@ -50,7 +52,7 @@ def test_node_type_operation(self): 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', 'loc': 'eastasia', 'cluster_name': self.create_random_name('sfrp-cli-', 24), - 'vm_password': self.create_random_name('Pass@', 9) + 'vm_password': self.create_random_name('Pass@', 9), }) self.cmd('az sf managed-cluster create -g {rg} -c {cluster_name} -l {loc} --cert-thumbprint {cert_tp} --cert-is-admin --admin-password {vm_password} --sku Standard --upgrade-mode Automatic --upgrade-cadence Wave1',