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 aed8f0f0365..abfcb00fa21 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_help.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_help.py @@ -464,6 +464,21 @@ az sf managed-cluster client-certificate delete -g testRG -c testCluster --common-name Contoso.com """ +helps['sf managed-cluster network-security-rule'] = """ +type: group +short-summary: network security rule of a manged cluster. +""" + +helps['sf managed-cluster network-security-rule add'] = """ +type: command +short-summary: Add a network security rule to a manged cluster. +examples: + - name: Add network security rule. + text: > + az sf managed-cluster network-security-rule add -g testRG -c testCluster --name 'network security rule name' --access allow --description 'network security rule description' --direction inbound --protocol tcp --priority 1200 \ + --source-port-ranges 1-1000 --dest-port-ranges 1-65535 --source-addr-prefixes 167.220.242.0/27 167.220.0.0/23 131.107.132.16/28 167.220.81.128/26 --dest-addr-prefixes 194.69.104.0/25 194.69.119.64/26 167.220.249.128/26 255.255.255.255/32 +""" + helps['sf managed-node-type'] = """ type: group short-summary: Manage a node type of an Azure Service Fabric managed cluster. 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 212257b248d..6511cd3f041 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_params.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_params.py @@ -12,7 +12,8 @@ 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) + validate_update_managed_service_load_metric, validate_update_managed_service_correlation, + validate_add_network_security_rule) from azure.cli.core.commands.parameters import (get_enum_type, get_three_state_flag, resource_group_name_type, @@ -278,8 +279,19 @@ def load_arguments(self, _): # pylint: disable=too-many-statements c.argument('thumbprint', nargs='+', help='A single or Space-separated list of client certificate thumbprint(s) to be remove.') c.argument('common_name', nargs='+', help='A single or Space-separated list of client certificate common name(s) to be remove.') - # managed node type + with self.argument_context('sf managed-cluster network-security-rule add', validator=validate_add_network_security_rule) as c: + c.argument('name', help='Network security rule name') + c.argument('access', arg_type=get_enum_type(['allow', 'deny']), help='Allows or denies network traffic') + c.argument('direction', arg_type=get_enum_type(['inbound', 'outbound']), help='Network security rule direction') + c.argument('description', help='Network security rule description') + c.argument('priority', type=int, help='Integer that shows priority for rule') + c.argument('protocol', arg_type=get_enum_type(['tcp', 'https', 'http', 'udp', 'icmp', 'ah', 'esp', 'any']), help='Network protocol') + c.argument('source_port_ranges', nargs='+', help='A single or space separated list of source port ranges') + c.argument('dest_port_ranges', nargs='+', help='A single or space separated list of destination port ranges') + c.argument('source_addr_prefixes', nargs='+', help='The CIDR or source IP ranges. A single or space separated list of source address prefixes') + c.argument('dest_addr_prefixes', nargs='+', help='CIDR or destination IP ranges. A single or space separated list of destination address prefixes') + # managed node type capacity = CLIArgumentType( options_list=['--capacity'], action=AddNodeTypeCapacityAction, 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 8a85d76ab2c..392615dea72 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/_validators.py @@ -120,6 +120,15 @@ def validate_create_managed_cluster(cmd, namespace): raise CLIError("--upgrade-cadence should only be used whe --upgrade-mode is set to 'Automatic'.") +def validate_add_network_security_rule(cmd, namespace): + client = servicefabric_managed_client_factory(cmd.cli_ctx) + cluster = _safe_get_resource(client.managed_clusters.get, + (namespace.resource_group_name, namespace.cluster_name)) + + if cluster is None or cluster.cluster_state != 'Ready': + raise ValidationError("cluster state is invalid for this operation") + + def validate_create_managed_service(namespace): validate_tags(namespace) if namespace.service_type is None: 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 752c45d9ece..815fb5097da 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/commands.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/commands.py @@ -163,6 +163,10 @@ def load_command_table(self, _): g.custom_command('add', 'add_client_cert') g.custom_command('delete', 'delete_client_cert') + with self.command_group('sf managed-cluster network-security-rule', managed_cluster_mgmt, + custom_command_type=managed_cluster_custom_type) as g: + g.custom_command('add', 'add_network_security_rule') + with self.command_group('sf managed-node-type', node_type_mgmt, custom_command_type=managed_node_type_custom_type) as g: g.command('list', 'list_by_managed_clusters') diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_clusters.py b/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_clusters.py index 176435b663b..f85d07fc458 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_clusters.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/operations/managed_clusters.py @@ -13,6 +13,7 @@ _create_resource_group_name ) from azure.mgmt.servicefabricmanagedclusters.models import ( + NetworkSecurityRule, ManagedCluster, Sku, ClientCertificate @@ -206,3 +207,43 @@ def _get_resource_group_location(cli_ctx, resource_group_name): resource_client = resource_client_factory(cli_ctx).resource_groups rg = resource_client.get(resource_group_name) return rg.location + + +def add_network_security_rule(cmd, + client, + resource_group_name, + cluster_name, + name=None, + access=None, + description=None, + direction=None, + protocol=None, + priority=None, + source_port_ranges=None, + dest_port_ranges=None, + dest_addr_prefixes=None, + source_addr_prefixes=None): + try: + cluster = client.managed_clusters.get(resource_group_name, cluster_name) + + if cluster.network_security_rules is None: + cluster.network_security_rules = [] + + new_network_securityRule = NetworkSecurityRule(name=name, + access=access, + description=description, + direction=direction, + protocol='*' if protocol == 'any' else protocol, + priority=priority, + source_port_ranges=source_port_ranges, + destination_port_ranges=dest_port_ranges, + destination_address_prefixes=dest_addr_prefixes, + source_address_prefixes=source_addr_prefixes) + + cluster.network_security_rules.append(new_network_securityRule) + + poller = client.managed_clusters.begin_create_or_update(resource_group_name, cluster_name, cluster) + return LongRunningOperation(cmd.cli_ctx)(poller) + except HttpResponseError as ex: + logger.error("HttpResponseError: %s", ex) + raise diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_network_security_rule.yaml b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_network_security_rule.yaml new file mode 100644 index 00000000000..e1d0cbb6ba4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/recordings/test_network_security_rule.yaml @@ -0,0 +1,3687 @@ +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 --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:27 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 --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:27 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 --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:27 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 --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-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","test":"test_network_security_rule","date":"2023-06-23T21:48:21Z","module":"servicefabric"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastasia", "tags": {"key1": "value1", "key2": "value2"}, + "sku": {"name": "Basic"}, "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "adminPassword": + "Pass@000003", "clients": [{"isAdmin": true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}], + "zonalResiliency": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + Content-Length: + - '385' + Content-Type: + - application/json + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + 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=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Creating\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"clusterCertificateThumbprints\": + [],\r\n \"clientConnectionPort\": 19000,\r\n \"httpGatewayConnectionPort\": + 19080,\r\n \"allowRdpAccess\": false,\r\n \"clients\": [\r\n {\r\n + \ \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ],\r\n \"enableAutoOSUpgrade\": false,\r\n \"zonalResiliency\": + false\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:48:32 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\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: + - Fri, 23 Jun 2023 21: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\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: + - Fri, 23 Jun 2023 21:49: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\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: + - Fri, 23 Jun 2023 21:49: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\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: + - Fri, 23 Jun 2023 21:50: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\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: + - Fri, 23 Jun 2023 21:50: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\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: + - Fri, 23 Jun 2023 21:51: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 52.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '191' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:51: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/5eb30004-3377-437a-913a-f8ebd5ad3c90?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"5eb30004-3377-437a-913a-f8ebd5ad3c90\",\r\n \"startTime\": + \"2023-06-23T21:48:32.8254691Z\",\r\n \"endTime\": \"2023-06-23T21:51:48.8906331Z\",\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: + - Fri, 23 Jun 2023 21:52: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-cluster create + Connection: + - keep-alive + ParameterSetName: + - -g -c -l --cert-thumbprint --cert-is-admin --admin-password --tags + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"WaitingForNodes\",\r\n \"clusterUpgradeMode\": + \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": false,\r\n \"clusterUpgradeCadence\": + \"Wave0\",\r\n \"adminUserName\": \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n + \ \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n \"ipv4Address\": + \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1537' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:52: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: '{"properties": {"isPrimary": true, "vmInstanceCount": 5, "dataDiskSizeGB": + 100, "vmSize": "Standard_D2", "vmImagePublisher": "MicrosoftWindowsServer", + "vmImageOffer": "WindowsServer", "vmImageSku": "2019-Datacenter", "vmImageVersion": + "latest", "isStateless": false, "multiplePlacementGroups": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + Content-Length: + - '301' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + 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=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodetypes/pnt\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/nodetypes\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"pnt\",\r\n \"tags\": {},\r\n \"systemData\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n + \ \"isPrimary\": true,\r\n \"vmImagePublisher\": \"MicrosoftWindowsServer\",\r\n + \ \"vmImageOffer\": \"WindowsServer\",\r\n \"vmImageSku\": \"2019-Datacenter\",\r\n + \ \"vmImageVersion\": \"latest\",\r\n \"vmSize\": \"Standard_D2\",\r\n + \ \"vmInstanceCount\": 5,\r\n \"dataDiskSizeGB\": 100,\r\n \"dataDiskType\": + \"StandardSSD_LRS\",\r\n \"placementProperties\": {},\r\n \"capacities\": + {},\r\n \"vmExtensions\": [],\r\n \"isStateless\": false,\r\n \"multiplePlacementGroups\": + false\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + cache-control: + - no-cache + content-length: + - '841' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:52: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 5.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '189' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:52: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:52: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21: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: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:54: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:54: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:55: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:55: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:56: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:56: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:57: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:57: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:58: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:58: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:59: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 21:59: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:00: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:00: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:01: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:01: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\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: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:02: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:02: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:03: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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:08: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:09: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"0001-01-01T00:00:00\",\r\n + \ \"percentComplete\": 70.0,\r\n \"status\": \"Created\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:09: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/88360004-43f2-425d-88a5-528229876aaf?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"88360004-43f2-425d-88a5-528229876aaf\",\r\n \"startTime\": + \"2023-06-23T21:52:10.234707Z\",\r\n \"endTime\": \"2023-06-23T22:09:44.2034358Z\",\r\n + \ \"percentComplete\": 100.0,\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '202' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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-node-type create + Connection: + - keep-alive + ParameterSetName: + - -g -c -n --instance-count --primary + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodeTypes/pnt?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002/nodetypes/pnt\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters/nodetypes\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"pnt\",\r\n \"tags\": {},\r\n \"systemData\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"isPrimary\": true,\r\n \"vmImagePublisher\": \"MicrosoftWindowsServer\",\r\n + \ \"vmImageOffer\": \"WindowsServer\",\r\n \"vmImageSku\": \"2019-Datacenter\",\r\n + \ \"vmImageVersion\": \"latest\",\r\n \"vmSize\": \"Standard_D2\",\r\n + \ \"vmInstanceCount\": 5,\r\n \"dataDiskSizeGB\": 100,\r\n \"dataDiskType\": + \"StandardSSD_LRS\",\r\n \"placementProperties\": {},\r\n \"capacities\": + {},\r\n \"vmExtensions\": [],\r\n \"isStateless\": false,\r\n \"multiplePlacementGroups\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '842' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22: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-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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 network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T21:48:31.262379+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\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: + - '1571' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10: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: '{"location": "eastasia", "tags": {"key1": "value1", "key2": "value2"}, + "sku": {"name": "Basic"}, "properties": {"dnsName": "sfrp-cli-000002", "clientConnectionPort": + 19000, "httpGatewayConnectionPort": 19080, "adminUserName": "vmadmin", "allowRdpAccess": + false, "networkSecurityRules": [{"name": "NSR-000004", "description": "NSR-description000005", + "protocol": "*", "sourceAddressPrefixes": ["167.220.242.0/27", "167.220.0.0/23", + "131.107.132.16/28", "167.220.81.128/26"], "destinationAddressPrefixes": ["194.69.104.0/25", + "194.69.119.64/26", "167.220.249.128/26", "255.255.255.255/32"], "sourcePortRanges": + ["1-1000", "1122-65535"], "destinationPortRanges": ["1-1900", "2200-65535"], + "access": "allow", "priority": 1200, "direction": "inbound"}], "clients": [{"isAdmin": + true, "thumbprint": "123BDACDCDFB2C7B250192C6078E47D1E1DB119B"}], "clusterCodeVersion": + "9.1.1833.9590", "clusterUpgradeMode": "Automatic", "clusterUpgradeCadence": + "Wave0", "enableAutoOSUpgrade": false, "zonalResiliency": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster network-security-rule add + Connection: + - keep-alive + Content-Length: + - '1003' + Content-Type: + - application/json + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + 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=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T22:10:39.562597+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\r\n ],\r\n \"clientConnectionPort\": + 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"allowRdpAccess\": + false,\r\n \"networkSecurityRules\": [\r\n {\r\n \"name\": + \"NSR-000004\",\r\n \"description\": \"NSR-description000005\",\r\n + \ \"protocol\": \"*\",\r\n \"sourcePortRanges\": [\r\n \"1-1000\",\r\n + \ \"1122-65535\"\r\n ],\r\n \"destinationPortRanges\": + [\r\n \"1-1900\",\r\n \"2200-65535\"\r\n ],\r\n \"sourceAddressPrefixes\": + [\r\n \"167.220.242.0/27\",\r\n \"167.220.0.0/23\",\r\n + \ \"131.107.132.16/28\",\r\n \"167.220.81.128/26\"\r\n ],\r\n + \ \"destinationAddressPrefixes\": [\r\n \"194.69.104.0/25\",\r\n + \ \"194.69.119.64/26\",\r\n \"167.220.249.128/26\",\r\n \"255.255.255.255/32\"\r\n + \ ],\r\n \"access\": \"allow\",\r\n \"priority\": 1200,\r\n + \ \"direction\": \"inbound\"\r\n }\r\n ],\r\n \"clients\": + [\r\n {\r\n \"isAdmin\": true,\r\n \"thumbprint\": \"123BDACDCDFB2C7B250192C6078E47D1E1DB119B\"\r\n + \ }\r\n ],\r\n \"enableAutoOSUpgrade\": false,\r\n \"zonalResiliency\": + false\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a4b20004-1642-44da-9c51-c3cd49a6099e?api-version=2021-05-01 + cache-control: + - no-cache + content-length: + - '2351' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:10:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/a4b20004-1642-44da-9c51-c3cd49a6099e?api-version=2021-05-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sf managed-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a4b20004-1642-44da-9c51-c3cd49a6099e?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"a4b20004-1642-44da-9c51-c3cd49a6099e\",\r\n \"startTime\": + \"2023-06-23T22:10:39.7143871Z\",\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: + - Fri, 23 Jun 2023 22: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-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperations/a4b20004-1642-44da-9c51-c3cd49a6099e?api-version=2021-05-01 + response: + body: + string: "{\r\n \"name\": \"a4b20004-1642-44da-9c51-c3cd49a6099e\",\r\n \"startTime\": + \"2023-06-23T22:10:39.7143871Z\",\r\n \"endTime\": \"2023-06-23T22:11:03.3517466Z\",\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: + - Fri, 23 Jun 2023 22:11: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-cluster network-security-rule add + Connection: + - keep-alive + ParameterSetName: + - -g -c --name --access --description --direction --protocol --priority --source-port-ranges + --dest-port-ranges --source-addr-prefixes --dest-addr-prefixes + User-Agent: + - AZURECLI/2.49.0 azsdk-python-mgmt-servicefabricmanagedclusters/1.0.0 Python/3.9.13 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastasia/managedclusteroperationresults/a4b20004-1642-44da-9c51-c3cd49a6099e?api-version=2021-05-01 + response: + body: + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.ServiceFabric/managedClusters/sfrp-cli-000002\",\r\n + \ \"type\": \"Microsoft.ServiceFabric/managedclusters\",\r\n \"location\": + \"eastasia\",\r\n \"name\": \"sfrp-cli-000002\",\r\n \"tags\": {\r\n \"key1\": + \"******\",\r\n \"key2\": \"******\"\r\n },\r\n \"systemData\": {\r\n + \ \"createdBy\": \"mwesigwaguma@microsoft.com\",\r\n \"createdByType\": + \"User\",\r\n \"createdAt\": \"2023-06-23T21:48:31.262379+00:00\",\r\n + \ \"lastModifiedBy\": \"mwesigwaguma@microsoft.com\",\r\n \"lastModifiedByType\": + \"User\",\r\n \"lastModifiedAt\": \"2023-06-23T22:10:39.562597+00:00\"\r\n + \ },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"clusterId\": \"f4725b4d-a9cf-4b09-954e-7fe49aa4d9f9\",\r\n + \ \"clusterState\": \"Ready\",\r\n \"clusterCodeVersion\": \"9.1.1833.9590\",\r\n + \ \"clusterUpgradeMode\": \"Automatic\",\r\n \"isPrivateClusterCodeVersion\": + false,\r\n \"clusterUpgradeCadence\": \"Wave0\",\r\n \"adminUserName\": + \"vmadmin\",\r\n \"dnsName\": \"sfrp-cli-000002\",\r\n \"fqdn\": \"sfrp-cli-000002.eastasia.cloudapp.azure.com\",\r\n + \ \"ipv4Address\": \"20.239.191.44\",\r\n \"clusterCertificateThumbprints\": + [\r\n \"77F879D5CF5DBEAE7A4F764D445C2DBBE265251D\"\r\n ],\r\n \"clientConnectionPort\": + 19000,\r\n \"httpGatewayConnectionPort\": 19080,\r\n \"allowRdpAccess\": + false,\r\n \"networkSecurityRules\": [\r\n {\r\n \"name\": + \"NSR-000004\",\r\n \"description\": \"NSR-description000005\",\r\n + \ \"protocol\": \"*\",\r\n \"sourcePortRanges\": [\r\n \"1-1000\",\r\n + \ \"1122-65535\"\r\n ],\r\n \"destinationPortRanges\": + [\r\n \"1-1900\",\r\n \"2200-65535\"\r\n ],\r\n \"sourceAddressPrefixes\": + [\r\n \"167.220.242.0/27\",\r\n \"167.220.0.0/23\",\r\n + \ \"131.107.132.16/28\",\r\n \"167.220.81.128/26\"\r\n ],\r\n + \ \"destinationAddressPrefixes\": [\r\n \"194.69.104.0/25\",\r\n + \ \"194.69.119.64/26\",\r\n \"167.220.249.128/26\",\r\n \"255.255.255.255/32\"\r\n + \ ],\r\n \"access\": \"allow\",\r\n \"priority\": 1200,\r\n + \ \"direction\": \"inbound\"\r\n }\r\n ],\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: + - '2352' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 23 Jun 2023 22:11: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py index 7cda330e50e..bcab8850e5c 100644 --- a/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py +++ b/src/azure-cli/azure/cli/command_modules/servicefabric/tests/latest/test_sf_managed_cluster.py @@ -46,6 +46,46 @@ def test_basic_cluster(self): with self.assertRaisesRegex(SystemExit, '3'): self.cmd('az sf managed-cluster show -g {rg} -c {cluster_name}') + @ResourceGroupPreparer() + def test_network_security_rule(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), + 'tags': "key1=value1 key2=value2", + 'name': self.create_random_name('NSR-', 10), + 'access': 'allow', + 'description': self.create_random_name('NSR-description', 30), + 'direction': 'inbound', + 'protocol': 'any', + 'priority': 1200, + 'source_port_ranges': '1-1000 1122-65535', + 'dest_port_ranges': '1-1900 2200-65535', + 'source_addr_prefixes': '167.220.242.0/27 167.220.0.0/23 131.107.132.16/28 167.220.81.128/26', + 'dest_addr_prefixes': '194.69.104.0/25 194.69.119.64/26 167.220.249.128/26 255.255.255.255/32' + }) + + cluster = self.cmd('az sf managed-cluster create -g {rg} -c {cluster_name} -l {loc} --cert-thumbprint {cert_tp} --cert-is-admin --admin-password {vm_password} --tags {tags}', + checks=[self.check('provisioningState', 'Succeeded'), + self.check('clusterState', 'WaitingForNodes')]).get_output_in_json() + + self.cmd('az sf managed-node-type create -g {rg} -c {cluster_name} -n pnt --instance-count 5 --primary', + checks=[self.check('provisioningState', 'Succeeded')]) + + self.cmd('az sf managed-cluster network-security-rule add -g {rg} -c {cluster_name} ' + '--name {name} --access {access} --description {description} --direction {direction} --protocol {protocol} --priority {priority} --source-port-ranges {source_port_ranges} --dest-port-ranges {dest_port_ranges}' + ' --source-addr-prefixes {source_addr_prefixes} --dest-addr-prefixes {dest_addr_prefixes}', + checks=[self.check('provisioningState', 'Succeeded'), + self.check('networkSecurityRules[0].destinationAddressPrefixes[0]', '194.69.104.0/25'), + self.check('networkSecurityRules[0].sourceAddressPrefixes[1]', '167.220.0.0/23'), + self.check('networkSecurityRules[0].protocol', '*'), + self.check('networkSecurityRules[0].direction', 'inbound'), + self.check('networkSecurityRules[0].access', 'allow'), + self.check('networkSecurityRules[0].priority', 1200), + self.check('networkSecurityRules[0].sourcePortRanges[0]', '1-1000'), + self.check('networkSecurityRules[0].destinationPortRanges[1]', '2200-65535')]) + @ResourceGroupPreparer() def test_node_type_operation(self): self.kwargs.update({