diff --git a/.vscode/launch.json b/.vscode/launch.json index 1187e215bf1..c2a47d74891 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "name": "Azure CLI Debug (Integrated Console)", "type": "python", "request": "launch", - "pythonPath": "${command:python.interpreterPath}", + "python": "${command:python.interpreterPath}", "program": "${workspaceRoot}/src/azure-cli/azure/cli/__main__.py", "cwd": "${workspaceRoot}", "args": [ @@ -24,7 +24,7 @@ "type": "python", "request": "launch", "stopOnEntry": true, - "pythonPath": "${command:python.interpreterPath}", + "python": "${command:python.interpreterPath}", "program": "${workspaceRoot}/src/azure-cli/azure/cli/__main__.py", "cwd": "${workspaceRoot}", "args": [ @@ -40,7 +40,7 @@ "name": "Azdev Scripts", "type": "python", "request": "launch", - "pythonPath": "${command:python.interpreterPath}", + "python": "${command:python.interpreterPath}", "program": "${workspaceRoot}/tools/automation/__main__.py", "cwd": "${workspaceRoot}", "args": [ diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/_client_factory.py b/src/azure-cli/azure/cli/command_modules/servicefabric/_client_factory.py index b9bad0e5c5e..6e9fe3c9fe1 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_client_factory.py @@ -70,3 +70,31 @@ def network_client_factory(cli_ctx, **_): from azure.cli.core.profiles import ResourceType from azure.cli.core.commands.client_factory import get_mgmt_service_client return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_NETWORK) + + +# Managed clusters + +def servicefabric_managed_client_factory(cli_ctx, **_): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from azure.mgmt.servicefabricmanagedclusters import ServiceFabricManagedClustersManagementClient + return get_mgmt_service_client(cli_ctx, ServiceFabricManagedClustersManagementClient) + + +def servicefabric_managed_client_factory_all(cli_ctx, kwargs): + return servicefabric_managed_client_factory(cli_ctx, **kwargs) + + +def servicefabric_managed_application_type_client_factory(cli_ctx, kwargs): + return servicefabric_managed_client_factory(cli_ctx, **kwargs).application_types + + +def servicefabric_managed_application_type_version_client_factory(cli_ctx, kwargs): + return servicefabric_managed_client_factory(cli_ctx, **kwargs).application_type_versions + + +def servicefabric_managed_application_client_factory(cli_ctx, kwargs): + return servicefabric_managed_client_factory(cli_ctx, **kwargs).applications + + +def servicefabric_managed_service_client_factory(cli_ctx, kwargs): + return servicefabric_managed_client_factory(cli_ctx, **kwargs).services diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/_help.py b/src/azure-cli/azure/cli/command_modules/servicefabric/_help.py index cceec0dac9d..f71b801eb24 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_help.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_help.py @@ -620,3 +620,314 @@ text: > az sf managed-node-type vm-secret add -g testRG -c testCluster -n snt --source-vault-id /subscriptions/XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/testRG/providers/Microsoft.KeyVault/vaults/testkv --certificate-url https://testskv.vault.azure.net:443/secrets/TestCert/xxxxxxxxxxxxxxxxxxxxxxxx --certificate-store my """ + +helps['sf managed-application'] = """ +type: group +short-summary: Manage applications running on an Azure Service Fabric managed cluster. Only support ARM deployed applications. +""" + +helps['sf managed-application create'] = """ +type: command +short-summary: Create a new managed application on an Azure Service Fabric managed cluster. +examples: + - name: Create managed application "testApp" with parameters. The application type "TestAppType" version "v1" should already exist in the cluster, and the application parameters should be defined in the application manifest. + text: > + az sf managed-application create -g testRG -c testCluster --application-name testApp --application-type-name TestAppType \\ + --application-type-version v1 --application-parameters key0=value0 --tags key1=value1 + - name: Create application "testApp" and app type version using the package url provided. + text: > + az sf managed-application create -g testRG -c testCluster --application-name testApp --application-type-name TestAppType \\ + --application-type-version v1 --package-url "https://sftestapp.blob.core.windows.net/sftestapp/testApp_1.0.sfpkg" \\ + --application-parameters key0=value0 +""" + +helps['sf managed-application update'] = """ +type: command +short-summary: Update a Azure Service Fabric managed application. +long-summary: This allows for updating the tags, the application parameters, value is the application UpgradePolicy and/or upgrade the application type version which will trigger an application upgrade. +examples: + - name: Update application parameters and upgreade policy values and app type version to v2. + text: > + az sf managed-application update -g testRG -c testCluster --application-name testApp --application-type-version v2 \\ + --application-parameters key0=value0 --health-check-stable-duration 0 --health-check-wait-duration 0 --health-check-retry-timeout 0 \\ + --upgrade-domain-timeout 5000 --upgrade-timeout 7000 --failure-action Rollback --upgrade-replica-set-check-timeout 300 --force-restart + - name: Update managed application service type health policy map. + text: > + az sf managed-application update -g testRG -c testCluster --application-name testApp --service-type-health-policy-map \"ServiceTypeName01\"=\"5,10,5\" \"ServiceTypeName02\"=\"5,5,5\" +""" + +helps['sf managed-application show'] = """ +type: command +short-summary: Show the properties of a managed application on an Azure Service Fabric managed cluster. +examples: + - name: Get managed application. + text: > + az sf managed-application show -g testRG -c testCluster --application-name testApp +""" + +helps['sf managed-application list'] = """ +type: command +short-summary: List managed applications of a given managed cluster. +examples: + - name: List managed applications for a given managed cluster. + text: > + az sf managed-application list -g testRG -c testCluster +""" + +helps['sf managed-application delete'] = """ +type: command +short-summary: Delete a managed application. +examples: + - name: Delete managed application. + text: > + az sf managed-application delete -g testRG -c testCluster --application-name testApp +""" + +helps['sf managed-application-type'] = """ +type: group +short-summary: Manage applications types and its versions running on an Azure Service Fabric managed cluster. Only support ARM deployed application types. +""" + +helps['sf managed-application-type'] = """ +type: group +short-summary: Manage application types on an Azure Service Fabric cluster. +""" + +helps['sf managed-application-type create'] = """ +type: command +short-summary: Create a new managed application type on an Azure Service Fabric managed cluster. +examples: + - name: Create new managed application type. + text: > + az sf managed-application-type create -g testRG -c testCluster --application-type-name testAppType +""" + +helps['sf managed-application-type show'] = """ +type: command +short-summary: Show the properties of a managed application type on an Azure Service Fabric managed cluster. +examples: + - name: Get managed application type. + text: > + az sf managed-application-type show -g testRG -c testCluster --application-type-name CalcServiceApp +""" + +helps['sf managed-application-type list'] = """ +type: command +short-summary: List managed application types of a given managed cluster. +examples: + - name: List managed application types for a given managed cluster. + text: > + az sf managed-application-type list -g testRG -c testCluster +""" + +helps['sf managed-application-type update'] = """ +type: command +short-summary: Update an managed application type. +long-summary: This allows for updating of application type tags. +examples: + - name: Update application type tags. + text: > + az sf managed-application-type update -g testRG -c testCluster --application-type-name CalcServiceApp --tags new=tags are=nice +""" + +helps['sf managed-application-type delete'] = """ +type: command +short-summary: Delete a managed application type. +examples: + - name: Delete managed application type. + text: > + az sf managed-application-type delete -g testRG -c testCluster --application-type-name CalcServiceApp +""" + +helps['sf managed-application-type version'] = """ +type: group +short-summary: Manage application type versions on an Azure Service Fabric managed cluster. Only support ARM deployed application type versions. +""" + +helps['sf managed-application-type version create'] = """ +type: command +short-summary: Create a new managed application type on an Azure Service Fabric managed cluster. +examples: + - name: Create new managed application type version using the provided package url. The version in the application manifest contained in the package should have the same version as the one specified in --version. + text: > + az sf managed-application-type version create -g testRG -c testCluster --application-type-name testAppType \\ + --version 1.0 --package-url "https://sftestapp.blob.core.windows.net/sftestapp/testApp_1.0.sfpkg" +""" + +helps['sf managed-application-type version show'] = """ +type: command +short-summary: Show the properties of a managed application type version on an Azure Service Fabric managed cluster. +examples: + - name: Show the properties of a managed application type version on an Azure Service Fabric managed cluster. + text: > + az sf managed-application-type version show -g testRG -c testCluster --application-type-name CalcServiceApp --version 1.0 +""" + +helps['sf managed-application-type version list'] = """ +type: command +short-summary: List versions of a given managed application type. +examples: + - name: List versions for a particular managed application type. + text: > + az sf managed-application-type version list -g testRG -c testCluster --application-type-name CalcServiceApp +""" + +helps['sf managed-application-type version update'] = """ +type: command +short-summary: Update a managed application type version. +long-summary: This allows for updating of application type version tags and the package url. +examples: + - name: Update managed application type version. + text: > + az sf managed-application-type version update -g testRG -c testCluster --application-type-name CalcServiceApp --version 1.0 --tags new=tags +""" + +helps['sf managed-application-type version delete'] = """ +type: command +short-summary: Delete a managed application type version. +examples: + - name: Delete managed application type version. + text: > + az sf managed-application-type version delete -g testRG -c testCluster --application-type-name CalcServiceApp --version 1.0 +""" + +helps['sf managed-service'] = """ +type: group +short-summary: Manage services running on an Azure Service Fabric managed cluster. Only support ARM deployed services. +""" + +helps['sf managed-service create'] = """ +type: command +short-summary: Create a new managed service on an Azure Service Fabric managed cluster. +examples: + - name: Create a new stateless managed service "testService1" with instance count -1 (on all the nodes). + text: > + az sf managed-service create -g testRG -c testCluster --application-name testApp --state stateless --service-name testService \\ + --service-type testStateless --instance-count -1 --partition-scheme singleton + - name: Create a new stateful service "testService2" with a target of 5 nodes. + text: > + az sf managed-service create -g testRG -c testCluster --application-name testApp --state stateful --service-name testService2 --has-persisted-state \\ + --service-type testStatefulType --min-replica-set-size 3 --target-replica-set-size 5 --partition-scheme uniformint64range --partition-count 1 --low-key 0 --high-key 25 +""" + +helps['sf managed-service show'] = """ +type: command +short-summary: Get a service. +examples: + - name: Show the properties of a managed service on an Azure Service Fabric managed cluster. + text: > + az sf managed-service show -g testRG -c testCluster --application-name testApp --service-name testService +""" + +helps['sf managed-service list'] = """ +type: command +short-summary: List managed services of a given managed application. +examples: + - name: List managed services. + text: > + az sf managed-service list -g testRG -c testCluster --application-name testApp +""" + +helps['sf managed-service update'] = """ +type: command +short-summary: Update a managed service. +examples: + - name: Update managed stateless service. + text: > + az sf managed-service update -g testRG -c testCluster --application-name testApp --service-name testService --min-instance-count 2 \\ + --min-instance-percentage 20 --instance-close-delay-duration '00:11:00' + - name: Update managed stateful service. + text: > + az sf managed-service update -g testRG -c testCluster --application-name testApp --service-name testService2 --service-placement-time-limit '00:11:00' \\ + --stand-by-replica-keep-duration '00:11:00' --replica-restart-wait-duration '00:11:00' --quorum-loss-wait-duration '00:11:00' +""" + +helps['sf managed-service delete'] = """ +type: command +short-summary: Delete a managed service. +examples: + - name: Delete managed service. + text: > + az sf managed-service delete -g testRG -c testCluster --application-name testApp --service-name testService +""" + +helps['sf managed-service correlation-scheme'] = """ +type: group +short-summary: Manage correlation schemes of services running on an Azure Service Fabric managed cluster. Only support ARM deployed services. +""" + +helps['sf managed-service correlation-scheme create'] = """ +type: command +short-summary: Create a new managed service correlation scheme on an Azure Service Fabric managed cluster. +long-summary: Create a new managed service correlation scheme on an Azure Service Fabric managed cluster. NOTE You can only have one service correlation per service. +examples: + - name: Create a new managed service correlation scheme. + text: > + az sf managed-service correlation-scheme create -g testRG -c testCluster --application-name testApp --service-name testService \\ + --correlated-service-name "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.ServiceFabric/managedclusters/testCluster/applications/testApp/services/testService2" \\ + --scheme AlignedAffinity +""" + +helps['sf managed-service correlation-scheme update'] = """ +type: command +short-summary: Update a managed service correlation scheme. +examples: + - name: Update managed service correlation scheme. + text: > + az sf managed-service correlation-scheme update -g testRG -c testCluster --application-name testApp --service-name testService \\ + --correlated-service-name "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.ServiceFabric/managedclusters/testCluster/applications/testApp/services/testService2" \\ + --scheme NonAlignedAffinity +""" + +helps['sf managed-service correlation-scheme delete'] = """ +type: command +short-summary: Delete a managed service correlation scheme. +examples: + - name: Delete managed service correlation scheme. + text: > + az sf managed-service correlation-scheme delete -g testRG -c testCluster --application-name testApp --service-name testService \\ + --correlated-service-name "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testRg/providers/Microsoft.ServiceFabric/managedclusters/testCluster/applications/testApp/services/testService2" +""" + +helps['sf managed-service load-metrics'] = """ +type: group +short-summary: Manage service load metrics running on an Azure Service Fabric managed cluster. Only support ARM deployed services. +""" + +helps['sf managed-service load-metrics create'] = """ +type: command +short-summary: Create a new managed service load metric on an Azure Service Fabric managed cluster. +examples: + - name: Create a new stateless managed service load metric. + text: > + az sf managed-service load-metrics create -g testRG -c testCluster --application-name testApp --service-name testService \\ + --metric-name Metric1 --weight Low --default-load 3 + - name: Create a new stateful service load metric. + text: > + az sf managed-service load-metrics create -g testRG -c testCluster --application-name testApp --service-name testService2 \\ + --metric-name Metric2 --weight High --primary-default-load 3 --secondary-default-load 2 +""" + +helps['sf managed-service load-metrics update'] = """ +type: command +short-summary: Update a managed service. +examples: + - name: Update a new stateless managed service load metric. + text: > + az sf managed-service load-metrics update -g testRG -c testCluster --application-name testApp --service-name testService \\ + --metric-name Metric1 --weight Medium --default-load 5 + - name: Update a new stateful service load metric. + text: > + az sf managed-service load-metrics update -g testRG -c testCluster --application-name testApp --service-name testService2 \\ + --metric-name Metric2 --weight Low --primary-default-load 2 --secondary-default-load 1 +""" + +helps['sf managed-service load-metrics delete'] = """ +type: command +short-summary: Delete a managed service. +examples: + - name: Delete managed service. + text: > + az sf managed-service load-metrics delete -g testRG -c testCluster --application-name testApp --service-name testService2 \\ + --metric-name Metric1 +""" diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/_params.py b/src/azure-cli/azure/cli/command_modules/servicefabric/_params.py index 0497b4e43ce..8ea02eeca07 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_params.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_params.py @@ -5,21 +5,25 @@ # pylint: disable=line-too-long import argparse -from azure.cli.core.util import CLIError -from azure.cli.core.commands.validators import get_default_location_from_resource_group -from azure.cli.core.commands.parameters import ( - resource_group_name_type, - get_enum_type, - get_three_state_flag, - tags_type -) -from azure.cli.core.util import get_json_object + from azure.cli.command_modules.servicefabric._validators import ( - validate_create_service, - validate_update_application, - validate_create_application, - validate_create_managed_cluster -) + validate_create_application, validate_create_managed_application, + validate_create_managed_cluster, validate_create_managed_service, + validate_create_service, validate_update_application, + validate_update_managed_application, validate_update_managed_service, + validate_create_managed_service_correlation, validate_create_managed_service_load_metric, + validate_update_managed_service_load_metric, validate_update_managed_service_correlation) +from azure.cli.core.commands.parameters import (get_enum_type, + get_three_state_flag, + resource_group_name_type, + tags_type) +from azure.cli.core.commands.validators import get_default_location_from_resource_group +from azure.cli.core.util import CLIError, get_json_object +from azure.mgmt.servicefabricmanagedclusters.models import (FailureAction, + MoveCost, + PartitionScheme, + RollingUpgradeMode, + ServiceKind) from knack.arguments import CLIArgumentType @@ -315,6 +319,191 @@ def load_arguments(self, _): # pylint: disable=too-many-statements c.argument('certificate_url', help='This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
\"data\":\"\",
\"dataType\":\"pfx\",
\"password\":\"\"
}/') c.argument('certificate_store', help='Specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.') + # managed-application-type + with self.argument_context('sf managed-application-type') as c: + c.argument('application_type_name', options_list=['--name', '--application-type-name'], help='Specify the application type name.') + c.argument('tags', arg_type=tags_type) + + # managed-application-type version + with self.argument_context('sf managed-application-type version') as c: + c.argument('version', arg_type=application_type_version) + c.argument('package_url', arg_type=package_url) + c.argument('tags', arg_type=tags_type) + + # managed-application + service_type_health_policy_map = CLIArgumentType( + options_list=['--service-type-health-policy-map', '--service-type-policy'], + action=AddServiceTypeHealthPolicyAction, + nargs='*', + help='Specify the map of the health policy to use for different service types as key/value pairs in the following format: \"ServiceTypeName\"=\"MaxPercentUnhealthyPartitionsPerService,MaxPercentUnhealthyReplicasPerPartition,MaxPercentUnhealthyServices\". ' + 'for example: --service-type-health-policy-map \"ServiceTypeName01\"=\"5,10,5\" \"ServiceTypeName02\"=\"5,5,5\"') + + with self.argument_context('sf managed-application') as c: + c.argument('application_name', options_list=['--name', '--application-name'], help='Specify the application name.') + c.argument('tags', arg_type=tags_type) + + with self.argument_context('sf managed-application update', validator=validate_update_managed_application) as c: + c.argument('application_type_version', arg_type=application_type_version) + c.argument('application_parameters', arg_type=application_parameters) + + with self.argument_context('sf managed-application update', arg_group='Upgrade description') as c: + c.argument('force_restart', arg_type=get_three_state_flag(), + help='Indicates that the service host restarts even if the upgrade is a configuration-only change.') + c.argument('recreate_application', arg_type=get_three_state_flag(), + help='Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed.') + c.argument('upgrade_replica_set_check_timeout', options_list=['--upgrade-replica-set-check-timeout', '--replica-check-timeout', '--rep-check-timeout'], + help='Specify the maximum time, in seconds, that Service Fabric waits for a service to reconfigure into a safe state, if not already in a safe state, before Service Fabric proceeds with the upgrade.') + c.argument('instance_close_delay_duration', options_list=['--instance-close-delay-duration', '--instance-close-duration', '--close-duration'], + help='Specify the duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade, only for those instances which have a non-zero delay duration configured in the service description.') + c.argument('failure_action', arg_type=get_enum_type(FailureAction), + help='Specify the action to take if the monitored upgrade fails. The acceptable values for this parameter are Rollback or Manual.') + c.argument('upgrade_mode', arg_type=get_enum_type(RollingUpgradeMode), + help='Specify the mode used to monitor health during a rolling upgrade. The values are Monitored, and UnmonitoredAuto.') + c.argument('health_check_retry_timeout', options_list=['--hc-retry-timeout', '--health-check-retry-timeout'], + help='Specify the duration, in seconds, after which Service Fabric retries the health check if the previous health check fails.') + c.argument('health_check_wait_duration', options_list=['--hc-wait-duration', '--health-check-wait-duration'], + help='Specify the duration, in seconds, that Service Fabric waits before it performs the initial health check after it finishes the upgrade on the upgrade domain.') + c.argument('health_check_stable_duration', options_list=['--hc-stable-duration', '--health-check-stable-duration'], + help='Specify the duration, in seconds, that Service Fabric waits in order to verify that the application is stable before moving to the next upgrade domain or completing the upgrade. This wait duration prevents undetected changes of health right after the health check is performed.') + c.argument('upgrade_domain_timeout', options_list=['--ud-timeout', '--upgrade-domain-timeout'], + help='Specify the maximum time, in seconds, that Service Fabric takes to upgrade a single upgrade domain. After this period, the upgrade fails.') + c.argument('upgrade_timeout', + help='Specify the maximum time, in seconds, that Service Fabric takes for the entire upgrade. After this period, the upgrade fails.') + c.argument('consider_warning_as_error', options_list=['--warning-as-error', '--consider-warning-as-error'], arg_type=get_three_state_flag(), + help='Indicates whether to treat a warning health event as an error event during health evaluation.') + c.argument('default_service_type_max_percent_unhealthy_partitions_per_service', options_list=['--max-percent-unhealthy-partitions', '--max-unhealthy-parts'], + help='Specify the maximum percent of unhelthy partitions per service allowed by the health policy for the default service type to use for the monitored upgrade. Allowed values are from 0 to 100.') + c.argument('default_service_type_max_percent_unhealthy_replicas_per_partition', options_list=['--max-percent-unhealthy-replicas', '--max-unhealthy-reps'], + help='Specify the maximum percent of unhelthy replicas per service allowed by the health policy for the default service type to use for the monitored upgrade. Allowed values are from 0 to 100.') + c.argument('default_service_type_max_percent_unhealthy_services', options_list=['--max-percent-unhealthy-services', '--max-unhealthy-servs'], + help='Specify the maximum percent of unhelthy services allowed by the health policy for the default service type to use for the monitored upgrade. Allowed values are from 0 to 100.') + c.argument('service_type_health_policy_map', arg_type=service_type_health_policy_map) + c.argument('max_percent_unhealthy_deployed_applications', options_list=['--max-percent-unhealthy-deployed-applications', '--max-percent-unhealthy-apps', '--max-unhealthy-apps'], + help='Specify the maximum percentage of the application instances deployed on the nodes in the cluster that have a health state of error before the application health state for the cluster is error. Allowed values are form 0 to 100.') + + with self.argument_context('sf managed-application create', validator=validate_create_managed_application) as c: + c.argument('application_type_name', options_list=['--type-name', '--application-type-name'], help='Specify the application type name.') + c.argument('application_type_version', arg_type=application_type_version) + c.argument('package_url', arg_type=package_url) + c.argument('application_parameters', arg_type=application_parameters) + + # managed-service + partition_names = CLIArgumentType( + nards="+", + help='Specify the array for the names of the partitions. This is only used with Named partition scheme.') + + with self.argument_context('sf managed-service') as c: + c.argument('service_name', options_list=['--name', '--service-name'], + help='Specify the name of the service.') + c.argument('application_name', options_list=['--application', '--application-name'], + help='Specify the name of the service.') + c.argument('tags', arg_type=tags_type) + + with self.argument_context('sf managed-service create', validator=validate_create_managed_service) as c: + c.argument('service_type', options_list=['--type', '--service-type'], + help='Specify the service type name of the application, it should exist in the application manifest.') + c.argument('default_move_cost', arg_type=get_enum_type(MoveCost), + help='Specify the default cost for a move. Higher costs make it less likely that the Cluster Resource Manager will move the replica when trying to balance the cluster.') + c.argument('placement_constraints', + help='Specify the placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: \"NodeColor == blue)\".') + c.argument('service_dns_name', options_list=['--service-dns-name', '--dns-name'], + help='Specify the DNS name of the service. It requires the DNS system service to be enabled in Service Fabric cluster.') + c.argument('service_package_activation_mode', options_list=['--service-package-activation-mode', '--package-activation-mode', '--activation-mode'], + help='Specify the activation mode of the service package.') + c.argument('state', arg_type=get_enum_type(ServiceKind), help='Specify if the service is stateless or stateful.') + # Stateful arguments + c.argument('min_replica_set_size', options_list=['--min-replica-set-size', '--min-replica'], help='Specify the min replica set size for the stateful service.') + c.argument('target_replica_set_size', options_list=['--target-replica-set-size', '--target-replica'], help='Specify the target replica set size for the stateful service.') + c.argument('has_persisted_state', arg_type=get_three_state_flag(), + help='Determines whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false.') + c.argument('drop_source_replica_on_move', options_list=['--drop-source-replica-on-move', '--drop-source'], + help='Determines whether to drop source Secondary replica even if the target replica has not finished build. If desired behavior is to drop it as soon as possible the value of this property is true, if not it is false.') + c.argument('service_placement_time_limit', options_list=['--service-placement-time-limit', '--plcmt-time-limit'], + help='Specify the duration for which replicas can stay InBuild before reporting that build is stuck, represented in ISO 8601 format "hh:mm:ss".') + c.argument('stand_by_replica_keep_duration', options_list=['--stand-by-replica-keep-duration', '--stand-by-keep-duration', '--keep-duration'], + help='Specify the definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format "hh:mm:ss".') + c.argument('quorum_loss_wait_duration', options_list=['--quorum-loss-wait-duration', '--quorum-loss-wait'], + help='Specify the maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format "hh:mm:ss".') + c.argument('replica_restart_wait_duration', options_list=['--replica-restart-wait-duration', '--replica-restart-wait'], + help='Specify the duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format "hh:mm:ss".') + # Stateless arguments + c.argument('instance_count', help='Specify the instance count for the stateless service. If -1 is used, it means it will run on all the nodes.') + c.argument('min_instance_count', help='Specify the minimum number of instances that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstanceCount computation -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.') + c.argument('min_instance_percentage', options_list=['--min-instance-percentage', '--min-inst-pct'], + help='Specify the minimum percentage of InstanceCount that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstancePercentage computation, -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service. Allowed values are from 0 to 100.') + c.argument('instance_close_delay_duration', options_list=['--instance-close-delay-duration', '--instance-close-duration', '--close-duration'], + help='Specify the duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade and disabling node. The endpoint exposed on this instance is removed prior to starting the delay, which prevents new connections to this instance.') + # Partition arguments + c.argument('partition_scheme', arg_type=get_enum_type(PartitionScheme), + help='Specify what partition scheme to use. ' + 'Singleton partitions are typically used when the service does not require any additional routing. ' + 'UniformInt64 means that each partition owns a range of int64 keys. ' + 'Named is usually for services with data that can be bucketed, within a bounded set. Some common examples of data fields used as named partition keys would be regions, postal codes, customer groups, or other business boundaries.') + c.argument('partition_count', + help='Specify the number of partitions. This is only used with UniformInt64 partition scheme.') + c.argument('low_key', + help='Specify the lower bound of the partition key range that should be split between the partition ‘Count’ This is only used with UniformInt64 partition scheme.') + c.argument('high_key', + help='Specify the upper bound of the partition key range that should be split between the partition ‘Count’ This is only used with UniformInt64 partition scheme.') + c.argument('partition_names', arg_type=partition_names) + + with self.argument_context('sf managed-service update', validator=validate_update_managed_service) as c: + c.argument('default_move_cost', arg_type=get_enum_type(MoveCost), + help='Specify the default cost for a move. Higher costs make it less likely that the Cluster Resource Manager will move the replica when trying to balance the cluster.') + c.argument('placement_constraints', + help='Specify the placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: \"NodeColor == blue)\".') + # Stateful arguments + c.argument('min_replica_set_size', options_list=['--min-replica-set-size', '--min-replica'], help='Specify the min replica set size for the stateful service.') + c.argument('target_replica_set_size', options_list=['--target-replica-set-size', '--target-replica'], help='Specify the target replica set size for the stateful service.') + c.argument('drop_source_replica_on_move', options_list=['--drop-source-replica-on-move', '--drop-source'], + help='Determines whether to drop source Secondary replica even if the target replica has not finished build. If desired behavior is to drop it as soon as possible the value of this property is true, if not it is false.') + c.argument('service_placement_time_limit', options_list=['--service-placement-time-limit', '--plcmt-time-limit'], + help='Specify the duration for which replicas can stay InBuild before reporting that build is stuck, represented in ISO 8601 format "hh:mm:ss".') + c.argument('stand_by_replica_keep_duration', options_list=['--stand-by-replica-keep-duration', '--stand-by-keep-duration', '--keep-duration'], + help='Specify the definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format "hh:mm:ss".') + c.argument('quorum_loss_wait_duration', options_list=['--quorum-loss-wait-duration', '--quorum-loss-wait'], + help='Specify the maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format "hh:mm:ss".') + c.argument('replica_restart_wait_duration', options_list=['--replica-restart-wait-duration', '--replica-restart-wait'], + help='Specify the duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format "hh:mm:ss".') + # Stateless arguments + c.argument('instance_count', help='Specify the instance count for the stateless service. If -1 is used, it means it will run on all the nodes.') + c.argument('min_instance_count', help='Specify the minimum number of instances that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstanceCount computation -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.') + c.argument('min_instance_percentage', options_list=['--min-instance-percentage', '--min-inst-pct'], + help='Specify the minimum percentage of InstanceCount that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstancePercentage computation, -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service. Allowed values are from 0 to 100.') + c.argument('instance_close_delay_duration', options_list=['--instance-close-delay-duration', '--instance-close-duration', '--close-duration'], + help='Specify the duration in seconds, to wait before a stateless instance is closed, to allow the active requests to drain gracefully. This would be effective when the instance is closing during the application/cluster upgrade and disabling node. The endpoint exposed on this instance is removed prior to starting the delay, which prevents new connections to this instance.') + + with self.argument_context('sf managed-service correlation-scheme create', validator=validate_create_managed_service_correlation) as c: + c.argument('correlated_service_name', options_list=['--correlated-service-name', '--correlated-name'], + help='Specify the Arm Resource ID of the service that the correlation relationship is established with.') + c.argument('scheme', help='Specify the ServiceCorrelationScheme which describes the relationship between this service and the service specified via correlated_service_name.') + + with self.argument_context('sf managed-service correlation-scheme update', validator=validate_update_managed_service_correlation) as c: + c.argument('correlated_service_name', options_list=['--correlated-service-name', '--correlated-name'], + help='Specify the Arm Resource ID of the service that the correlation relationship is established with.') + c.argument('scheme', help='Specify the ServiceCorrelationScheme which describes the relationship between this service and the service specified via correlated_service_name.') + + with self.argument_context('sf managed-service correlation-scheme delete') as c: + c.argument('correlated_service_name', options_list=['--correlated-service-name', '--correlated-name'], + help='Specify the Arm Resource ID of the service that the correlation relationship is established with.') + + with self.argument_context('sf managed-service load-metrics create', validator=validate_create_managed_service_load_metric) as c: + c.argument('metric_name', help='Specify the name of the metric.') + c.argument('weight', help='Specify the service load metric relative weight, compared to other metrics configured for this service, as a number.') + c.argument('primary_default_load', help='Specify the default amount of load, as a number, that this service creates for this metric when it is a Primary replica. Used only for Stateful services.') + c.argument('secondary_default_load', help='Specify the default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. Used only for Stateful services.') + c.argument('default_load', help='Specify the default amount of load, as a number, that this service creates for this metric. Used only for Stateless services.') + + with self.argument_context('sf managed-service load-metrics update', validator=validate_update_managed_service_load_metric) as c: + c.argument('metric_name', help='Specify the name of the metric.') + c.argument('weight', help='Specify the service load metric relative weight, compared to other metrics configured for this service, as a number.') + c.argument('primary_default_load', help='Specify the default amount of load, as a number, that this service creates for this metric when it is a Primary replica. Used only for Stateful services.') + c.argument('secondary_default_load', help='Specify the default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. Used only for Stateful services.') + c.argument('default_load', help='Specify the default amount of load, as a number, that this service creates for this metric. Used only for Stateless services.') + + with self.argument_context('sf managed-service load-metrics delete') as c: + c.argument('metric_name', help='Specify the name of the metric.') + def paramToDictionary(values): params = {} @@ -335,6 +524,17 @@ def __call__(self, parser, namespace, values, option_string=None): raise CLIError('usage error: {} KEY=VALUE [KEY=VALUE ...]'.format(option_string)) +# pylint: disable=protected-access +# pylint: disable=too-few-public-methods +class AddServiceTypeHealthPolicyAction(argparse._AppendAction): + + def __call__(self, parser, namespace, values, option_string=None): + try: + namespace.service_type_health_policy_map = paramToDictionary(values) + except ValueError: + raise CLIError('usage error: {} KEY=VALUE1,VALUE2,VALUE3 [KEY=VALUE1,VALUE2,VALUE3 ...]'.format(option_string)) + + class ManagedClusterClientCertAddAction(argparse._AppendAction): def __call__(self, parser, namespace, values, option_string=None): diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/_sf_utils.py b/src/azure-cli/azure/cli/command_modules/servicefabric/_sf_utils.py index fab6d9bbb1b..b2371bfc25d 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_sf_utils.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_sf_utils.py @@ -7,7 +7,8 @@ from azure.cli.core.profiles import ResourceType, get_sdk from azure.mgmt.servicefabric.models import (ErrorModelException) from knack.log import get_logger -from ._client_factory import (resource_client_factory) +from knack.util import CLIError +from ._client_factory import (resource_client_factory, servicefabric_managed_client_factory) logger = get_logger(__name__) @@ -45,3 +46,67 @@ def _log_error_exception(ex: ErrorModelException): logger.error("Exception: %s", response_content['exception']) else: logger.error("Exception response content: %s", ex.response.content) + + +def _get_managed_cluster_location(cli_ctx, resource_group_name, cluster_name): + client = servicefabric_managed_client_factory(cli_ctx).managed_clusters + cluster = client.get(resource_group_name, cluster_name) + if cluster is None: + raise CLIError( + "Parent Managed Cluster '{}' cannot be found.".format(cluster_name)) + return cluster.location + + +def _check_val_in_collection(parent, collection_name, obj_to_add, key_name): + if not getattr(parent, collection_name, None): + setattr(parent, collection_name, []) + collection = getattr(parent, collection_name, None) + + value = getattr(obj_to_add, key_name) + if value is None: + raise CLIError( + "Unable to resolve a value for key '{}' with which to match.".format(key_name)) + return value, collection, next((x for x in collection if getattr(x, key_name, None) == value), None) + + +def find_in_collection(parent, collection_name, key_name, value): + if not getattr(parent, collection_name, None): + setattr(parent, collection_name, []) + collection = getattr(parent, collection_name, None) + + return next((x for x in collection if getattr(x, key_name, None) == value), None) + + +def add_to_collection(parent, collection_name, obj_to_add, key_name, warn=True): + value, collection, match = _check_val_in_collection(parent, collection_name, obj_to_add, key_name) + if match: + if warn: + logger.warning("Item '%s' already exists. Exitting command.", value) + return + collection.append(obj_to_add) + + +def update_in_collection(parent, collection_name, obj_to_add, key_name): + value, collection, match = _check_val_in_collection(parent, collection_name, obj_to_add, key_name) + if match: + logger.info("Replacing item '%s' with new values.", value) + collection.remove(match) + collection.append(obj_to_add) + + +def delete_from_collection(parent, collection_name, key_name, value): + if not getattr(parent, collection_name, None): + setattr(parent, collection_name, []) + collection = getattr(parent, collection_name, None) + + match = next((x for x in collection if getattr(x, key_name, None) == value), None) + if match: + logger.info("Removing Item '%s'.", value) + collection.remove(match) + + +def get_property(items, name): + result = next((x for x in items if x.name.lower() == name.lower()), None) + if not result: + raise CLIError("Property '{}' does not exist".format(name)) + return result 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 03acd2dcda9..1c35fa017b3 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py @@ -4,10 +4,12 @@ # -------------------------------------------------------------------------------------------- from msrestazure.azure_exceptions import CloudError -from knack.util import CLIError from knack.log import get_logger +from knack.util import CLIError +from azure.cli.core.azclierror import ValidationError from azure.cli.command_modules.servicefabric._sf_utils import _get_resource_group_by_name -from ._client_factory import servicefabric_client_factory +from azure.mgmt.servicefabricmanagedclusters.models import (PartitionScheme, ServiceKind) +from ._client_factory import servicefabric_client_factory, servicefabric_managed_client_factory logger = get_logger(__name__) @@ -95,6 +97,7 @@ def validate_create_application(cmd, namespace): raise CLIError("maximum_nodes should be a non-negative integer.") +# Managed Clusters def validate_create_managed_cluster(cmd, namespace): rg = _get_resource_group_by_name(cmd.cli_ctx, namespace.resource_group_name) if rg is None and namespace.location is None: @@ -107,6 +110,202 @@ def validate_create_managed_cluster(cmd, namespace): raise CLIError("--client-cert-issuer-thumbprint should be used with --client-cert-common-name.") +def validate_create_managed_service(namespace): + if namespace.service_type is None: + raise CLIError("--service-type is required") + + if namespace.state.lower() == ServiceKind.STATELESS.lower(): + if namespace.target_replica_set_size or namespace.min_replica_set_size: + raise ValidationError("--target-replica-set-size and --min-replica-set-size should only be use with " + "--state stateful") + if not namespace.instance_count: + raise ValidationError("--instance-count is required") + namespace.instance_count = int(namespace.instance_count) + elif namespace.state.lower() == ServiceKind.STATEFUL.lower(): + if namespace.instance_count: + raise ValidationError("Unexpected parameter --instance-count should only be use with --state stateless") + if not namespace.target_replica_set_size or not namespace.min_replica_set_size: + raise ValidationError("--target-replica-set-size and --min-replica-set-size are required") + namespace.target_replica_set_size = int(namespace.target_replica_set_size) + namespace.min_replica_set_size = int(namespace.min_replica_set_size) + else: + raise ValidationError("Invalid --state '%s': service state is not valid." % namespace.state) + + if namespace.partition_scheme is None: + raise ValidationError("--partition-scheme is required") + + if namespace.partition_scheme.lower() == PartitionScheme.NAMED.lower(): + if namespace.partition_names is None: + raise ValidationError("--partition-names is required for partition scheme '%s'" + % namespace.partition_scheme) + elif namespace.partition_scheme.lower() == PartitionScheme.SINGLETON.lower(): + pass # No parameters needed for singleton + elif namespace.partition_scheme.lower() == PartitionScheme.UNIFORM_INT64_RANGE.lower(): + if namespace.partition_count is None or namespace.low_key is None or namespace.high_key is None: + raise ValidationError( + "--partition-count, --low-key and --high-key are required for partition scheme '%s'" + % namespace.partition_scheme) + namespace.partition_count = int(namespace.partition_count) + namespace.low_key = int(namespace.low_key) + namespace.high_key = int(namespace.high_key) + else: + raise ValidationError( + "Invalid --partition_scheme '%s': service partition_scheme is not valid." % namespace.partition_scheme) + + +def validate_update_managed_service(cmd, namespace): + client = servicefabric_managed_client_factory(cmd.cli_ctx) + service = _safe_get_resource(client.services.get, + (namespace.resource_group_name, namespace.cluster_name, + namespace.application_name, namespace.service_name)) + if service.properties.service_kind.lower() == ServiceKind.STATELESS.lower(): + if namespace.target_replica_set_size or namespace.min_replica_set_size: + raise ValidationError("--target-replica-set-size and --min-replica-set-size should only be use with " + "--state stateful") + if namespace.instance_count is not None: + namespace.instance_count = int(namespace.instance_count) + elif service.properties.service_kind.lower() == ServiceKind.STATEFUL.lower(): + if namespace.instance_count: + raise ValidationError("Unexpected parameter --instance-count should only be use with --state stateless") + if namespace.target_replica_set_size is not None: + namespace.target_replica_set_size = int(namespace.target_replica_set_size) + if namespace.min_replica_set_size is not None: + namespace.min_replica_set_size = int(namespace.min_replica_set_size) + else: + raise ValidationError("Invalid --state '%s': service state is not valid." % service.properties.service_kind) + + +def validate_create_managed_service_load_metric(cmd, namespace): + client = servicefabric_managed_client_factory(cmd.cli_ctx) + service = _safe_get_resource(client.services.get, + (namespace.resource_group_name, namespace.cluster_name, + namespace.application_name, namespace.service_name)) + + if service is None: + raise ValidationError("Service '{}' Not Found.".format(namespace.service_name)) + if service.properties.service_kind.lower() == ServiceKind.STATELESS.lower(): + if namespace.metric_name is None or namespace.weight is None or namespace.default_load is None: + raise ValidationError("--metric-name, --weight and --default-load are required") + if namespace.primary_default_load is not None or namespace.secondary_default_load is not None: + raise ValidationError( + "--primary-default-load and --secondary-default-load can only be used for stateful services." + ) + namespace.default_load = int(namespace.default_load) + elif service.properties.service_kind.lower() == ServiceKind.STATEFUL.lower(): + if namespace.metric_name is None or namespace.weight is None or \ + namespace.primary_default_load is None or namespace.secondary_default_load is None: + raise ValidationError("--metric-name, --weight, --primary-default-load and " + "--secondary-default-load are required") + if namespace.default_load is not None: + raise ValidationError("--default-load can only be used for stateless services.") + namespace.primary_default_load = int(namespace.primary_default_load) + namespace.secondary_default_load = int(namespace.secondary_default_load) + else: + raise ValidationError("Invalid --state '%s': service state is not valid." % service.properties.service_kind) + if any(namespace.metric_name == metric.name for metric in service.properties.service_load_metrics): + raise ValidationError("Duplicate metric names are not allowed: %s." % namespace.metric_name) + + +def validate_update_managed_service_load_metric(cmd, namespace): + client = servicefabric_managed_client_factory(cmd.cli_ctx) + service = _safe_get_resource(client.services.get, + (namespace.resource_group_name, namespace.cluster_name, + namespace.application_name, namespace.service_name)) + + if service is None: + raise CLIError("Service '{}' Not Found.".format(namespace.service_name)) + if service.properties.service_kind.lower() == ServiceKind.STATELESS.lower(): + if namespace.primary_default_load is not None or namespace.secondary_default_load is not None: + raise ValidationError( + "--primary-default-load and --secondary-default-load can only be used for stateful services." + ) + if namespace.default_load is not None: + namespace.default_load = int(namespace.default_load) + elif service.properties.service_kind.lower() == ServiceKind.STATEFUL.lower(): + if namespace.default_load is not None: + raise ValidationError("--default-load can only be used for stateless services.") + if namespace.primary_default_load is not None: + namespace.primary_default_load = int(namespace.primary_default_load) + if namespace.secondary_default_load is not None: + namespace.secondary_default_load = int(namespace.secondary_default_load) + else: + raise ValidationError("Invalid --state '%s': service state is not valid." % service.properties.service_kind) + + +def validate_create_managed_service_correlation(cmd, namespace): + client = servicefabric_managed_client_factory(cmd.cli_ctx) + service = _safe_get_resource(client.services.get, + (namespace.resource_group_name, namespace.cluster_name, + namespace.application_name, namespace.service_name)) + + if service is None: + raise ValidationError("Service '{}' Not Found.".format(namespace.service_name)) + + if service.properties.correlation_scheme: + raise ValidationError("There can only be one service correlation per service.") + + +def validate_update_managed_service_correlation(cmd, namespace): + client = servicefabric_managed_client_factory(cmd.cli_ctx) + service = _safe_get_resource(client.services.get, + (namespace.resource_group_name, namespace.cluster_name, + namespace.application_name, namespace.service_name)) + + if service is None: + raise ValidationError("Service '{}' Not Found.".format(namespace.service_name)) + + +def validate_update_managed_application(cmd, 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)) + if app is None: + raise CLIError("Application '{}' Not Found.".format(namespace.application_name)) + if namespace.application_type_version is not None: + if app.version.endswith(namespace.application_type_version): + raise ValidationError("The application '{}' is alrady running with type version '{}'." + .format(app.name, app.version)) + app_type_name = app.version.split("/")[-3] + type_version = _safe_get_resource(client.application_type_versions.get, + (namespace.resource_group_name, + namespace.cluster_name, + app_type_name, + namespace.application_type_version)) + if type_version is None: + raise ValidationError("Application type version {}:{} not found. " + "Create the type version before running this command." + .format(app.type_name, namespace.application_type_version)) + + if namespace.upgrade_replica_set_check_timeout: + namespace.upgrade_replica_set_check_timeout = int(namespace.upgrade_replica_set_check_timeout) + if namespace.health_check_stable_duration: + namespace.health_check_stable_duration = int(namespace.health_check_stable_duration) + if namespace.health_check_retry_timeout: + namespace.health_check_retry_timeout = int(namespace.health_check_retry_timeout) + if namespace.health_check_wait_duration: + namespace.health_check_wait_duration = int(namespace.health_check_wait_duration) + if namespace.upgrade_timeout: + namespace.upgrade_timeout = int(namespace.upgrade_timeout) + if namespace.upgrade_domain_timeout: + namespace.upgrade_domain_timeout = int(namespace.upgrade_domain_timeout) + + +def validate_create_managed_application(cmd, 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, + (namespace.resource_group_name, + namespace.cluster_name, + namespace.application_type_name, + namespace.application_type_version)) + if type_version is None: + raise ValidationError("Application type version {}:{} not found. " + "Create the type version before running this " + "command or use --package-url to create it." + .format(namespace.application_type_name, namespace.application_type_version)) + + +# Helpers def _safe_get_resource(getResourceAction, params): try: return getResourceAction(*params) diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/commands.py b/src/azure-cli/azure/cli/command_modules/servicefabric/commands.py index ce3ef7ed364..ad9fcf8283a 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/commands.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/commands.py @@ -12,7 +12,12 @@ servicefabric_application_client_factory, servicefabric_service_client_factory, servicefabric_managed_clusters_client_factory, - servicefabric_node_types_client_factory) + servicefabric_node_types_client_factory, + servicefabric_managed_client_factory_all, + servicefabric_managed_application_type_client_factory, + servicefabric_managed_application_type_version_client_factory, + servicefabric_managed_application_client_factory, + servicefabric_managed_service_client_factory) # pylint: disable=too-many-statements @@ -126,6 +131,31 @@ def load_command_table(self, _): client_factory=servicefabric_node_types_client_factory ) + managed_application_type_mgmt = CliCommandType( + operations_tmpl='azure.mgmt.servicefabricmanagedclusters.operations#ApplicationTypesOperations.{}', + client_factory=servicefabric_managed_application_type_client_factory + ) + + managed_application_type_version_mgmt = CliCommandType( + operations_tmpl='azure.mgmt.servicefabricmanagedclusters.operations#ApplicationTypeVersionsOperations.{}', + client_factory=servicefabric_managed_application_type_version_client_factory + ) + + managed_application_mgmt = CliCommandType( + operations_tmpl='azure.mgmt.servicefabricmanagedclusters.operations#ApplicationsOperations.{}', + client_factory=servicefabric_managed_application_client_factory + ) + + managed_service_mgmt = CliCommandType( + operations_tmpl='azure.mgmt.servicefabricmanagedclusters.operations#ServicesOperations.{}', + client_factory=servicefabric_managed_service_client_factory + ) + + managed_application_custom_type = CliCommandType( + operations_tmpl='azure.cli.command_modules.servicefabric.operations.managed_applications#{}', + client_factory=servicefabric_managed_client_factory_all + ) + with self.command_group('sf managed-cluster', managed_cluster_mgmt, is_preview=True, custom_command_type=managed_cluster_custom_type) as g: g.custom_command('list', 'list_clusters') @@ -161,3 +191,47 @@ def load_command_table(self, _): with self.command_group('sf managed-node-type vm-secret', node_type_mgmt, custom_command_type=managed_node_type_custom_type) as g: g.custom_command('add', 'add_vm_secret') + + with self.command_group('sf managed-application-type', managed_application_type_mgmt, + custom_command_type=managed_application_custom_type) as g: + g.command('list', 'list') + g.command('delete', 'begin_delete') + g.show_command('show', 'get') + g.custom_command('create', 'create_app_type') + g.custom_command('update', 'update_app_type') + + with self.command_group('sf managed-application-type version', managed_application_type_version_mgmt, + custom_command_type=managed_application_custom_type) as g: + g.command('list', 'list_by_application_types') + g.command('delete', 'begin_delete') + g.show_command('show', 'get') + g.custom_command('create', 'create_app_type_version') + g.custom_command('update', 'update_app_type_version') + + with self.command_group('sf managed-application', managed_application_mgmt, + custom_command_type=managed_application_custom_type) as g: + g.command('list', 'list') + g.command('delete', 'begin_delete') + g.show_command('show', 'get') + g.custom_command('create', 'create_app') + g.custom_command('update', 'update_app') + + with self.command_group('sf managed-service', managed_service_mgmt, + custom_command_type=managed_application_custom_type) as g: + g.command('list', 'list_by_applications') + g.command('delete', 'begin_delete') + g.show_command('show', 'get') + g.custom_command('create', 'create_service') + g.custom_command('update', 'update_service') + + with self.command_group('sf managed-service correlation-scheme', managed_service_mgmt, + custom_command_type=managed_application_custom_type) as g: + g.custom_command('create', 'create_service_correlation') + g.custom_command('update', 'update_service_correlation') + g.custom_command('delete', 'delete_service_correlation') + + with self.command_group('sf managed-service load-metrics', managed_service_mgmt, + custom_command_type=managed_application_custom_type) as g: + g.custom_command('create', 'create_service_load_metric') + g.custom_command('update', 'update_service_load_metric') + g.custom_command('delete', 'delete_service_load_metric') diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_applications.py b/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_applications.py new file mode 100644 index 00000000000..dc701d0a7cb --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_applications.py @@ -0,0 +1,721 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long,too-many-lines,too-many-branches,too-many-locals + +import time + +from azure.core.exceptions import HttpResponseError +from azure.cli.core.azclierror import InvalidArgumentValueError +from azure.cli.core.commands import LongRunningOperation +from azure.mgmt.servicefabricmanagedclusters.models import (ApplicationTypeResource, + ApplicationTypeVersionResource, + ApplicationResource, + ApplicationUpgradePolicy, + ApplicationHealthPolicy, + NamedPartitionScheme, + PartitionScheme, + RollingUpgradeMonitoringPolicy, + ServiceCorrelation, + ServiceLoadMetric, + ServiceResource, + StatefulServiceProperties, + StatelessServiceProperties, + ServiceTypeHealthPolicy, + ServiceKind, + SingletonPartitionScheme, + UniformInt64RangePartitionScheme) +from azure.cli.command_modules.servicefabric._sf_utils import (add_to_collection, + _get_managed_cluster_location, + delete_from_collection, + find_in_collection, + update_in_collection) +from knack.log import get_logger + +logger = get_logger(__name__) + +# Constants +APP_VERSION_ARM_RESOURCE_ID_FORMAT = ("/subscriptions/{subscription}/resourceGroups/{rg}/providers/" + "Microsoft.ServiceFabric/managedclusters/{cluster}/" + "applicationTypes/{appType}/versions/{version}") +CONSIDER_WARNING_AS_ERROR_DEFAULT = False +MAX_PERCENT_UNHEALTHY_DEPLOYED_APPLICATIONS_DEFAULT = 0 +FAILURE_ACTION_DEFAULT = "Manual" +HEALTH_CHECK_STABLE_DURATION_DEFAULT = time.strftime('%H:%M:%S', time.gmtime(120)) +HEALTH_CHECK_RETRY_TIMEOUT_DEFAULT = time.strftime('%H:%M:%S', time.gmtime(600)) +HEALTH_CHECK_WAIT_DURATION_DEFAULT = time.strftime('%H:%M:%S', time.gmtime(0)) +_twelve_hours = 43200 +UPGRADE_TIMEOUT_DEFAULT = time.strftime('%H:%M:%S', time.gmtime(_twelve_hours)) +UPGRADE_DOMAIN_TIMEOUT = time.strftime('%H:%M:%S', time.gmtime(_twelve_hours)) +SERVICE_TYPE_UNHEALTHY_SERVICES_MAX_PERCENT_DEFAULT = 0 +SERVICE_TYPE_MAX_PERCENT_UNHEALTHY_REPLICAS_PER_PARTITION_DEFAULT = 0 +SERVICE_TYPE_MAX_PERCENT_UNHEALTHY_PARTITIONS_PER_SERVICE_DEFAULT = 0 + + +def create_app(cmd, + client, + resource_group_name, + cluster_name, + application_type_name, + application_type_version, + application_name, + package_url=None, + application_parameters=None, + tags=None): + location = _get_managed_cluster_location(cmd.cli_ctx, resource_group_name, cluster_name) + if package_url is not None: + create_app_type_version(cmd, client, resource_group_name, cluster_name, application_type_name, application_type_version, package_url) + + try: + apps = client.applications.list(resource_group_name, cluster_name) + for app in apps: + if app.name.lower() == application_name.lower(): + logger.info("Application '%s' already exists", application_name) + return app + + new_app_type_version = _format_app_version(cmd.cli_ctx, resource_group_name, cluster_name, application_type_name, application_type_version) + appResource = ApplicationResource(version=new_app_type_version, + parameters=application_parameters, + location=location, + tags=tags) + appResource.name = application_name + poller = client.applications.begin_create_or_update(resource_group_name, cluster_name, application_name, appResource) + return LongRunningOperation(cmd.cli_ctx)(poller) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def update_app(cmd, + client, + resource_group_name, + cluster_name, + application_name, + application_type_version=None, + application_parameters=None, + force_restart=False, + recreate_application=False, + upgrade_replica_set_check_timeout=None, + instance_close_delay_duration=None, + failure_action=None, + upgrade_mode=None, + health_check_retry_timeout=None, + health_check_wait_duration=None, + health_check_stable_duration=None, + upgrade_domain_timeout=None, + upgrade_timeout=None, + consider_warning_as_error=False, + default_service_type_max_percent_unhealthy_partitions_per_service=None, + default_service_type_max_percent_unhealthy_replicas_per_partition=None, + default_service_type_max_percent_unhealthy_services=None, + max_percent_unhealthy_deployed_applications=None, + service_type_health_policy_map=None, + tags=None): + try: + currentApp = client.applications.get(resource_group_name, cluster_name, application_name) + appResource = currentApp + # TODO: change to patch once is supported in the rp + # appResourceUpdate: ApplicationResourceUpdate = ApplicationResourceUpdate() + + if application_type_version: + appResource.version = _replace_app_version(appResource.version, application_type_version) + if application_parameters: + appResource.parameters.update(application_parameters) + if tags: + appResource.tags = tags + + appResource.upgrade_policy = _set_upgrade_policy(currentApp.upgrade_policy, + force_restart, + recreate_application, + upgrade_replica_set_check_timeout, + instance_close_delay_duration, + failure_action, + upgrade_mode, + health_check_retry_timeout, + health_check_wait_duration, + health_check_stable_duration, + upgrade_domain_timeout, + upgrade_timeout, + consider_warning_as_error, + default_service_type_max_percent_unhealthy_partitions_per_service, + default_service_type_max_percent_unhealthy_replicas_per_partition, + default_service_type_max_percent_unhealthy_services, + max_percent_unhealthy_deployed_applications, + service_type_health_policy_map) + + # TODO: change to patch once the fix is supported in the rp + # client.applications.update(resource_group_name, cluster_name, application_name, appResourceUpdate) + poller = client.applications.begin_create_or_update(resource_group_name, cluster_name, application_name, appResource) + return LongRunningOperation(cmd.cli_ctx)(poller) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def create_app_type(cmd, client, resource_group_name, cluster_name, application_type_name, tags=None): + try: + location = _get_managed_cluster_location(cmd.cli_ctx, resource_group_name, cluster_name) + appTypes = client.application_types.list(resource_group_name, cluster_name) + for appType in appTypes: + if appType.name.lower() == application_type_name.lower(): + logger.info("Application type '%s' already exists", application_type_name) + return appType + + appTypeResource = ApplicationTypeResource(location=location, tags=tags) + logger.info("Creating application type '%s'", application_type_name) + return client.application_types.create_or_update( + resource_group_name, + cluster_name, + application_type_name, + appTypeResource) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def update_app_type(client, resource_group_name, cluster_name, application_type_name, tags=None): + try: + currentAppType = client.application_types.get(resource_group_name, cluster_name, application_type_name) + + if tags: + currentAppType.tags = tags + logger.info("Updating application type '%s'", application_type_name) + return client.application_types.create_or_update( + resource_group_name, + cluster_name, + application_type_name, + currentAppType) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def create_app_type_version(cmd, + client, + resource_group_name, + cluster_name, + application_type_name, + version, + package_url, + tags=None): + location = _get_managed_cluster_location(cmd.cli_ctx, resource_group_name, cluster_name) + create_app_type(cmd, client, resource_group_name, cluster_name, application_type_name) + try: + appTypeVerions = client.application_type_versions.list_by_application_types(resource_group_name, cluster_name, application_type_name) + for appTypeVerion in appTypeVerions: + if appTypeVerion.name.lower() == version.lower(): + logger.error("Application type version '%s' already exists", version) + return appTypeVerion + + appTypeVersionResource = ApplicationTypeVersionResource(app_package_url=package_url, location=location, tags=tags) + logger.info("Creating application type version %s:%s", application_type_name, version) + poller = client.application_type_versions.begin_create_or_update(resource_group_name, + cluster_name, + application_type_name, + version, + appTypeVersionResource) + return LongRunningOperation(cmd.cli_ctx)(poller) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def update_app_type_version(client, + resource_group_name, + cluster_name, + application_type_name, + version, + package_url=None, + tags=None): + try: + currentAppTypeVersion = client.application_type_versions.get( + resource_group_name, + cluster_name, + application_type_name, + version) + + if package_url is not None: + currentAppTypeVersion.app_package_url = package_url + + if tags is not None: + currentAppTypeVersion.tags = tags + + logger.info("Updating application type version %s:%s", application_type_name, version) + return client.application_type_versions.begin_create_or_update(resource_group_name, + cluster_name, + application_type_name, + version, + currentAppTypeVersion).result() + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def create_service(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + service_type, + state, + default_move_cost=None, + placement_constraints=None, + service_dns_name=None, + service_package_activation_mode=None, + target_replica_set_size=None, + min_replica_set_size=None, + has_persisted_state=None, + drop_source_replica_on_move=None, + service_placement_time_limit=None, + stand_by_replica_keep_duration=None, + quorum_loss_wait_duration=None, + replica_restart_wait_duration=None, + instance_count=None, + min_instance_count=None, + min_instance_percentage=None, + instance_close_delay_duration=None, + partition_scheme='singleton', + partition_count=None, + low_key=None, + high_key=None, + partition_names=None, + tags=None): + try: + location = _get_managed_cluster_location(cmd.cli_ctx, resource_group_name, cluster_name) + services = client.services.list_by_applications(resource_group_name, cluster_name, application_name) + for service in services: + if service.name.lower() == service_name.lower(): + logger.error("Service '%s' already exists", service_name) + return service + + serviceResource = ServiceResource(location=location, tags=tags) + serviceResource.name = service_name + + if state.lower() == ServiceKind.STATELESS.lower(): + properties = StatelessServiceProperties( + service_type_name=service_type, + instance_count=instance_count, + partition_description=_set_partition_description(partition_scheme, partition_names, partition_count, low_key, high_key) + ) + serviceResource.properties = _set_stateless_service_properties(properties, + min_instance_count, + min_instance_percentage, + instance_close_delay_duration) + + elif state.lower() == ServiceKind.STATEFUL.lower(): + properties = StatefulServiceProperties( + service_type_name=service_type, + instance_count=instance_count, + partition_description=_set_partition_description(partition_scheme, partition_names, partition_count, low_key, high_key), + min_replica_set_size=min_replica_set_size, + target_replica_set_size=target_replica_set_size + ) + serviceResource.properties = _set_stateful_service_properties(properties, + has_persisted_state, + drop_source_replica_on_move, + service_placement_time_limit, + stand_by_replica_keep_duration, + quorum_loss_wait_duration, + replica_restart_wait_duration) + else: + raise InvalidArgumentValueError("Invalid --state '%s': service state is not valid." % state) + + serviceResource.properties.service_load_metrics = [] + serviceResource.properties.correlation_scheme = [] + + if default_move_cost is not None: + serviceResource.properties.default_move_cost = default_move_cost + if placement_constraints is not None: + serviceResource.properties.placement_constraints = placement_constraints + if service_dns_name is not None: + serviceResource.properties.service_dns_name = service_dns_name + if service_package_activation_mode is not None: + serviceResource.properties.service_package_activation_mode = service_package_activation_mode + + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, serviceResource) + return LongRunningOperation(cmd.cli_ctx)(poller) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def update_service(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + default_move_cost=None, + placement_constraints=None, + target_replica_set_size=None, + min_replica_set_size=None, + drop_source_replica_on_move=None, + service_placement_time_limit=None, + stand_by_replica_keep_duration=None, + quorum_loss_wait_duration=None, + replica_restart_wait_duration=None, + instance_count=None, + min_instance_count=None, + min_instance_percentage=None, + instance_close_delay_duration=None, + tags=None): + try: + currentService = client.services.get(resource_group_name, cluster_name, application_name, service_name) + + state = currentService.properties.service_kind + logger.info("Updating service '%s'", service_name) + + if tags: + currentService.tags = tags + + if state.lower() == ServiceKind.STATELESS.lower(): + if instance_count is not None: + currentService.properties.instance_count = instance_count + currentService.properties = _set_stateless_service_properties(currentService.properties, + min_instance_count, + min_instance_percentage, + instance_close_delay_duration) + elif state.lower() == ServiceKind.STATEFUL.lower(): + if min_replica_set_size is not None: + currentService.properties.min_replica_set_size = min_replica_set_size + if target_replica_set_size is not None: + currentService.properties.target_replica_set_size = target_replica_set_size + currentService.properties = _set_stateful_service_properties(currentService.properties, + None, + drop_source_replica_on_move, + service_placement_time_limit, + stand_by_replica_keep_duration, + quorum_loss_wait_duration, + replica_restart_wait_duration) + else: + raise InvalidArgumentValueError("Invalid --state '%s': service state is not valid." % state) + + if default_move_cost is not None: + currentService.properties.default_move_cost = default_move_cost + if placement_constraints is not None: + currentService.properties.placement_constraints = placement_constraints + + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, currentService) + return LongRunningOperation(cmd.cli_ctx)(poller) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise + + +def create_service_load_metric(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + metric_name, + weight=None, + primary_default_load=None, + secondary_default_load=None, + default_load=None): + + service = client.services.get(resource_group_name, cluster_name, application_name, service_name) + new_metric = ServiceLoadMetric( + name=metric_name, + weight=weight, + primary_default_load=primary_default_load, + secondary_default_load=secondary_default_load, + default_load=default_load + ) + # add the new child to the parent collection + add_to_collection(service.properties, 'service_load_metrics', new_metric, 'name') + # update the parent object + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, service) + return LongRunningOperation(cmd.cli_ctx)(poller) + + +def update_service_load_metric(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + metric_name, + weight=None, + primary_default_load=None, + secondary_default_load=None, + default_load=None): + + service = client.services.get(resource_group_name, cluster_name, application_name, service_name) + existing_metric = find_in_collection(service.properties, 'service_load_metrics', 'name', metric_name) + if existing_metric is None: + logger.error('Metric %s does not exist.', metric_name) + return None + + updated_metric = ServiceLoadMetric( + name=metric_name, + weight=weight if weight is not None else existing_metric.weight, + primary_default_load=primary_default_load if primary_default_load is not None else existing_metric.primary_default_load, + secondary_default_load=secondary_default_load if secondary_default_load is not None else existing_metric.secondary_default_load, + default_load=default_load if default_load is not None else existing_metric.default_load, + ) + # add the new child to the parent collection + update_in_collection(service.properties, 'service_load_metrics', updated_metric, 'name') + # update the parent object + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, service) + return LongRunningOperation(cmd.cli_ctx)(poller) + + +def delete_service_load_metric(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + metric_name): + + service = client.services.get(resource_group_name, cluster_name, application_name, service_name) + + # add the new child to the parent collection + delete_from_collection(service.properties, 'service_load_metrics', 'name', metric_name) + # update the parent object + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, service) + return LongRunningOperation(cmd.cli_ctx)(poller) + + +def create_service_correlation(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + scheme, + correlated_service_name): + + service = client.services.get(resource_group_name, cluster_name, application_name, service_name) + new_correlation = ServiceCorrelation( + service_name=correlated_service_name, + scheme=scheme + ) + # add the new child to the parent collection + add_to_collection(service.properties, 'correlation_scheme', new_correlation, 'service_name') + # update the parent object + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, service) + return LongRunningOperation(cmd.cli_ctx)(poller) + + +def update_service_correlation(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + scheme, + correlated_service_name): + + service = client.services.get(resource_group_name, cluster_name, application_name, service_name) + existing_correlation = find_in_collection(service.properties, 'correlation_scheme', 'service_name', correlated_service_name) + if existing_correlation is None: + logger.error('Correlation %s does not exist.', correlated_service_name) + return None + + updated_correlation = ServiceCorrelation( + service_name=correlated_service_name, + scheme=scheme + ) + # add the new child to the parent collection + update_in_collection(service.properties, 'correlation_scheme', updated_correlation, 'service_name') + # update the parent object + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, service) + return LongRunningOperation(cmd.cli_ctx)(poller) + + +def delete_service_correlation(cmd, + client, + resource_group_name, + cluster_name, + application_name, + service_name, + correlated_service_name): + + service = client.services.get(resource_group_name, cluster_name, application_name, service_name) + + # add the new child to the parent collection + delete_from_collection(service.properties, 'correlation_scheme', 'service_name', correlated_service_name) + # update the parent object + poller = client.services.begin_create_or_update(resource_group_name, cluster_name, application_name, service_name, service) + return LongRunningOperation(cmd.cli_ctx)(poller) + + +# Managed application helpers +def _format_app_version(cli_ctx, rg_name, cluster_name, app_type, new_app_version): + from azure.cli.core.commands.client_factory import get_subscription_id + subscription_id = get_subscription_id(cli_ctx) + return APP_VERSION_ARM_RESOURCE_ID_FORMAT.format( + subscription=subscription_id, + rg=rg_name, + cluster=cluster_name, + appType=app_type, + version=new_app_version + ) + + +def _replace_app_version(old_app_version, new_app_version): + split_version_id = old_app_version.rsplit(sep='/', maxsplit=1) + split_version_id[-1] = new_app_version + return "/".join(split_version_id) + + +def _set_service_type_health_policy(service_type_health_policy_map): + def _policy_string_to_object(value_string): + try: + max_percent_unhealthy_partitions_per_service, max_percent_unhealthy_replicas_per_partition, max_percent_unhealthy_services = map(int, value_string.split(",")) + except: + raise InvalidArgumentValueError("Invalid --service-type-health-policy-map '%s': service type health policy map is not valid." % service_type_health_policy_map) + return ServiceTypeHealthPolicy( + max_percent_unhealthy_partitions_per_service=max_percent_unhealthy_partitions_per_service, + max_percent_unhealthy_replicas_per_partition=max_percent_unhealthy_replicas_per_partition, + max_percent_unhealthy_services=max_percent_unhealthy_services + ) + return {k: _policy_string_to_object(v) for k, v in service_type_health_policy_map.items()} + + +def _set_upgrade_policy(current_upgrade_policy, + force_restart, + recreate_application, + upgrade_replica_set_check_timeout, + instance_close_delay_duration, + failure_action, + upgrade_mode, + health_check_retry_timeout, + health_check_wait_duration, + health_check_stable_duration, + upgrade_domain_timeout, + upgrade_timeout, + consider_warning_as_error, + default_service_type_max_percent_unhealthy_partitions_per_service, + default_service_type_max_percent_unhealthy_replicas_per_partition, + default_service_type_max_percent_unhealthy_services, + max_percent_unhealthy_deployed_applications, + service_type_health_policy_map): + if current_upgrade_policy is None: + current_upgrade_policy = ApplicationUpgradePolicy() + + if force_restart is not None: + current_upgrade_policy.force_restart = force_restart + if recreate_application is not None: + current_upgrade_policy.recreate_application = recreate_application + if upgrade_mode: + current_upgrade_policy.upgrade_mode = upgrade_mode + if upgrade_replica_set_check_timeout is not None: + current_upgrade_policy.upgrade_replica_set_check_timeout = upgrade_replica_set_check_timeout + if instance_close_delay_duration is not None: + current_upgrade_policy.instance_close_delay_duration = instance_close_delay_duration + + # RollingUpgradeMonitoringPolicy + if current_upgrade_policy.rolling_upgrade_monitoring_policy is None: + # initialize with defaults + current_upgrade_policy.rolling_upgrade_monitoring_policy = RollingUpgradeMonitoringPolicy(failure_action=FAILURE_ACTION_DEFAULT, + health_check_stable_duration=HEALTH_CHECK_STABLE_DURATION_DEFAULT, + health_check_retry_timeout=HEALTH_CHECK_RETRY_TIMEOUT_DEFAULT, + health_check_wait_duration=HEALTH_CHECK_WAIT_DURATION_DEFAULT, + upgrade_timeout=UPGRADE_TIMEOUT_DEFAULT, + upgrade_domain_timeout=UPGRADE_DOMAIN_TIMEOUT) + + if failure_action: + current_upgrade_policy.rolling_upgrade_monitoring_policy.failure_action = failure_action + if health_check_stable_duration is not None: + current_upgrade_policy.rolling_upgrade_monitoring_policy.health_check_stable_duration = time.strftime('%H:%M:%S', time.gmtime(health_check_stable_duration)) + if health_check_retry_timeout is not None: + current_upgrade_policy.rolling_upgrade_monitoring_policy.health_check_retry_timeout = time.strftime('%H:%M:%S', time.gmtime(health_check_retry_timeout)) + if health_check_wait_duration is not None: + current_upgrade_policy.rolling_upgrade_monitoring_policy.health_check_wait_duration = time.strftime('%H:%M:%S', time.gmtime(health_check_wait_duration)) + if upgrade_timeout is not None: + current_upgrade_policy.rolling_upgrade_monitoring_policy.upgrade_timeout = time.strftime('%H:%M:%S', time.gmtime(upgrade_timeout)) + if upgrade_domain_timeout is not None: + current_upgrade_policy.rolling_upgrade_monitoring_policy.upgrade_domain_timeout = time.strftime('%H:%M:%S', time.gmtime(upgrade_domain_timeout)) + + # ApplicationHealthPolicy + if current_upgrade_policy.application_health_policy is None: + current_upgrade_policy.application_health_policy = ApplicationHealthPolicy( + consider_warning_as_error=CONSIDER_WARNING_AS_ERROR_DEFAULT, + max_percent_unhealthy_deployed_applications=MAX_PERCENT_UNHEALTHY_DEPLOYED_APPLICATIONS_DEFAULT + ) + + if consider_warning_as_error: + current_upgrade_policy.application_health_policy.consider_warning_as_error = True + + if current_upgrade_policy.application_health_policy.default_service_type_health_policy is None: + current_upgrade_policy.application_health_policy.default_service_type_health_policy = ServiceTypeHealthPolicy( + max_percent_unhealthy_partitions_per_service=SERVICE_TYPE_MAX_PERCENT_UNHEALTHY_PARTITIONS_PER_SERVICE_DEFAULT, + max_percent_unhealthy_replicas_per_partition=SERVICE_TYPE_MAX_PERCENT_UNHEALTHY_REPLICAS_PER_PARTITION_DEFAULT, + max_percent_unhealthy_services=SERVICE_TYPE_UNHEALTHY_SERVICES_MAX_PERCENT_DEFAULT) + + if default_service_type_max_percent_unhealthy_partitions_per_service is not None: + current_upgrade_policy.application_health_policy.default_service_type_health_policy.max_percent_unhealthy_partitions_per_service \ + = default_service_type_max_percent_unhealthy_partitions_per_service + if default_service_type_max_percent_unhealthy_replicas_per_partition is not None: + current_upgrade_policy.application_health_policy.default_service_type_health_policy.max_percent_unhealthy_replicas_per_partition \ + = default_service_type_max_percent_unhealthy_replicas_per_partition + if default_service_type_max_percent_unhealthy_services is not None: + current_upgrade_policy.application_health_policy.default_service_type_health_policy.max_percent_unhealthy_partitions_per_service \ + = default_service_type_max_percent_unhealthy_services + + if max_percent_unhealthy_deployed_applications is not None: + current_upgrade_policy.application_health_policy.max_percent_unhealthy_deployed_applications \ + = max_percent_unhealthy_deployed_applications + + if service_type_health_policy_map: + current_upgrade_policy.application_health_policy.service_type_health_policy_map = _set_service_type_health_policy(service_type_health_policy_map) + return current_upgrade_policy + + +def _set_partition_description(partition_scheme, partition_names, partition_count, low_key, high_key): + partition_description = None + if partition_scheme.lower() == PartitionScheme.SINGLETON.lower(): + partition_description = SingletonPartitionScheme() + elif partition_scheme.lower() == PartitionScheme.NAMED.lower(): + partition_description = NamedPartitionScheme( + names=partition_names + ) + elif partition_scheme.lower() == PartitionScheme.UNIFORM_INT64_RANGE.lower(): + partition_description = UniformInt64RangePartitionScheme( + count=partition_count, + low_key=low_key, + high_key=high_key + ) + else: + raise InvalidArgumentValueError("Invalid --partition-scheme '%s': service partition scheme is not valid." % partition_scheme) + return partition_description + + +def _set_stateless_service_properties(properties, min_instance_count, min_instance_percentage, instance_close_delay_duration): + # Optional + if min_instance_count is not None: + properties.min_instance_count = min_instance_count + if min_instance_percentage is not None: + properties.min_instance_percentage = min_instance_percentage + if instance_close_delay_duration is not None: + properties.instance_close_delay_duration = instance_close_delay_duration + return properties + + +def _set_stateful_service_properties(properties, + has_persisted_state, + drop_source_replica_on_move, + service_placement_time_limit, + stand_by_replica_keep_duration, + quorum_loss_wait_duration, + replica_restart_wait_duration): + # Optional + if has_persisted_state is not None: + properties.has_persisted_state = has_persisted_state + if drop_source_replica_on_move is not None: + properties.drop_source_replica_on_move = drop_source_replica_on_move + if service_placement_time_limit is not None: + properties.service_placement_time_limit = service_placement_time_limit + if stand_by_replica_keep_duration is not None: + properties.stand_by_replica_keep_duration = stand_by_replica_keep_duration + if quorum_loss_wait_duration is not None: + properties.quorum_loss_wait_duration = quorum_loss_wait_duration + if replica_restart_wait_duration is not None: + properties.replica_restart_wait_duration = replica_restart_wait_duration + return properties diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_app_type.yaml b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_app_type.yaml new file mode 100644 index 00000000000..e38a38ec732 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_app_type.yaml @@ -0,0 +1,2772 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T16:39:33Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "adminPassword": + "Pass@000003", "clients": [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}]}, + "sku": {"name": "Basic"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + Content-Length: + - '320' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2020-01-01-preview + 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\": + \"Creating\",\r\n \"clusterId\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n + \ \"dnsName\": \"sfrp-cli-000002\",\r\n \"clusterCertificateThumbprint\": + \"\",\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:39:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"2b1d0004-6327-4971-bd57-e17af75d8d5b\",\r\n \"startTime\": + \"2021-03-22T16:39:40.897905Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:40:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"2b1d0004-6327-4971-bd57-e17af75d8d5b\",\r\n \"startTime\": + \"2021-03-22T16:39:40.897905Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:40:42 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"2b1d0004-6327-4971-bd57-e17af75d8d5b\",\r\n \"startTime\": + \"2021-03-22T16:39:40.897905Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:41:12 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"2b1d0004-6327-4971-bd57-e17af75d8d5b\",\r\n \"startTime\": + \"2021-03-22T16:39:40.897905Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:41:42 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"2b1d0004-6327-4971-bd57-e17af75d8d5b\",\r\n \"startTime\": + \"2021-03-22T16:39:40.897905Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:42:12 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/2b1d0004-6327-4971-bd57-e17af75d8d5b?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"2b1d0004-6327-4971-bd57-e17af75d8d5b\",\r\n \"startTime\": + \"2021-03-22T16:39:40.897905Z\",\r\n \"endTime\": \"2021-03-22T16:42:29.0904564Z\",\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: + - Mon, 22 Mar 2021 16:42:42 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"WaitingForNodes\",\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 \"clusterCertificateThumbprint\": + \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n \"clientConnectionPort\": + 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"clients\": [\r\n + \ {\r\n \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1047' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:42:43 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: '{"properties": {"isPrimary": true, "vmInstanceCount": 5, "dataDiskSizeGB": + 100, "vmSize": "Standard_D2", "vmImagePublisher": "MicrosoftWindowsServer", + "vmImageOffer": "WindowsServer", "vmImageSku": "2019-Datacenter", "vmImageVersion": + "latest"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + Content-Length: + - '245' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + method: PUT + 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=2020-01-01-preview + 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\": \"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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '757' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:42:45 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:43:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:43:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:44:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:44:47 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:45:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:45:47 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:46:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:46:48 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:47:18 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:47:48 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:48:18 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:48:49 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:49:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/63460004-03c3-4184-af5d-03fe7d57d72d?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"63460004-03c3-4184-af5d-03fe7d57d72d\",\r\n \"startTime\": + \"2021-03-22T16:42:45.8569538Z\",\r\n \"endTime\": \"2021-03-22T16:49:49.2501571Z\",\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, 22 Mar 2021 16:49:50 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + 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=2020-01-01-preview + 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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:49:50 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:50:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:51:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:52: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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:53:58 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:54:59 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1080' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:00 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-application-type list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --tags + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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-01-01-preview + 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\": \"379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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.213.126\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"D96C735ACB2E76FF6A29B526B103DDB837D66B22\"\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: + - '1231' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --tags + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:04 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: '{"location": "eastasia", "tags": {"key1": "value1", "key2": "value2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type create + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-type-name --tags + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\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\": \"2021-03-22T16:56:05.2604874+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T16:56:05.2604874+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '808' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:05 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\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\": \"2021-03-22T16:56:05.2604874+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T16:56:05.2604874+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '808' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:05 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-application-type update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --tags + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\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\": \"2021-03-22T16:56:05.2604874+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T16:56:05.2604874+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '808' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "tags": {"key2": "value3"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type update + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-type-name --tags + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 Python/3.8.8 + (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"tags\": + {\r\n \"key2\": \"value3\"\r\n },\r\n \"systemData\": {\r\n \"createdBy\": + \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": + \"2021-03-22T16:56:07.5709398+00:00\",\r\n \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n + \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T16:56:07.5709398+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '785' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:07 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"tags\": + {\r\n \"key2\": \"value3\"\r\n },\r\n \"systemData\": {\r\n \"createdBy\": + \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": + \"2021-03-22T16:56:07.5709398+00:00\",\r\n \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n + \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T16:56:07.5709398+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '785' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Mon, 22 Mar 2021 16:56:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: '{"error":{"code":"NotFound","message":"GetEntityFromTable: the ApplicationTypeData + 379e7a52-f9dc-4a3e-ba7f-adbd5bca31ce&votingtype could not be found."}}' + headers: + cache-control: + - no-cache + content-length: + - '153' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 16:56:11 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: 404 + message: Not Found +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_app_type_version.yaml b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_app_type_version.yaml new file mode 100644 index 00000000000..d22afa53aec --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_app_type_version.yaml @@ -0,0 +1,3173 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-22T20:53:08Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "adminPassword": + "Pass@000003", "clients": [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}]}, + "sku": {"name": "Basic"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + Content-Length: + - '320' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2020-01-01-preview + 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\": + \"Creating\",\r\n \"clusterId\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n + \ \"dnsName\": \"sfrp-cli-000002\",\r\n \"clusterCertificateThumbprint\": + \"\",\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"bcb80003-a336-4a06-ba07-5fbe8e61b33e\",\r\n \"startTime\": + \"2021-03-22T20:53:14.6074666Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:53:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"bcb80003-a336-4a06-ba07-5fbe8e61b33e\",\r\n \"startTime\": + \"2021-03-22T20:53:14.6074666Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:54:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"bcb80003-a336-4a06-ba07-5fbe8e61b33e\",\r\n \"startTime\": + \"2021-03-22T20:53:14.6074666Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:54:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"bcb80003-a336-4a06-ba07-5fbe8e61b33e\",\r\n \"startTime\": + \"2021-03-22T20:53:14.6074666Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:55:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"bcb80003-a336-4a06-ba07-5fbe8e61b33e\",\r\n \"startTime\": + \"2021-03-22T20:53:14.6074666Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:55:47 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/bcb80003-a336-4a06-ba07-5fbe8e61b33e?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"bcb80003-a336-4a06-ba07-5fbe8e61b33e\",\r\n \"startTime\": + \"2021-03-22T20:53:14.6074666Z\",\r\n \"endTime\": \"2021-03-22T20:56:05.8297375Z\",\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, 22 Mar 2021 20:56:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"WaitingForNodes\",\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 \"clusterCertificateThumbprint\": + \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n \"clientConnectionPort\": + 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"clients\": [\r\n + \ {\r\n \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1047' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:56:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"isPrimary": true, "vmInstanceCount": 5, "dataDiskSizeGB": + 100, "vmSize": "Standard_D2", "vmImagePublisher": "MicrosoftWindowsServer", + "vmImageOffer": "WindowsServer", "vmImageSku": "2019-Datacenter", "vmImageVersion": + "latest"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + Content-Length: + - '245' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: PUT + 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=2020-01-01-preview + 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\": \"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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '757' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:56:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:56:51 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:57:21 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:57:51 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:58:21 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:58:51 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:59:21 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 20:59: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:00: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:00:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:01: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:01:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:02: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c0a10003-39da-47f9-9087-b59789820b03?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c0a10003-39da-47f9-9087-b59789820b03\",\r\n \"startTime\": + \"2021-03-22T20:56:19.9554274Z\",\r\n \"endTime\": \"2021-03-22T21:02:24.4063135Z\",\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, 22 Mar 2021 21:02: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + 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=2020-01-01-preview + 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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:02:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:02: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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:03:58 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:04:59 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:06:00 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:07:01 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:08:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1080' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:04 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-application-type version list + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions?api-version=2021-01-01-preview + response: + body: + string: '{"error":{"code":"NotFound","message":"Resource /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType + not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '307' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:05 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: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.103\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:05 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3e706f81-aee2-4274-80f2-371f36b2bf3c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.103\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"6143BD94DB96880663C1FD2024BD4DAC0D43A6D1\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:07 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + Content-Length: + - '24' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-22T21:09:09.1431648+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:09:09.1431648+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '744' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:09 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:09 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: '{"location": "eastasia", "tags": {"key1": "value1", "key2": "value2"}, + "properties": {"appPackageUrl": "https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + Content-Length: + - '193' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\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\": \"2021-03-22T21:09:09.7982386+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:09:09.7982386+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/d9010003-6756-4af5-94ef-9bbc6b39d272?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '938' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:09 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/d9010003-6756-4af5-94ef-9bbc6b39d272?api-version=2021-01-01-preview + 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-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/d9010003-6756-4af5-94ef-9bbc6b39d272?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"d9010003-6756-4af5-94ef-9bbc6b39d272\",\r\n \"startTime\": + \"2021-03-22T21:09:09.9025187Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:09:39 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/d9010003-6756-4af5-94ef-9bbc6b39d272?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"d9010003-6756-4af5-94ef-9bbc6b39d272\",\r\n \"startTime\": + \"2021-03-22T21:09:09.9025187Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:09 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/d9010003-6756-4af5-94ef-9bbc6b39d272?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"d9010003-6756-4af5-94ef-9bbc6b39d272\",\r\n \"startTime\": + \"2021-03-22T21:09:09.9025187Z\",\r\n \"endTime\": \"2021-03-22T21:10:30.257144Z\",\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: + - Mon, 22 Mar 2021 21:10:39 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\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\": \"2021-03-22T21:09:09.7982386+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:09:09.7982386+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '939' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:40 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-application-type version show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\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\": \"2021-03-22T21:09:09.7982386+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:09:09.7982386+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '939' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:43 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-application-type version update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\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\": \"2021-03-22T21:09:09.7982386+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:09:09.7982386+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '939' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:43 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: '{"location": "eastasia", "tags": {"key2": "value3"}, "properties": {"appPackageUrl": + "https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version update + Connection: + - keep-alive + Content-Length: + - '175' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-type-name --version --tags + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"tags\": {\r\n + \ \"key2\": \"value3\"\r\n },\r\n \"systemData\": {\r\n \"createdBy\": + \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": + \"2021-03-22T21:10:44.9472538+00:00\",\r\n \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n + \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:10:44.9472538+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '916' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:44 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"tags\": {\r\n + \ \"key2\": \"value3\"\r\n },\r\n \"systemData\": {\r\n \"createdBy\": + \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": + \"2021-03-22T21:10:44.9472538+00:00\",\r\n \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n + \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:10:44.9472538+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '916' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-type-name --version + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"tags\": {\r\n + \ \"key2\": \"value3\"\r\n },\r\n \"systemData\": {\r\n \"createdBy\": + \"luslevin@microsoft.com\",\r\n \"createdByType\": \"User\",\r\n \"createdAt\": + \"2021-03-22T21:10:44.9472538+00:00\",\r\n \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n + \ \"lastModifiedByType\": \"User\",\r\n \"lastModifiedAt\": \"2021-03-22T21:10:44.9472538+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/75900003-0658-40bb-a7d6-c546d92f8df3?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '915' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:10:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/75900003-0658-40bb-a7d6-c546d92f8df3?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/75900003-0658-40bb-a7d6-c546d92f8df3?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"75900003-0658-40bb-a7d6-c546d92f8df3\",\r\n \"startTime\": + \"2021-03-22T21:10:47.5330338Z\",\r\n \"endTime\": \"2021-03-22T21:10:57.6451825Z\",\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, 22 Mar 2021 21:11:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: '{"error":{"code":"NotFound","message":"GetEntityFromTable: the ApplicationTypeVersionData + 3e706f81-aee2-4274-80f2-371f36b2bf3c&votingtype&1.0.0 could not be found."}}' + headers: + cache-control: + - no-cache + content-length: + - '166' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 22 Mar 2021 21:11: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 + status: + code: 404 + message: Not Found +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_application.yaml b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_application.yaml new file mode 100644 index 00000000000..fc479e605a3 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_application.yaml @@ -0,0 +1,5338 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:05:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "adminPassword": + "Pass@000003", "clients": [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}]}, + "sku": {"name": "Basic"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + Content-Length: + - '320' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2020-01-01-preview + 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\": + \"Creating\",\r\n \"clusterId\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n + \ \"dnsName\": \"sfrp-cli-000002\",\r\n \"clusterCertificateThumbprint\": + \"\",\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6c530004-3f6d-4550-88b0-9202b2a18077\",\r\n \"startTime\": + \"2021-03-23T00:05:08.5244624Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:05:39 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6c530004-3f6d-4550-88b0-9202b2a18077\",\r\n \"startTime\": + \"2021-03-23T00:05:08.5244624Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:06:09 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6c530004-3f6d-4550-88b0-9202b2a18077\",\r\n \"startTime\": + \"2021-03-23T00:05:08.5244624Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:06:39 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6c530004-3f6d-4550-88b0-9202b2a18077\",\r\n \"startTime\": + \"2021-03-23T00:05:08.5244624Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:07:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6c530004-3f6d-4550-88b0-9202b2a18077\",\r\n \"startTime\": + \"2021-03-23T00:05:08.5244624Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:07:40 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6c530004-3f6d-4550-88b0-9202b2a18077?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6c530004-3f6d-4550-88b0-9202b2a18077\",\r\n \"startTime\": + \"2021-03-23T00:05:08.5244624Z\",\r\n \"endTime\": \"2021-03-23T00:07:55.1676878Z\",\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: + - Tue, 23 Mar 2021 00:08:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"WaitingForNodes\",\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 \"clusterCertificateThumbprint\": + \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n \"clientConnectionPort\": + 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"clients\": [\r\n + \ {\r\n \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1047' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:08:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"isPrimary": true, "vmInstanceCount": 5, "dataDiskSizeGB": + 100, "vmSize": "Standard_D2", "vmImagePublisher": "MicrosoftWindowsServer", + "vmImageOffer": "WindowsServer", "vmImageSku": "2019-Datacenter", "vmImageVersion": + "latest"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + Content-Length: + - '245' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: PUT + 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=2020-01-01-preview + 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\": \"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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '757' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:08:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:08:44 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:09:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:09:44 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:10:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:10:45 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:11:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:11:45 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:12:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:12:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:13:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:13:47 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:14:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:14:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a5bb0004-875f-469f-a750-578105e00d0f?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a5bb0004-875f-469f-a750-578105e00d0f\",\r\n \"startTime\": + \"2021-03-23T00:08:13.1095978Z\",\r\n \"endTime\": \"2021-03-23T00:15:16.7416108Z\",\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: + - Tue, 23 Mar 2021 00:15:18 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + 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=2020-01-01-preview + 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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:15:18 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:15:21 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:16: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:17: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:18: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:19: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:20:27 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1080' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:28 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-application list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:29 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.226\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:30 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.226\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:32 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.226\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:33 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:33 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: '{"location": "eastasia"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + Content-Length: + - '24' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:21:34.617332+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:21:34.617332+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:34 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:34 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: '{"location": "eastasia", "properties": {"appPackageUrl": "https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + Content-Length: + - '147' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:21:35.2723939+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:21:35.2723939+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/3ee40004-5ab8-40a5-95f4-3181db8ba6b0?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '874' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:21:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/3ee40004-5ab8-40a5-95f4-3181db8ba6b0?api-version=2021-01-01-preview + 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-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/3ee40004-5ab8-40a5-95f4-3181db8ba6b0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"3ee40004-5ab8-40a5-95f4-3181db8ba6b0\",\r\n \"startTime\": + \"2021-03-23T00:21:35.3781633Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:22:05 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/3ee40004-5ab8-40a5-95f4-3181db8ba6b0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"3ee40004-5ab8-40a5-95f4-3181db8ba6b0\",\r\n \"startTime\": + \"2021-03-23T00:21:35.3781633Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:22:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/3ee40004-5ab8-40a5-95f4-3181db8ba6b0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"3ee40004-5ab8-40a5-95f4-3181db8ba6b0\",\r\n \"startTime\": + \"2021-03-23T00:21:35.3781633Z\",\r\n \"endTime\": \"2021-03-23T00:22:45.6228543Z\",\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: + - Tue, 23 Mar 2021 00:23:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:21:35.2723939+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:21:35.2723939+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '875' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:07 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: '{"location": "eastasia", "properties": {"version": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + Content-Length: + - '315' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:07.7977656+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:07.7977656+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/98660004-8cd9-4c4f-bb7a-a0259db4fb43?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/98660004-8cd9-4c4f-bb7a-a0259db4fb43?api-version=2021-01-01-preview + 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-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/98660004-8cd9-4c4f-bb7a-a0259db4fb43?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"98660004-8cd9-4c4f-bb7a-a0259db4fb43\",\r\n \"startTime\": + \"2021-03-23T00:23:07.8913612Z\",\r\n \"endTime\": \"2021-03-23T00:23:09.5477199Z\",\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: + - Tue, 23 Mar 2021 00:23:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:07.7977656+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:07.7977656+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1018' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:38 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-application show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:07.7977656+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:07.7977656+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1018' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:40 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-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.226\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:41 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-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:42 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: '{"location": "eastasia", "properties": {"correlationScheme": [], "serviceLoadMetrics": + [], "serviceKind": "Stateless", "serviceTypeName": "VotingWebType", "partitionDescription": + {"partitionScheme": "Singleton"}, "instanceCount": -1, "instanceCloseDelayDuration": + "0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + Content-Length: + - '269' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:43.390589+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:43.390589+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c1b40004-f0c7-40c2-9322-67d9440ff990?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1068' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:23:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/c1b40004-f0c7-40c2-9322-67d9440ff990?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/c1b40004-f0c7-40c2-9322-67d9440ff990?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c1b40004-f0c7-40c2-9322-67d9440ff990\",\r\n \"startTime\": + \"2021-03-23T00:23:43.4895013Z\",\r\n \"endTime\": \"2021-03-23T00:23:43.8488878Z\",\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: + - Tue, 23 Mar 2021 00:24:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:43.390589+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:43.390589+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1069' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:43.390589+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:43.390589+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1069' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.226\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3b660dac-8b79-43f6-b467-c03a58a1e84c\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"40.83.90.226\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"90812F0E6C47F7B7D122A70ED75EADA5F3BDD6AA\"\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: + - '1229' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:18 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:21:34.617332+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:21:34.617332+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '835' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:20 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:21:35.2723939+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:21:35.2723939+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '972' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:20 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: '{"location": "eastasia", "properties": {"appPackageUrl": "https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"2.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:24:20.8215923+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:24:20.8215923+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/e1750004-0efa-47e3-8edf-5883a3b6d074?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '880' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/e1750004-0efa-47e3-8edf-5883a3b6d074?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/e1750004-0efa-47e3-8edf-5883a3b6d074?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"e1750004-0efa-47e3-8edf-5883a3b6d074\",\r\n \"startTime\": + \"2021-03-23T00:24:20.9309426Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:24:51 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/e1750004-0efa-47e3-8edf-5883a3b6d074?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"e1750004-0efa-47e3-8edf-5883a3b6d074\",\r\n \"startTime\": + \"2021-03-23T00:24:20.9309426Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25:21 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/e1750004-0efa-47e3-8edf-5883a3b6d074?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"e1750004-0efa-47e3-8edf-5883a3b6d074\",\r\n \"startTime\": + \"2021-03-23T00:24:20.9309426Z\",\r\n \"endTime\": \"2021-03-23T00:25:31.3718454Z\",\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: + - Tue, 23 Mar 2021 00:25:51 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-application-type version create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name --version --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/2.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"2.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:24:20.8215923+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:24:20.8215923+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '881' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25:51 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:07.7977656+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:07.7977656+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1018' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/2.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"2.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:24:20.8215923+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:24:20.8215923+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '881' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:07.7977656+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:07.7977656+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1018' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/2.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"2.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:24:20.8215923+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:24:20.8215923+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '881' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:23:07.7977656+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:23:07.7977656+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1018' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25: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: '{"location": "eastasia", "properties": {"version": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0", + "upgradePolicy": {"applicationHealthPolicy": {"considerWarningAsError": false, + "maxPercentUnhealthyDeployedApplications": 0, "defaultServiceTypeHealthPolicy": + {"maxPercentUnhealthyServices": 0, "maxPercentUnhealthyPartitionsPerService": + 0, "maxPercentUnhealthyReplicasPerPartition": 0}}, "forceRestart": true, "rollingUpgradeMonitoringPolicy": + {"failureAction": "Rollback", "healthCheckWaitDuration": "00:00:00", "healthCheckStableDuration": + "00:00:00", "healthCheckRetryTimeout": "00:00:00", "upgradeTimeout": "01:56:40", + "upgradeDomainTimeout": "01:23:20"}, "upgradeReplicaSetCheckTimeout": 300, "recreateApplication": + false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + Content-Length: + - '944' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:25:57.1753167+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:25:57.1753167+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"upgradePolicy\": {\r\n \"applicationHealthPolicy\": {\r\n \"considerWarningAsError\": + false,\r\n \"maxPercentUnhealthyDeployedApplications\": 0,\r\n \"defaultServiceTypeHealthPolicy\": + {\r\n \"maxPercentUnhealthyServices\": 0,\r\n \"maxPercentUnhealthyPartitionsPerService\": + 0,\r\n \"maxPercentUnhealthyReplicasPerPartition\": 0\r\n },\r\n + \ \"serviceTypeHealthPolicyMap\": {}\r\n },\r\n \"rollingUpgradeMonitoringPolicy\": + {\r\n \"failureAction\": \"Rollback\",\r\n \"healthCheckRetryTimeout\": + \"00:00:00\",\r\n \"healthCheckWaitDuration\": \"00:00:00\",\r\n \"healthCheckStableDuration\": + \"00:00:00\",\r\n \"upgradeDomainTimeout\": \"01:23:20\",\r\n \"upgradeTimeout\": + \"01:56:40\"\r\n },\r\n \"upgradeReplicaSetCheckTimeout\": 300,\r\n + \ \"forceRestart\": true,\r\n \"recreateApplication\": false\r\n + \ },\r\n \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1879' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:25:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:26: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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:26:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:27:27 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:27:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:28:27 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:28:58 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:29:28 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:29:58 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:30:28 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 1.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:30:59 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/42f00004-a960-4300-8225-79b64dd499d8?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"42f00004-a960-4300-8225-79b64dd499d8\",\r\n \"startTime\": + \"2021-03-23T00:25:57.3289515Z\",\r\n \"endTime\": \"2021-03-23T00:31:09.4183985Z\",\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: + - Tue, 23 Mar 2021 00:31:29 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-application update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-version --health-check-stable-duration + --health-check-wait-duration --health-check-retry-timeout --upgrade-domain-timeout + --upgrade-timeout --failure-action --upgrade-replica-set-check-timeout --force-restart + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:25:57.1753167+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:25:57.1753167+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"upgradePolicy\": {\r\n \"applicationHealthPolicy\": {\r\n \"considerWarningAsError\": + false,\r\n \"maxPercentUnhealthyDeployedApplications\": 0,\r\n \"defaultServiceTypeHealthPolicy\": + {\r\n \"maxPercentUnhealthyServices\": 0,\r\n \"maxPercentUnhealthyPartitionsPerService\": + 0,\r\n \"maxPercentUnhealthyReplicasPerPartition\": 0\r\n },\r\n + \ \"serviceTypeHealthPolicyMap\": {}\r\n },\r\n \"rollingUpgradeMonitoringPolicy\": + {\r\n \"failureAction\": \"Rollback\",\r\n \"healthCheckRetryTimeout\": + \"00:00:00\",\r\n \"healthCheckWaitDuration\": \"00:00:00\",\r\n \"healthCheckStableDuration\": + \"00:00:00\",\r\n \"upgradeDomainTimeout\": \"01:23:20\",\r\n \"upgradeTimeout\": + \"01:56:40\"\r\n },\r\n \"upgradeReplicaSetCheckTimeout\": 300,\r\n + \ \"forceRestart\": true,\r\n \"recreateApplication\": false\r\n + \ },\r\n \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1880' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:31:30 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-application delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:25:57.1753167+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:25:57.1753167+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n + \ \"upgradePolicy\": {\r\n \"applicationHealthPolicy\": {\r\n \"considerWarningAsError\": + false,\r\n \"maxPercentUnhealthyDeployedApplications\": 0,\r\n \"defaultServiceTypeHealthPolicy\": + {\r\n \"maxPercentUnhealthyServices\": 0,\r\n \"maxPercentUnhealthyPartitionsPerService\": + 0,\r\n \"maxPercentUnhealthyReplicasPerPartition\": 0\r\n },\r\n + \ \"serviceTypeHealthPolicyMap\": {}\r\n },\r\n \"rollingUpgradeMonitoringPolicy\": + {\r\n \"failureAction\": \"Rollback\",\r\n \"healthCheckRetryTimeout\": + \"00:00:00\",\r\n \"healthCheckWaitDuration\": \"00:00:00\",\r\n \"healthCheckStableDuration\": + \"00:00:00\",\r\n \"upgradeDomainTimeout\": \"01:23:20\",\r\n \"upgradeTimeout\": + \"01:56:40\"\r\n },\r\n \"upgradeReplicaSetCheckTimeout\": 300,\r\n + \ \"forceRestart\": true,\r\n \"recreateApplication\": false\r\n + \ },\r\n \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/2.0.0\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/8d020004-bfa6-4298-95c2-ea101f306b77?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1879' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:31:30 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/8d020004-bfa6-4298-95c2-ea101f306b77?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/8d020004-bfa6-4298-95c2-ea101f306b77?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"8d020004-bfa6-4298-95c2-ea101f306b77\",\r\n \"startTime\": + \"2021-03-23T00:31:31.610989Z\",\r\n \"endTime\": \"2021-03-23T00:31:33.3610764Z\",\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: + - Tue, 23 Mar 2021 00:32:01 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-application-type delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:21:34.617332+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:21:34.617332+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/993e0004-af23-4c24-809b-bc2cdb1e7502?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '741' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:32:02 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/993e0004-af23-4c24-809b-bc2cdb1e7502?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/993e0004-af23-4c24-809b-bc2cdb1e7502?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"993e0004-af23-4c24-809b-bc2cdb1e7502\",\r\n \"startTime\": + \"2021-03-23T00:32:03.2630423Z\",\r\n \"endTime\": \"2021-03-23T00:32:23.3807878Z\",\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: + - Tue, 23 Mar 2021 00:32:32 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-application show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: '{"error":{"code":"NotFound","message":"GetEntityFromTable: the ApplicationData + 3b660dac-8b79-43f6-b467-c03a58a1e84c&testapp5o6g could not be found."}}' + headers: + cache-control: + - no-cache + content-length: + - '150' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:32:34 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: 404 + message: Not Found +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_service.yaml b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_service.yaml new file mode 100644 index 00000000000..45cd1835b9f --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_managed_service.yaml @@ -0,0 +1,6473 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-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-03-23T00:33:36Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "adminPassword": + "Pass@000003", "clients": [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}]}, + "sku": {"name": "Basic"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + Content-Length: + - '320' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2020-01-01-preview + 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\": + \"Creating\",\r\n \"clusterId\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n + \ \"dnsName\": \"sfrp-cli-000002\",\r\n \"clusterCertificateThumbprint\": + \"\",\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:33:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - 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-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:34:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:34:45 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:35:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:35:45 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 create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:36:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\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' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:36:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/ab070001-b61f-4f39-b9f4-21c5af28fe6c?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"ab070001-b61f-4f39-b9f4-21c5af28fe6c\",\r\n \"startTime\": + \"2021-03-23T00:33:43.8753214Z\",\r\n \"endTime\": \"2021-03-23T00:36:49.9680738Z\",\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: + - Tue, 23 Mar 2021 00:37:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"WaitingForNodes\",\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 \"clusterCertificateThumbprint\": + \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n \"clientConnectionPort\": + 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"clients\": [\r\n + \ {\r\n \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1047' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:37:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"isPrimary": true, "vmInstanceCount": 5, "dataDiskSizeGB": + 100, "vmSize": "Standard_D2", "vmImagePublisher": "MicrosoftWindowsServer", + "vmImageOffer": "WindowsServer", "vmImageSku": "2019-Datacenter", "vmImageVersion": + "latest"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + Content-Length: + - '245' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + method: PUT + 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=2020-01-01-preview + 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\": \"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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + cache-control: + - no-cache + content-length: + - '757' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:37:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:37:49 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:38:20 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:38:50 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:39:20 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:39:50 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:40:20 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:40:51 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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:41: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:42: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:42: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:43: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\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: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:43:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/c28c0001-7391-433e-9a35-86d57bc89a01?api-version=2020-01-01-preview + response: + body: + string: "{\r\n \"name\": \"c28c0001-7391-433e-9a35-86d57bc89a01\",\r\n \"startTime\": + \"2021-03-23T00:37:19.1677724Z\",\r\n \"endTime\": \"2021-03-23T00:44:22.9787182Z\",\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: + - Tue, 23 Mar 2021 00:44: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + 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=2020-01-01-preview + 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 \"placementProperties\": {},\r\n + \ \"capacities\": {}\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '758' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:44: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Deploying\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1084' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster show + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:46:29 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:47:31 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"BaselineUpgrade\",\r\n \"clusterCodeVersion\": + \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:48:32 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: + - python/3.8.8 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-servicefabric/0.5.0 Azure-SDK-For-Python AZURECLI/2.20.0 (MSI) + accept-language: + - en-US + 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=2020-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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 + \ \"clusterCertificateThumbprint\": \"D476677FCF0418F74693DDA00A4F686530818E7D\",\r\n + \ \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"clients\": [\r\n {\r\n \"isAdmin\": true,\r\n + \ \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1080' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:33 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"52.229.207.138\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"D476677FCF0418F74693DDA00A4F686530818E7D\"\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: + - '1231' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"52.229.207.138\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"D476677FCF0418F74693DDA00A4F686530818E7D\"\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: + - '1231' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"52.229.207.138\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"D476677FCF0418F74693DDA00A4F686530818E7D\"\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: + - '1231' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:39 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: '{"location": "eastasia"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + Content-Length: + - '24' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:49:39.6612391+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:49:39.6612391+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '744' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:39 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:39 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: '{"location": "eastasia", "properties": {"appPackageUrl": "https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + Content-Length: + - '147' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:49:40.3362624+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:49:40.3362624+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a35d0001-c8a7-491b-aa35-b6fef54156db?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '874' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:49:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/a35d0001-c8a7-491b-aa35-b6fef54156db?api-version=2021-01-01-preview + 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-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/a35d0001-c8a7-491b-aa35-b6fef54156db?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a35d0001-c8a7-491b-aa35-b6fef54156db\",\r\n \"startTime\": + \"2021-03-23T00:49:40.42588Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '189' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:50:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/a35d0001-c8a7-491b-aa35-b6fef54156db?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a35d0001-c8a7-491b-aa35-b6fef54156db\",\r\n \"startTime\": + \"2021-03-23T00:49:40.42588Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 65.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '189' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:50:40 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/a35d0001-c8a7-491b-aa35-b6fef54156db?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"a35d0001-c8a7-491b-aa35-b6fef54156db\",\r\n \"startTime\": + \"2021-03-23T00:49:40.42588Z\",\r\n \"endTime\": \"2021-03-23T00:51:00.8775066Z\",\r\n + \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '201' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType/versions/1.0.0?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes/versions\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"1.0.0\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:49:40.3362624+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:49:40.3362624+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"appPackageUrl\": \"https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '875' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:12 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: '{"location": "eastasia", "properties": {"version": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + Content-Length: + - '315' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:12.8795767+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:12.8795767+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/f3eb0001-a09f-4d49-bd87-5d37dc68472c?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/f3eb0001-a09f-4d49-bd87-5d37dc68472c?api-version=2021-01-01-preview + 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-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/f3eb0001-a09f-4d49-bd87-5d37dc68472c?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"f3eb0001-a09f-4d49-bd87-5d37dc68472c\",\r\n \"startTime\": + \"2021-03-23T00:51:12.9920141Z\",\r\n \"endTime\": \"2021-03-23T00:51:14.6482782Z\",\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: + - Tue, 23 Mar 2021 00:51:42 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-application create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --application-type-name --application-type-version + --package-url + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:12.8795767+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:12.8795767+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1018' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:43 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-service list + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:45 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-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --min-replica-set-size --target-replica-set-size + --service-name --service-type --has-persisted-state --partition-scheme --partition-count + --low-key --high-key + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"52.229.207.138\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"D476677FCF0418F74693DDA00A4F686530818E7D\"\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: + - '1231' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --min-replica-set-size --target-replica-set-size + --service-name --service-type --has-persisted-state --partition-scheme --partition-count + --low-key --high-key + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": []\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '19' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:47 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: '{"location": "eastasia", "properties": {"correlationScheme": [], "serviceLoadMetrics": + [], "serviceKind": "Stateful", "serviceTypeName": "VotingDataType", "partitionDescription": + {"partitionScheme": "UniformInt64Range", "count": 1, "lowKey": 0, "highKey": + 25}, "hasPersistedState": true, "targetReplicaSetSize": 3, "minReplicaSetSize": + 2}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + Content-Length: + - '339' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --state --min-replica-set-size --target-replica-set-size + --service-name --service-type --has-persisted-state --partition-scheme --partition-count + --low-key --high-key + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/e3960001-8129-4c3c-8258-eae95adc0cda?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1159' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:51:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/e3960001-8129-4c3c-8258-eae95adc0cda?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --min-replica-set-size --target-replica-set-size + --service-name --service-type --has-persisted-state --partition-scheme --partition-count + --low-key --high-key + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/e3960001-8129-4c3c-8258-eae95adc0cda?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"e3960001-8129-4c3c-8258-eae95adc0cda\",\r\n \"startTime\": + \"2021-03-23T00:51:47.8893205Z\",\r\n \"endTime\": \"2021-03-23T00:51:48.2330274Z\",\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: + - Tue, 23 Mar 2021 00:52:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --min-replica-set-size --target-replica-set-size + --service-name --service-type --has-persisted-state --partition-scheme --partition-count + --low-key --high-key + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:18 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-service show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:20 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-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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-01-01-preview + 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\": \"3f73c6cf-789b-470a-958f-b6a7a903b298\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"7.2.432.9590\",\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\": \"52.229.207.138\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"D476677FCF0418F74693DDA00A4F686530818E7D\"\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: + - '1231' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:20 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-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n + \ \"systemData\": {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n + \ \"createdByType\": \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": + 25\r\n },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": + [],\r\n \"hasPersistedState\": true,\r\n \"targetReplicaSetSize\": + 3,\r\n \"minReplicaSetSize\": 2\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1305' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:20 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: '{"location": "eastasia", "properties": {"correlationScheme": [], "serviceLoadMetrics": + [], "serviceKind": "Stateless", "serviceTypeName": "VotingWebType", "partitionDescription": + {"partitionScheme": "Singleton"}, "instanceCount": -1, "instanceCloseDelayDuration": + "0"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + Content-Length: + - '269' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/53b60001-10b3-4216-b3db-47785b9a5db1?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1070' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/53b60001-10b3-4216-b3db-47785b9a5db1?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/53b60001-10b3-4216-b3db-47785b9a5db1?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"53b60001-10b3-4216-b3db-47785b9a5db1\",\r\n \"startTime\": + \"2021-03-23T00:52:21.9071943Z\",\r\n \"endTime\": \"2021-03-23T00:52:22.3605518Z\",\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: + - Tue, 23 Mar 2021 00:52: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-service create + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --state --instance-count -1 --service-name --service-type + --partition-scheme + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52: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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:52:58 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:00 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:01 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:01 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:05 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:07 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:47.7453453+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:47.7453453+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "properties": {"correlationScheme": [], "serviceLoadMetrics": + [], "serviceKind": "Stateful", "serviceTypeName": "VotingDataType", "partitionDescription": + {"partitionScheme": "UniformInt64Range", "count": 1, "lowKey": 0, "highKey": + 25}, "hasPersistedState": true, "targetReplicaSetSize": 3, "minReplicaSetSize": + 2, "replicaRestartWaitDuration": "00:11:00", "quorumLossWaitDuration": "00:11:00", + "standByReplicaKeepDuration": "00:11:00", "servicePlacementTimeLimit": "00:11:00"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + Content-Length: + - '502' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:53:10.7241962+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:53:10.7241962+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2,\r\n + \ \"replicaRestartWaitDuration\": \"00:11:00\",\r\n \"quorumLossWaitDuration\": + \"00:11:00\",\r\n \"standByReplicaKeepDuration\": \"00:11:00\",\r\n \"servicePlacementTimeLimit\": + \"00:11:00\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/466b0001-f4a7-4bb9-87be-6b1018cbe175?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1342' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/466b0001-f4a7-4bb9-87be-6b1018cbe175?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/466b0001-f4a7-4bb9-87be-6b1018cbe175?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"466b0001-f4a7-4bb9-87be-6b1018cbe175\",\r\n \"startTime\": + \"2021-03-23T00:53:10.8451556Z\",\r\n \"endTime\": \"2021-03-23T00:53:11.032669Z\",\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: + - Tue, 23 Mar 2021 00:53:40 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --service-placement-time-limit --stand-by-replica-keep-duration + --replica-restart-wait-duration --quorum-loss-wait-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:53:10.7241962+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:53:10.7241962+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2,\r\n + \ \"replicaRestartWaitDuration\": \"00:11:00\",\r\n \"quorumLossWaitDuration\": + \"00:11:00\",\r\n \"standByReplicaKeepDuration\": \"00:11:00\",\r\n \"servicePlacementTimeLimit\": + \"00:11:00\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:40 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:42 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:43 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:45 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:48 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:49 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:50 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:51 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:52:21.7991688+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:52:21.7991688+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"instanceCloseDelayDuration\": \"00:00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1071' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:59 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: '{"location": "eastasia", "properties": {"correlationScheme": [], "serviceLoadMetrics": + [], "serviceKind": "Stateless", "serviceTypeName": "VotingWebType", "partitionDescription": + {"partitionScheme": "Singleton"}, "instanceCount": -1, "minInstanceCount": 2, + "minInstancePercentage": 20, "instanceCloseDelayDuration": "00:11:00"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + Content-Length: + - '328' + Content-Type: + - application/json + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + Python/3.8.8 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:53:59.368359+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:53:59.368359+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"minInstanceCount\": 2,\r\n \"minInstancePercentage\": + 20,\r\n \"instanceCloseDelayDuration\": \"00:11:00\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/24530001-fa39-413c-b6c3-c1d25143650d?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1130' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:53:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/24530001-fa39-413c-b6c3-c1d25143650d?api-version=2021-01-01-preview + 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-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/24530001-fa39-413c-b6c3-c1d25143650d?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"24530001-fa39-413c-b6c3-c1d25143650d\",\r\n \"startTime\": + \"2021-03-23T00:53:59.4750142Z\",\r\n \"endTime\": \"2021-03-23T00:53:59.6312475Z\",\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: + - Tue, 23 Mar 2021 00:54:29 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-service update + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name --min-instance-count --min-instance-percentage + --instance-close-delay-duration + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:53:59.368359+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:53:59.368359+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"minInstanceCount\": 2,\r\n \"minInstancePercentage\": + 20,\r\n \"instanceCloseDelayDuration\": \"00:11:00\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:54:29 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-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc2000006\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc2000006\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:53:59.368359+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:53:59.368359+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n + \ \"serviceKind\": \"Stateless\",\r\n \"serviceTypeName\": \"VotingWebType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"Singleton\"\r\n + \ },\r\n \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n + \ \"instanceCount\": -1,\r\n \"minInstanceCount\": 2,\r\n \"minInstancePercentage\": + 20,\r\n \"instanceCloseDelayDuration\": \"00:11:00\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6fec0001-33b6-4b8e-aac0-9b6ef76ffcec?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1130' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:54:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/6fec0001-33b6-4b8e-aac0-9b6ef76ffcec?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/6fec0001-33b6-4b8e-aac0-9b6ef76ffcec?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6fec0001-33b6-4b8e-aac0-9b6ef76ffcec\",\r\n \"startTime\": + \"2021-03-23T00:54:32.2257366Z\",\r\n \"endTime\": \"2021-03-23T00:54:33.2569875Z\",\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: + - Tue, 23 Mar 2021 00:55:01 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-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004/services/testSvc000005\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications/services\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testSvc000005\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:53:10.7241962+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:53:10.7241962+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n + \ \"serviceKind\": \"Stateful\",\r\n \"serviceTypeName\": \"VotingDataType\",\r\n + \ \"partitionDescription\": {\r\n \"partitionScheme\": \"UniformInt64Range\",\r\n + \ \"count\": 1,\r\n \"lowKey\": 0,\r\n \"highKey\": 25\r\n },\r\n + \ \"serviceLoadMetrics\": [],\r\n \"correlationScheme\": [],\r\n \"hasPersistedState\": + true,\r\n \"targetReplicaSetSize\": 3,\r\n \"minReplicaSetSize\": 2,\r\n + \ \"replicaRestartWaitDuration\": \"00:11:00\",\r\n \"quorumLossWaitDuration\": + \"00:11:00\",\r\n \"standByReplicaKeepDuration\": \"00:11:00\",\r\n \"servicePlacementTimeLimit\": + \"00:11:00\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6eea0001-8cbf-40bf-8852-ad20fab5e2e9?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1342' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:55:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/6eea0001-8cbf-40bf-8852-ad20fab5e2e9?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/6eea0001-8cbf-40bf-8852-ad20fab5e2e9?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6eea0001-8cbf-40bf-8852-ad20fab5e2e9\",\r\n \"startTime\": + \"2021-03-23T00:55:04.8553558Z\",\r\n \"endTime\": \"2021-03-23T00:55:06.0272733Z\",\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: + - Tue, 23 Mar 2021 00:55:34 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-application delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applications/testApp000004\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applications\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"testApp000004\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:51:12.8795767+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:51:12.8795767+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n + \ \"version\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedclusters/sfrp-cli-000002/applicationTypes/VotingType/versions/1.0.0\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/6f9c0001-e685-4d48-8458-d914b6b77263?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:55:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/6f9c0001-e685-4d48-8458-d914b6b77263?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/6f9c0001-e685-4d48-8458-d914b6b77263?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"6f9c0001-e685-4d48-8458-d914b6b77263\",\r\n \"startTime\": + \"2021-03-23T00:55:37.5270287Z\",\r\n \"endTime\": \"2021-03-23T00:55:38.421813Z\",\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: + - Tue, 23 Mar 2021 00:56:07 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-application-type delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applicationTypes/VotingType?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/applicationTypes/VotingType\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/applicationTypes\",\r\n + \ \"location\": \"eastasia\",\r\n \"name\": \"VotingType\",\r\n \"systemData\": + {\r\n \"createdBy\": \"luslevin@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2021-03-23T00:49:39.6612391+00:00\",\r\n + \ \"lastModifiedBy\": \"luslevin@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2021-03-23T00:49:39.6612391+00:00\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/e6710001-b74b-4ebd-871e-aa63af23aadd?api-version=2021-01-01-preview + cache-control: + - no-cache + content-length: + - '743' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Mar 2021 00:56:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/e6710001-b74b-4ebd-871e-aa63af23aadd?api-version=2021-01-01-preview + 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: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-application-type delete + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-type-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/e6710001-b74b-4ebd-871e-aa63af23aadd?api-version=2021-01-01-preview + response: + body: + string: "{\r\n \"name\": \"e6710001-b74b-4ebd-871e-aa63af23aadd\",\r\n \"startTime\": + \"2021-03-23T00:56:10.1632395Z\",\r\n \"endTime\": \"2021-03-23T00:56:30.2481826Z\",\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: + - Tue, 23 Mar 2021 00:56:40 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-service show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc000005?api-version=2021-01-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 23 Mar 2021 00:56:42 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: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-service show + Connection: + - keep-alive + ParameterSetName: + - -g -c --application-name --service-name + User-Agent: + - AZURECLI/2.20.0 (MSI) azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0b1 + 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/applications/testApp000004/services/testSvc2000006?api-version=2021-01-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 23 Mar 2021 00:56:44 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: 404 + message: Not Found +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_application.py b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_application.py new file mode 100644 index 00000000000..59191ff80df --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_application.py @@ -0,0 +1,262 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import unittest +from azure.cli.command_modules.servicefabric.tests.latest.test_util import ( + _create_cluster_with_separate_kv, + _create_managed_cluster, + _wait_for_managed_cluster_state_ready) +from azure.cli.core.util import CLIError +from azure.cli.testsdk import ScenarioTest, LiveScenarioTest, ResourceGroupPreparer +from azure.cli.core.azclierror import ResourceNotFoundError + + +class ServiceFabricManagedApplicationTests(ScenarioTest): + @ResourceGroupPreparer() + def test_managed_app_type(self): + self.kwargs.update({ + 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', + 'loc': 'eastasia', + 'cluster_name': self.create_random_name('sfrp-cli-', 24), + 'vm_password': self.create_random_name('Pass@', 9), + 'app_type_name': 'VotingType', + 'v1': '1.0.0', + 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', + 'v2': '2.0.0', + 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', + 'app_name': self.create_random_name('testApp', 11), + 'stateful_service_type': 'VotingDataType', + 'stateless_service_type': 'VotingWebType', + 'stateful_service_name': self.create_random_name("testSvc", 20), + 'stateless_service_name': self.create_random_name("testSvc2", 20), + 'tags': 'key1=value1 key2=value2', + 'new_tags': 'key2=value3' + }) + _create_managed_cluster(self, self.kwargs) + _wait_for_managed_cluster_state_ready(self, self.kwargs) + + # List + self.cmd('az sf managed-application-type list -g {rg} -c {cluster_name}', + checks=[self.is_empty()]) + # Create + app_type = self.cmd('az sf managed-application-type create -g {rg} -c {cluster_name} --application-type-name {app_type_name} --tags {tags}', + checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + # Show + self.cmd('az sf managed-application-type show -g {rg} -c {cluster_name} --application-type-name {app_type_name}', + checks=[self.check('id', app_type['id']), self.check('tags', app_type['tags'])]) + # Update + updated_app_type = self.cmd('az sf managed-application-type update -g {rg} -c {cluster_name} --application-type-name {app_type_name} --tags {new_tags}', + checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + # Show + self.cmd('az sf managed-application-type show -g {rg} -c {cluster_name} --application-type-name {app_type_name}', + checks=[self.check('id', updated_app_type['id']), self.check('tags', updated_app_type['tags'])]) + # Delete + self.cmd('az sf managed-application-type delete -g {rg} -c {cluster_name} --application-type-name {app_type_name}') + + # SystemExit 3 'not found' + with self.assertRaisesRegexp(SystemExit, '3'): + self.cmd('az sf managed-application-type show -g {rg} -c {cluster_name} --application-type-name {app_type_name}') + + @ResourceGroupPreparer() + def test_managed_app_type_version(self): + self.kwargs.update({ + 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', + 'loc': 'eastasia', + 'cluster_name': self.create_random_name('sfrp-cli-', 24), + 'vm_password': self.create_random_name('Pass@', 9), + 'app_type_name': 'VotingType', + 'v1': '1.0.0', + 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', + 'v2': '2.0.0', + 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', + 'app_name': self.create_random_name('testApp', 11), + 'stateful_service_type': 'VotingDataType', + 'stateless_service_type': 'VotingWebType', + 'stateful_service_name': self.create_random_name("testSvc", 20), + 'stateless_service_name': self.create_random_name("testSvc2", 20), + 'tags': 'key1=value1 key2=value2', + 'new_tags': 'key2=value3' + }) + _create_managed_cluster(self, self.kwargs) + _wait_for_managed_cluster_state_ready(self, self.kwargs) + + # 'not found' + with self.assertRaisesRegexp(Exception, r'\(NotFound\).+not found.'): + self.cmd('az sf managed-application-type version list -g {rg} -c {cluster_name} --application-type-name {app_type_name}') + # Create + app_type_version = self.cmd('az sf managed-application-type version create -g {rg} -c {cluster_name} ' + '--application-type-name {app_type_name} --version {v1} --package-url {app_package_v1} --tags {tags}', + checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + # Show + self.cmd('az sf managed-application-type version show -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}', + checks=[self.check('id', app_type_version['id']), self.check('tags', app_type_version['tags'])]) + # Update + updated_app_type_version = self.cmd('az sf managed-application-type version update -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1} --tags {new_tags}', + checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + # Show + self.cmd('az sf managed-application-type version show -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}', + checks=[self.check('id', updated_app_type_version['id']), self.check('tags', updated_app_type_version['tags'])]) + # Delete + self.cmd('az sf managed-application-type version delete -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}') + + # SystemExit 3 'not found' + with self.assertRaisesRegex(SystemExit, '3'): + self.cmd('az sf managed-application-type version show -g {rg} -c {cluster_name} --application-type-name {app_type_name} --version {v1}') + + @ResourceGroupPreparer() + def test_managed_application(self): + updated_version = '2.0.0' + self.kwargs.update({ + 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', + 'loc': 'eastasia', + 'cluster_name': self.create_random_name('sfrp-cli-', 24), + 'vm_password': self.create_random_name('Pass@', 9), + 'app_type_name': 'VotingType', + 'v1': '1.0.0', + 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', + 'v2': updated_version, + 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', + 'app_name': self.create_random_name('testApp', 11), + 'stateful_service_type': 'VotingDataType', + 'stateless_service_type': 'VotingWebType', + 'stateful_service_name': self.create_random_name("testSvc", 20), + 'stateless_service_name': self.create_random_name("testSvc2", 20), + 'tags': 'key1=value1 key2=value2', + 'new_tags': 'key2=value3' + }) + _create_managed_cluster(self, self.kwargs) + _wait_for_managed_cluster_state_ready(self, self.kwargs) + + # List Apps + self.cmd('az sf managed-application list -g {rg} -c {cluster_name}', + checks=[self.is_empty()]) + # Create App + app = self.cmd('az sf managed-application create -g {rg} -c {cluster_name} --application-name {app_name} ' + '--application-type-name {app_type_name} --application-type-version {v1} --package-url {app_package_v1}', + checks=[self.check('provisioningState', 'Succeeded')]).get_output_in_json() + # Show App + self.cmd('az sf managed-application show -g {rg} -c {cluster_name} --application-name {app_name}', + checks=[self.check('id', app['id'])]) + # Create Stateless Service + stateless_service = self.cmd('az sf managed-service create -g {rg} -c {cluster_name} --application-name {app_name} --state stateless --instance-count -1 ' + '--service-name {stateless_service_name} --service-type {stateless_service_type} --partition-scheme singleton', + checks=[self.check('properties.provisioningState', 'Succeeded')]).get_output_in_json() + # Show Stateless Service + self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}', + checks=[self.check('id', stateless_service['id'])]) + # Create New App Type + self.cmd('az sf managed-application-type version create -g {rg} -c {cluster_name} ' + '--application-type-name {app_type_name} --version {v2} --package-url {app_package_v2}', + checks=[self.check('provisioningState', 'Succeeded')]) + # Update Application + updated_app = self.cmd('az sf managed-application update -g {rg} -c {cluster_name} --application-name {app_name} --application-type-version {v2} ' + '--health-check-stable-duration 0 --health-check-wait-duration 0 --health-check-retry-timeout 0 ' + '--upgrade-domain-timeout 5000 --upgrade-timeout 7000 --failure-action Rollback --upgrade-replica-set-check-timeout 300 --force-restart', + checks=[self.check('provisioningState', 'Succeeded'), + self.check('upgradePolicy.forceRestart', True), + self.check('upgradePolicy.upgradeReplicaSetCheckTimeout', '300'), + self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.healthCheckRetryTimeout', '00:00:00'), + self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.healthCheckWaitDuration', '00:00:00'), + self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.healthCheckStableDuration', '00:00:00'), + self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.upgradeTimeout', '01:56:40'), + self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.upgradeDomainTimeout', '01:23:20'), + self.check('upgradePolicy.rollingUpgradeMonitoringPolicy.failureAction', 'Rollback')]).get_output_in_json() + assert updated_app['version'].endswith(updated_version) + # Delete Application + self.cmd('az sf managed-application delete -g {rg} -c {cluster_name} --application-name {app_name}') + # Delete Application Type + self.cmd('az sf managed-application-type delete -g {rg} -c {cluster_name} --application-type-name {app_type_name}') + + # SystemExit 3 'not found' + with self.assertRaisesRegex(SystemExit, '3'): + self.cmd('az sf managed-application show -g {rg} -c {cluster_name} --application-name {app_name}') + + @ResourceGroupPreparer() + def test_managed_service(self): + self.kwargs.update({ + 'cert_tp': '123BDACDCDFB2C7B250192C6078E47D1E1DB119B', + 'loc': 'eastasia', + 'cluster_name': self.create_random_name('sfrp-cli-', 24), + 'vm_password': self.create_random_name('Pass@', 9), + 'app_type_name': 'VotingType', + 'v1': '1.0.0', + 'app_package_v1': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.sfpkg', + 'v2': '2.0.0', + 'app_package_v2': 'https://sfmconeboxst.blob.core.windows.net/managed-application-deployment/Voting.2.0.0.sfpkg', + 'app_name': self.create_random_name('testApp', 11), + 'stateful_service_type': 'VotingDataType', + 'stateless_service_type': 'VotingWebType', + 'stateful_service_name': self.create_random_name("testSvc", 20), + 'stateless_service_name': self.create_random_name("testSvc2", 20), + 'tags': 'key1=value1 key2=value2', + 'new_tags': 'key2=value3', + 'service_placement_time_limit': '00:11:00', + 'standby_replica_keep_duration': '00:11:00', + 'quorum_loss_wait_duration': '00:11:00', + 'replica_restart_wait_duration': '00:11:00', + 'min_instance_count': 2, + 'min_instance_percentage': 20, + 'instance_close_delay_duration': '00:11:00', + }) + _create_managed_cluster(self, self.kwargs) + _wait_for_managed_cluster_state_ready(self, self.kwargs) + + # Create App + self.cmd('az sf managed-application create -g {rg} -c {cluster_name} --application-name {app_name} ' + '--application-type-name {app_type_name} --application-type-version {v1} --package-url {app_package_v1}', + checks=[self.check('provisioningState', 'Succeeded')]) + # List Services + self.cmd('az sf managed-service list -g {rg} -c {cluster_name} --application-name {app_name}', + checks=[self.is_empty()]) + # Create Stateful Service + stateful_service = self.cmd('az sf managed-service create -g {rg} -c {cluster_name} --application-name {app_name} --state stateful --min-replica-set-size 2 ' + '--target-replica-set-size 3 --service-name {stateful_service_name} --service-type {stateful_service_type} --has-persisted-state ' + '--partition-scheme uniformint64range --partition-count 1 --low-key 0 --high-key 25', + checks=[self.check('properties.provisioningState', 'Succeeded')]).get_output_in_json() + # Show Stateful Service + self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name}', + checks=[self.check('id', stateful_service['id'])]) + # Create Stateless Service + stateless_service = self.cmd('az sf managed-service create -g {rg} -c {cluster_name} --application-name {app_name} --state stateless --instance-count -1 ' + '--service-name {stateless_service_name} --service-type {stateless_service_type} --partition-scheme singleton', + checks=[self.check('properties.provisioningState', 'Succeeded')]).get_output_in_json() + # Show Stateless Service + self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}', + checks=[self.check('id', stateless_service['id'])]) + # Update Stateful Service + self.cmd('az sf managed-service update -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name} ' + '--service-placement-time-limit {service_placement_time_limit} --stand-by-replica-keep-duration {standby_replica_keep_duration} ' + '--replica-restart-wait-duration {replica_restart_wait_duration} --quorum-loss-wait-duration {quorum_loss_wait_duration}', + checks=[self.check('properties.provisioningState', 'Succeeded'), + self.check('properties.servicePlacementTimeLimit', '00:11:00'), + self.check('properties.standByReplicaKeepDuration', '00:11:00'), + self.check('properties.quorumLossWaitDuration', '00:11:00'), + self.check('properties.replicaRestartWaitDuration', '00:11:00')]) + # Update Stateless Service + self.cmd('az sf managed-service update -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name} ' + '--min-instance-count {min_instance_count} --min-instance-percentage {min_instance_percentage} ' + '--instance-close-delay-duration {instance_close_delay_duration}', + checks=[self.check('properties.provisioningState', 'Succeeded'), + self.check('properties.minInstanceCount', '2'), + self.check('properties.minInstancePercentage', '20'), + self.check('properties.instanceCloseDelayDuration', '00:11:00')]) + # Delete Stateless Service + self.cmd('az sf managed-service delete -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}') + # Delete Stateful Service + self.cmd('az sf managed-service delete -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name}') + # Delete Application + self.cmd('az sf managed-application delete -g {rg} -c {cluster_name} --application-name {app_name}') + # Delete Application Type + self.cmd('az sf managed-application-type delete -g {rg} -c {cluster_name} --application-type-name {app_type_name}') + + # SystemExit 3 'not found' + with self.assertRaisesRegex(SystemExit, '3'): + self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateful_service_name}') + # SystemExit 3 'not found' + with self.assertRaisesRegex(SystemExit, '3'): + self.cmd('az sf managed-service show -g {rg} -c {cluster_name} --application-name {app_name} --service-name {stateless_service_name}') + + +if __name__ == '__main__': + unittest.main() diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_util.py b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_util.py index 8417bce746c..e2af4b8f40f 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_util.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_util.py @@ -85,3 +85,31 @@ def _wait_for_cluster_state_ready(test, kwargs): raise CLIError("Cluster deployment timed out. cluster state is not 'Ready'. State: {}".format(state)) if test.in_recording or test.is_live: time.sleep(60) + + +# Manged Cluster helpers +def _create_managed_cluster(test, kwargs): + test.cmd('az sf managed-cluster create -g {rg} -c {cluster_name} -l {loc} --cert-thumbprint {cert_tp} --cert-is-admin --admin-password {vm_password}', + checks=[test.check('provisioningState', 'Succeeded'), + test.check('clusterState', 'WaitingForNodes')]) + + test.cmd('az sf managed-node-type create -g {rg} -c {cluster_name} -n pnt --instance-count 5 --primary', + checks=[test.check('provisioningState', 'Succeeded')]) + + +def _wait_for_managed_cluster_state_ready(test, kwargs): + timeout = time.time() + 900 + while True: + cluster = test.cmd('az sf managed-cluster show -g {rg} -c {cluster_name}').get_output_in_json() + + if cluster['clusterState']: + if cluster['clusterState'] == 'Ready': + return + + if time.time() > timeout: + state = "unknown" + if cluster['clusterState']: + state = cluster['clusterState'] + raise CLIError("Managed cluster deployment timed out. cluster state is not 'Ready'. State: {}".format(state)) + if test.in_recording or test.is_live: + time.sleep(60) diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 65ef4eccb30..00c1e0cfb79 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -76,6 +76,7 @@ azure-mgmt-search==8.0.0 azure-mgmt-security==0.6.0 azure-mgmt-servicebus==0.6.0 azure-mgmt-servicefabric==0.5.0 +azure-mgmt-servicefabricmanagedclusters==1.0.0b1 azure-mgmt-signalr==0.4.0 azure-mgmt-sql==0.26.0 azure-mgmt-sqlvirtualmachine==0.5.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index 44bdb621c17..d8545a48c04 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -77,6 +77,7 @@ azure-mgmt-search==8.0.0 azure-mgmt-security==0.6.0 azure-mgmt-servicebus==0.6.0 azure-mgmt-servicefabric==0.5.0 +azure-mgmt-servicefabricmanagedclusters==1.0.0b1 azure-mgmt-signalr==0.4.0 azure-mgmt-sql==0.26.0 azure-mgmt-sqlvirtualmachine==0.5.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 6dba6b6e7e6..24d2992f70b 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -77,6 +77,7 @@ azure-mgmt-search==8.0.0 azure-mgmt-security==0.6.0 azure-mgmt-servicebus==0.6.0 azure-mgmt-servicefabric==0.5.0 +azure-mgmt-servicefabricmanagedclusters==1.0.0b1 azure-mgmt-signalr==0.4.0 azure-mgmt-sql==0.26.0 azure-mgmt-sqlvirtualmachine==0.5.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 77d8dd5f549..44e8c3c7527 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -119,6 +119,7 @@ 'azure-mgmt-security~=0.6.0', 'azure-mgmt-servicebus~=0.6.0', 'azure-mgmt-servicefabric~=0.5.0', + 'azure-mgmt-servicefabricmanagedclusters~=1.0.0b1', 'azure-mgmt-signalr~=0.4.0', 'azure-mgmt-sqlvirtualmachine~=0.5.0', 'azure-mgmt-sql~=0.26.0',