diff --git a/src/azure-cli-core/azure/cli/core/profiles/_shared.py b/src/azure-cli-core/azure/cli/core/profiles/_shared.py index 42d827d50ae..b7a2336ecd5 100644 --- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py +++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py @@ -238,7 +238,7 @@ def default_api_version(self): ResourceType.MGMT_APPSERVICE: '2021-03-01', ResourceType.MGMT_IOTHUB: '2021-07-02', ResourceType.MGMT_IOTDPS: '2021-10-15', - ResourceType.MGMT_IOTCENTRAL: '2018-09-01', + ResourceType.MGMT_IOTCENTRAL: '2021-11-01-preview', ResourceType.MGMT_ARO: '2022-04-01', ResourceType.MGMT_DATABOXEDGE: '2021-02-01-preview', ResourceType.MGMT_CUSTOMLOCATION: '2021-03-15-preview', diff --git a/src/azure-cli/azure/cli/command_modules/iot/_help.py b/src/azure-cli/azure/cli/command_modules/iot/_help.py index e712718514e..69d1ddaae73 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/_help.py +++ b/src/azure-cli/azure/cli/command_modules/iot/_help.py @@ -959,3 +959,129 @@ text: > az iot central app identity remove --name my-iotc-app --resource-group MyResourceGroup --system-assigned """ + +helps['iot central app private-endpoint-connection'] = """ +type: group +short-summary: Manage private endpoint connection of IoT Central application. +""" + +helps['iot central app private-endpoint-connection approve'] = """ +type: command +short-summary: Approve a private endpoint connection request for an IoT Central application. +examples: + - name: Approve a private endpoint connection request for an IoT Central application by ID. + text: | + az iot central app private-endpoint-connection approve --id "/subscriptions/0000-0000-0000-0000/resourceGroups/MyResourceGroup/providers/Microsoft.IoTCentral/IoTApps/my-iotc-app/privateEndpointConnections/my-iotc-app.b56b5a95-0588-4f8b-b348-15db61590a6c" + - name: Approve a private endpoint connection request for an IoT Central application by ID. + text: | + id = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].id") + az iot central app private-endpoint-connection approve --id $id + - name: Approve a private endpoint connection request for an IoT Central application using account name and connection name. + text: | + az iot central app private-endpoint-connection approve -g myRg --account-name my-iotc-app --name myconnection + - name: Approve a private endpoint connection request for an IoT Central application using account name and connection name. + text: | + name = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].name") + az iot central app private-endpoint-connection approve -g myRg --account-name my-iotc-app --name $name +""" + +helps['iot central app private-endpoint-connection delete'] = """ +type: command +short-summary: Delete a private endpoint connection for an IoT Central application. +examples: + - name: Delete a private endpoint connection for an IoT Central application by ID. + text: | + az iot central app private-endpoint-connection delete --id "/subscriptions/0000-0000-0000-0000/resourceGroups/MyResourceGroup/providers/Microsoft.IoTCentral/IoTApps/my-iotc-app/privateEndpointConnections/my-iotc-app.b56b5a95-0588-4f8b-b348-15db61590a6c" + - name: Delete a private endpoint connection for an IoT Central application by ID. + text: | + id = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].id") + az iot central app private-endpoint-connection delete --id $id + - name: Delete a private endpoint connection for an IoT Central application using account name and connection name. + text: | + az iot central app private-endpoint-connection delete -g myRg --account-name my-iotc-app --name myconnection + - name: Delete a private endpoint connection for an IoT Central application using account name and connection name. + text: | + name = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].name") + az iot central app private-endpoint-connection delete -g myRg --account-name my-iotc-app --name $name +""" + +helps['iot central app private-endpoint-connection reject'] = """ +type: command +short-summary: Reject a private endpoint connection request for an IoT Central application. +examples: + - name: Reject a private endpoint connection request for an IoT Central application by ID. + text: | + az iot central app private-endpoint-connection reject --id "/subscriptions/0000-0000-0000-0000/resourceGroups/MyResourceGroup/providers/Microsoft.IoTCentral/IoTApps/my-iotc-app/privateEndpointConnections/my-iotc-app.b56b5a95-0588-4f8b-b348-15db61590a6c" + - name: Reject a private endpoint connection request for an IoT Central application by ID. + text: | + id = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].id") + az iot central app private-endpoint-connection reject --id $id + - name: Reject a private endpoint connection request for an IoT Central application app using account name and connection name. + text: | + az iot central app private-endpoint-connection reject -g myRg --account-name my-iotc-app --name myconnection + - name: Reject a private endpoint connection request for an IoT Central application using account name and connection name. + text: | + name = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].name") + az iot central app private-endpoint-connection reject -g myRg --account-name my-iotc-app --name $name +""" + +helps['iot central app private-endpoint-connection show'] = """ +type: command +short-summary: Show details of a private endpoint connection request for an IoT Central application. +examples: + - name: Show details of a private endpoint connection request for an IoT Central application by ID. + text: | + az iot central app private-endpoint-connection show --id "/subscriptions/0000-0000-0000-0000/resourceGroups/MyResourceGroup/providers/Microsoft.IoTCentral/IoTApps/my-iotc-app/privateEndpointConnections/my-iotc-app.b56b5a95-0588-4f8b-b348-15db61590a6c" + - name: Show details of a private endpoint connection request for an IoT Central application by ID. + text: | + id = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].id") + az iot central app private-endpoint-connection show --id $id + - name: Show details of a private endpoint connection request for an IoT Central application using account name and connection name. + text: | + az iot central app private-endpoint-connection show -g myRg --account-name my-iotc-app --name myconnection + - name: Show details of a private endpoint connection request for an IoT Central application using account name and connection name. + text: | + name = (az iot central app show -n my-iotc-app --query "privateEndpointConnections[0].name") + az iot central app private-endpoint-connection show -g myRg --account-name my-iotc-app --name $name +""" + +helps['iot central app private-endpoint-connection list'] = """ +type: command +short-summary: List all of the private endpoint connections for an IoT Central application. +examples: + - name: List all of the private endpoint connections in the IoT Central application given the resource group and application name. + text: | + az iot central app private-endpoint-connection list -g MyResourceGroup --account-name my-iotc-app + - name: List all of the private endpoint connections in the IoT Central application given a connection id + text: | + az iot central app private-endpoint-connection list --id "/subscriptions/0000-0000-0000-0000/resourceGroups/MyResourceGroup/providers/Microsoft.IoTCentral/IoTApps/my-iotc-app/privateEndpointConnections/my-iotc-app.b56b5a95-0588-4f8b-b348-15db61590a6c" +""" + +helps['iot central app private-link-resource'] = """ +type: group +short-summary: Manage an IoT Central application private link resources. +""" + +helps['iot central app private-link-resource list'] = """ +type: command +short-summary: List all of the IoT Central application private link resources in the specified account. +examples: + - name: List all of the private link resources in the IoT Central application given the resource group and application name. + text: | + az iot central app private-link-resource list -g MyResourceGroup --n my-iotc-app + - name: List all of the private link resources in the IoT Central application given a connection id + text: | + az iot central app private-link-resource list --id PrivateLinkResourceID +""" + +helps['iot central app private-link-resource show'] = """ +type: command +short-summary: Show details of a private link resource in the specified IoT Central application. +examples: + - name: Show details of the private link resources in the IoT Central application given the resource group application name and group id. + text: | + az iot central app private-link-resource show -g MyResourceGroup --n my-iotc-app --group-id iotApp + - name: Show details of the private link resources in the IoT Central application given a connection id + text: | + az iot central app private-link-resource show --id PrivateLinkResourceID +""" diff --git a/src/azure-cli/azure/cli/command_modules/iot/_params.py b/src/azure-cli/azure/cli/command_modules/iot/_params.py index 64c45650f97..d81a7f5aa1c 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/_params.py +++ b/src/azure-cli/azure/cli/command_modules/iot/_params.py @@ -5,7 +5,6 @@ from argcomplete.completers import FilesCompleter from knack.arguments import CLIArgumentType - from azure.cli.core.commands.parameters import (get_location_type, file_type, get_resource_name_completion_list, @@ -22,18 +21,18 @@ EncodingFormat, RenewKeyType, AuthenticationType) -from .custom import KeyType, SimpleAccessRights -from ._validators import (validate_policy_permissions, - validate_retention_days, - validate_fileupload_notification_max_delivery_count, - validate_fileupload_notification_ttl, - validate_fileupload_sas_ttl, - validate_feedback_ttl, - validate_feedback_lock_duration, - validate_fileupload_notification_lock_duration, - validate_feedback_max_delivery_count, - validate_c2d_max_delivery_count, - validate_c2d_ttl) +from azure.cli.command_modules.iot.custom import KeyType, SimpleAccessRights +from azure.cli.command_modules.iot._validators import (validate_policy_permissions, + validate_retention_days, + validate_fileupload_notification_max_delivery_count, + validate_fileupload_notification_ttl, + validate_fileupload_sas_ttl, + validate_feedback_ttl, + validate_feedback_lock_duration, + validate_fileupload_notification_lock_duration, + validate_feedback_max_delivery_count, + validate_c2d_max_delivery_count, + validate_c2d_ttl) hub_name_type = CLIArgumentType( @@ -405,3 +404,72 @@ def load_arguments(self, _): # pylint: disable=too-many-statements with self.argument_context('iot central app identity show') as c: c.argument('app_name', app_name_type, options_list=['--name', '-n']) + + with self.argument_context('iot central app private-endpoint-connection') as c: + c.argument('private_endpoint_connection_name', options_list=['--name', '-n'], + help='The name of the private endpoint connection associated with IoT Central application. ' + 'Required if --id is not specified') + c.argument('account_name', app_name_type, + help='Name of the IoT Central application. Required if --id is not specified') + c.argument('resource_group_name', + help='The resource group name of specified IoT Central application. ' + 'Required if --id is not specified', options_list=['--resource-group', '-g']) + + for item in ['approve', 'reject']: + with self.argument_context('iot central app private-endpoint-connection {}'.format(item)) as c: + c.extra('connection_id', options_list=['--id'], + help='The ID of the private endpoint connection associated with the IoT Central application. ' + 'If --account-name --resource-group/-g and --name/-n are specified, this should be omitted.') + c.extra('description', options_list=['--description'], + help='Comments for the {} operation.'.format(item)) + + with self.argument_context('iot central app private-endpoint-connection delete') as c: + c.argument('private_endpoint_connection_name', options_list=['--name', '-n'], + help='The name of the private endpoint connection associated with IoT Central application. ' + 'Required if --id is not specified') + c.argument('account_name', app_name_type, + help='Name of the IoT Central application. Required if --id is not specified') + c.argument('resource_group_name', + help='The resource group name of specified IoT Central application. ' + 'Required if --id is not specified', options_list=['--resource-group', '-g']) + c.extra('connection_id', options_list=['--id'], + help='The ID of the private endpoint connection associated with the IoT Central application. ' + 'If --account-name --resource-group/-g and --name/-n are specified, this should be omitted.') + + with self.argument_context('iot central app private-endpoint-connection show') as c: + c.argument('private_endpoint_connection_name', options_list=['--name', '-n'], + help='The name of the private endpoint connection associated with IoT Central application. ' + 'Required if --id is not specified') + c.argument('account_name', app_name_type, + help='Name of the IoT Central application. Required if --id is not specified') + c.argument('resource_group_name', + help='The resource group name of specified IoT Central application. ' + 'Required if --id is not specified', options_list=['--resource-group', '-g']) + c.extra('connection_id', options_list=['--id'], + help='The ID of the private endpoint connection associated with the IoT Central application. ' + 'If --account-name --resource-group/-g and --name/-n are specified, this should be omitted.') + + with self.argument_context('iot central app private-endpoint-connection list') as c: + c.argument('account_name', app_name_type, + help='Name of the IoT Central application. Required if --id is not specified') + c.argument('resource_group_name', help='Name of resource group. ' + 'If provided, --name must be provided too', options_list=['--resource-group', '-g']) + c.extra('connection_id', help='ID of the resource', options_list=['--id']) + + with self.argument_context('iot central app private-link-resource list') as c: + c.argument('name', help='Name of the resource. ' + 'If provided, --type and --resource-group must be provided too', options_list=['--name', '-n']) + c.argument('resource_group_name', help='Name of resource group. ' + 'If provided, --name and --type must be provided too', options_list=['--resource-group', '-g']) + c.argument('source_type', help='Type of the resource. ' + 'If provided, --name and --resource-group must be provided too', options_list=['--type']) + c.extra('connection_id', help='ID of the resource', options_list=['--id']) + + with self.argument_context('iot central app private-link-resource show') as c: + c.argument('name', help='Name of the resource. ' + 'If provided, --type and --resource-group must be provided too', options_list=['--name', '-n']) + c.argument('resource_group_name', help='Name of resource group. ' + 'If provided, --name and --type must be provided too', options_list=['--resource-group', '-g']) + c.argument('group_id', help='Name of the private link resource. ' + 'If provided, --name and --type must be provided too', options_list=['--group-id']) + c.extra('connection_id', help='ID of the resource', options_list=['--id']) diff --git a/src/azure-cli/azure/cli/command_modules/iot/_validators.py b/src/azure-cli/azure/cli/command_modules/iot/_validators.py index 58bea3a8b00..675804ddb0d 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/iot/_validators.py @@ -4,8 +4,8 @@ # -------------------------------------------------------------------------------------------- from argparse import ArgumentError -from azure.cli.core.azclierror import InvalidArgumentValueError -from .custom import SimpleAccessRights +from azure.cli.core.azclierror import InvalidArgumentValueError, ArgumentUsageError +from azure.cli.command_modules.iot.custom import SimpleAccessRights, iot_central_app_get def validate_policy_permissions(ns): @@ -82,3 +82,18 @@ def validate_c2d_ttl(ns): ns.c2d_ttl not in range(1, 49, 1)): raise ArgumentError(None, 'Please specify the default time from 1 to 48 hours to live for cloud-to-device' ' messages in the device queue.') + + +def validate_private_endpoint_connection_id(cmd, namespace): + ns = namespace + if ns.connection_id: + id_parts = ns.connection_id.split('/') + ns.private_endpoint_connection_name = id_parts[-1] + ns.account_name = id_parts[-3] + ns.resource_group_name = id_parts[-7] + del ns.connection_id + if ns.account_name and not ns.resource_group_name: + ns.resource_group_name = iot_central_app_get(cmd.cli_ctx, ns.account_name).resourceGroup + + if not all([ns.account_name, ns.resource_group_name, ns.private_endpoint_connection_name]): + raise ArgumentUsageError('incorrect usage: [--id ID | --name NAME --account-name NAME]') diff --git a/src/azure-cli/azure/cli/command_modules/iot/commands.py b/src/azure-cli/azure/cli/command_modules/iot/commands.py index 7089046ed18..329535b0d0a 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/commands.py +++ b/src/azure-cli/azure/cli/command_modules/iot/commands.py @@ -4,10 +4,10 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core.commands import LongRunningOperation, CliCommandType -from ._client_factory import iot_hub_service_factory -from ._client_factory import iot_service_provisioning_factory -from ._client_factory import iot_central_service_factory -from ._utils import _dps_certificate_response_transform +from azure.cli.command_modules.iot._client_factory import (iot_hub_service_factory, + iot_central_service_factory, + iot_service_provisioning_factory) +from azure.cli.command_modules.iot._utils import _dps_certificate_response_transform CS_DEPRECATION_INFO = 'IoT Extension (azure-iot) connection-string command (az iot hub connection-string show)' @@ -48,7 +48,17 @@ def load_command_table(self, _): # pylint: disable=too-many-statements update_custom_util = CliCommandType(operations_tmpl='azure.cli.command_modules.iot.custom#{}') iot_central_sdk = CliCommandType( - operations_tmpl='azure.mgmt.iotcentral.operations#IoTCentaralOperations.{}' + operations_tmpl='azure.mgmt.iotcentral.operations#IoTCentralOperations.{}' + ) + + private_endpoint_sdk = CliCommandType( + operations_tmpl='azure.mgmt.iotcentral.operations#PrivateEndpointConnectionsOperations.{}', + # client_factory=cf_private_endpoint, + ) + + private_link_resource_sdk = CliCommandType( + operations_tmpl='azure.mgmt.iotcentral.operations#PrivateLinksOperations.{}', + # client_factory=cf_private_link, ) # iot dps commands @@ -165,6 +175,7 @@ def load_command_table(self, _): # pylint: disable=too-many-statements min_api="2019-07-01-preview") as g: g.custom_show_command('show', 'iot_hub_devicestream_show') + # iot central commands with self.command_group('iot central app', iot_central_sdk, client_factory=iot_central_service_factory) as g: g.custom_command('create', 'iot_central_app_create', supports_no_wait=True) g.custom_command('list', 'iot_central_app_list') @@ -175,3 +186,24 @@ def load_command_table(self, _): # pylint: disable=too-many-statements g.custom_command('identity assign', 'iot_central_app_assign_identity') g.custom_command('identity remove', 'iot_central_app_remove_identity') g.custom_show_command('identity show', 'iot_central_app_show_identity') + + with self.command_group('iot central app private-endpoint-connection', + private_endpoint_sdk, + client_factory=iot_central_service_factory) as g: + from azure.cli.command_modules.iot._validators import validate_private_endpoint_connection_id + g.custom_command('delete', 'delete_private_endpoint_connection', confirmation=True, + validator=validate_private_endpoint_connection_id) + g.custom_show_command('show', 'show_private_endpoint_connection', + validator=validate_private_endpoint_connection_id) + g.custom_command('approve', 'approve_private_endpoint_connection', + validator=validate_private_endpoint_connection_id) + g.custom_command('reject', 'reject_private_endpoint_connection', + validator=validate_private_endpoint_connection_id) + g.custom_command('list', 'list_private_endpoint_connection') + + with self.command_group('iot central app private-link-resource', private_link_resource_sdk, + client_factory=iot_central_service_factory) as g: + from azure.cli.core.commands.transform import gen_dict_to_list_transform + g.custom_command('list', 'list_private_link_resource', + transform=gen_dict_to_list_transform(key="value")) + g.custom_show_command('show', 'get_private_link_resource') diff --git a/src/azure-cli/azure/cli/command_modules/iot/custom.py b/src/azure-cli/azure/cli/command_modules/iot/custom.py index 403f61bac1f..678605da124 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/custom.py +++ b/src/azure-cli/azure/cli/command_modules/iot/custom.py @@ -67,9 +67,9 @@ App) from azure.cli.command_modules.iot._constants import SYSTEM_ASSIGNED_IDENTITY from azure.cli.command_modules.iot.shared import EndpointType, EncodingFormat, RenewKeyType, AuthenticationType, IdentityType -from ._client_factory import resource_service_factory -from ._client_factory import iot_hub_service_factory -from ._utils import open_certificate, generate_key +from azure.cli.command_modules.iot._client_factory import resource_service_factory +from azure.cli.command_modules.iot._client_factory import iot_hub_service_factory +from azure.cli.command_modules.iot._utils import open_certificate, generate_key logger = get_logger(__name__) @@ -1358,7 +1358,7 @@ def iot_central_app_list(client, resource_group_name=None): def iot_central_app_update(client, app_name, parameters, resource_group_name): - return client.apps.begin_update(resource_group_name, app_name, parameters) + return client.apps.begin_create_or_update(resource_group_name, app_name, parameters) def iot_central_app_assign_identity(client, app_name, system_assigned=False, resource_group_name=None): @@ -1423,6 +1423,161 @@ def _get_iot_central_app_by_name(client, app_name): return target_app +def get_private_link_resource(client, name=None, connection_id=None, resource_group_name=None, group_id=None): + + if resource_group_name and name and group_id: + return client.private_links.get(resource_group_name=resource_group_name, + resource_name=name, + group_id=group_id) + if connection_id: + id_list = connection_id.split('/') + resource_group_name = id_list[id_list.index('resourceGroups') + 1] + name = id_list[id_list.index('iotApps') + 1] + group_id = id_list[id_list.index('privateLinkResources') + 1] + return client.private_links.get(resource_group_name=resource_group_name, + resource_name=name, + group_id=group_id) + + raise RequiredArgumentMissingError( + "Must provide private link resource ID or resource name, resource group, and group id.") + + +def list_private_link_resource(client, app_name=None, connection_id=None, resource_group_name=None, source_type=None): + if app_name and resource_group_name and source_type: + if source_type.lower() != 'microsoft.iotcentral/iotapps': + raise InvalidArgumentValueError( + "Resource type must be Microsoft.IoTCentral/iotApps") + elif connection_id: + id_list = connection_id.split('/') + if id_list[id_list.index('providers') + 1].lower() != 'microsoft.iotcentral': + raise InvalidArgumentValueError( + "Type must be Microsoft.IoTCentral/iotApps") + resource_group_name = id_list[id_list.index('resourceGroups') + 1] + app_name = id_list[id_list.index('iotApps') + 1] + else: + raise RequiredArgumentMissingError( + "Must provide private endpoint connection resource ID or resource name, resource group, and resource type.") + return client.private_links.list(resource_group_name, app_name) + + +def show_private_endpoint_connection(client, resource_group_name=None, connection_id=None, account_name=None, private_endpoint_connection_name=None): + + return get_private_endpoint_connection(client=client, + resource_group_name=resource_group_name, + connection_id=connection_id, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + return_args=False) + + +def list_private_endpoint_connection(client, resource_group_name=None, connection_id=None, account_name=None): + if connection_id: + id_list = connection_id.split('/') + if id_list[id_list.index('providers') + 1].lower() != 'microsoft.iotcentral': + raise InvalidArgumentValueError( + "Type must be Microsoft.IoTCentral/iotApps") + resource_group_name = id_list[id_list.index('resourceGroups') + 1] + account_name = id_list[id_list.index('iotApps') + 1] + + if resource_group_name is None or account_name is None: + raise RequiredArgumentMissingError( + "Must provide private endpoint connection resource ID or resource name, resource group, and resource type.") + + return client.private_endpoint_connections.list(resource_group_name, account_name) + + +def get_private_endpoint_connection(client, resource_group_name=None, connection_id=None, account_name=None, private_endpoint_connection_name=None, return_args=False): + + if resource_group_name and account_name and private_endpoint_connection_name: + output = client.private_endpoint_connections.get(resource_group_name=resource_group_name, + resource_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name) + if return_args is False: + return output + return [output, resource_group_name, account_name, private_endpoint_connection_name] + if connection_id: + id_list = connection_id.split('/') + resource_group_name = id_list[id_list.index('resourceGroups') + 1] + account_name = id_list[id_list.index('iotApps') + 1] + private_endpoint_connection_name = id_list[id_list.index('privateEndpointConnections') + 1] + output = client.private_endpoint_connections.get(resource_group_name=resource_group_name, + resource_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name) + if return_args is False: + return output + return [output, resource_group_name, account_name, private_endpoint_connection_name] + raise RequiredArgumentMissingError( + "Account name, resource group, and private endpoint connection name are required unless id is specified.") + + +def _update_private_endpoint_connection_status(client, resource_group_name, account_name, connection_id, private_endpoint_connection_name, is_approved=True, description=None): # pylint: disable=unused-argument + from azure.core.exceptions import HttpResponseError + getInfoArr = get_private_endpoint_connection(client, + resource_group_name=resource_group_name, + connection_id=connection_id, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + return_args=True) + private_endpoint_connection = getInfoArr[0] + rg = getInfoArr[1] + acc_name = getInfoArr[2] + pec_name = getInfoArr[3] + old_status = private_endpoint_connection.private_link_service_connection_state.status + new_status = "Approved" if is_approved else "Rejected" + private_endpoint_connection.private_link_service_connection_state.status = new_status + private_endpoint_connection.private_link_service_connection_state.description = description + try: + return client.private_endpoint_connections.begin_create(resource_group_name=rg, + resource_name=acc_name, + private_endpoint_connection=private_endpoint_connection, + private_endpoint_connection_name=pec_name) + except HttpResponseError as ex: + if ex.response.status_code == 400: + if new_status == "Approved" and old_status == "Rejected": + raise CLIError(ex.response, "You cannot approve the connection request after rejection. Please create " + "a new connection for approval.") + if new_status == "Approved" and old_status == "Approved": + raise CLIError(ex.response, "Your connection is already approved. No need to approve again.") + raise ex + + +def approve_private_endpoint_connection(client, resource_group_name=None, account_name=None, private_endpoint_connection_name=None, connection_id=None, description=None): + return _update_private_endpoint_connection_status(client, + resource_group_name=resource_group_name, + account_name=account_name, + connection_id=connection_id, + private_endpoint_connection_name=private_endpoint_connection_name, + description=description) + + +def reject_private_endpoint_connection(client, resource_group_name=None, account_name=None, private_endpoint_connection_name=None, connection_id=None, description=None): + return _update_private_endpoint_connection_status(client, + resource_group_name=resource_group_name, + account_name=account_name, + connection_id=connection_id, + is_approved=False, + private_endpoint_connection_name=private_endpoint_connection_name, + description=description) + + +def delete_private_endpoint_connection(client, resource_group_name=None, account_name=None, private_endpoint_connection_name=None, connection_id=None): + + getInfoArr = get_private_endpoint_connection(client, + resource_group_name=resource_group_name, + connection_id=connection_id, + account_name=account_name, + private_endpoint_connection_name=private_endpoint_connection_name, + return_args=True) + rg = getInfoArr[1] + acc_name = getInfoArr[2] + pec_name = getInfoArr[3] + # private_endpoint_connection.private_link_service_connection_state.status = new_status + # private_endpoint_connection.private_link_service_connection_state.description = description + return client.private_endpoint_connections.begin_delete(resource_group_name=rg, + resource_name=acc_name, + private_endpoint_connection_name=pec_name) + + def _process_fileupload_args( default_storage_endpoint, fileupload_storage_connectionstring=None, diff --git a/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_app.yaml b/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_app.yaml index 4c6ad1b1c35..33e5570dc72 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_app.yaml +++ b/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_app.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -n -g --subdomain --sku User-Agent: - - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-03T19:41:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-19T20:55:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:41:54 GMT + - Thu, 19 May 2022 20:55:14 GMT expires: - '-1' pragma: @@ -60,23 +60,23 @@ interactions: ParameterSetName: - -n -g --subdomain --sku User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"14d3ba88-5697-45f3-ac5e-53d9a06eea6a","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Creating","applicationId":"3bd6b29b-b840-4487-af88-2b3b007f4b14","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/65e7f39d-7f35-482b-8463-82f7e90d69f0?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '490' + - '691' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:42:03 GMT - etag: - - '"0f008eae-0000-0100-0000-627185870000"' + - Thu, 19 May 2022 20:55:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains x-cache: @@ -90,13 +90,13 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 35zegsqb.0 + - c630h54z.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-ms-ratelimit-remaining-subscription-writes: - '1199' x-msedge-ref: - - 'Ref A: 84C25928542C465DB8DD745B143F4926 Ref B: CO1EDGE1408 Ref C: 2022-05-03T19:41:56Z' + - 'Ref A: 0EBC0BACF66B44ADB59EB58205B48D46 Ref B: BY3EDGE0313 Ref C: 2022-05-19T20:55:14Z' x-xss-protection: - 1; mode=block status: @@ -116,23 +116,79 @@ interactions: ParameterSetName: - -n -g --subdomain --sku User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/65e7f39d-7f35-482b-8463-82f7e90d69f0?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:31 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 8zyyvx2k.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: E85113F8B45540A297B8A69B72ED6913 Ref B: BY3EDGE0313 Ref C: 2022-05-19T20:55:31Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app create + Connection: + - keep-alive + ParameterSetName: + - -n -g --subdomain --sku + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"14d3ba88-5697-45f3-ac5e-53d9a06eea6a","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"3bd6b29b-b840-4487-af88-2b3b007f4b14","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '490' + - '692' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:42:32 GMT + - Thu, 19 May 2022 20:55:31 GMT etag: - - W/"0f008eae-0000-0100-0000-627185870000" + - W/"50039490-0000-0100-0000-6286aeba0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -150,11 +206,11 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 684wdabz.0 + - c04rphdn.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: ADC9529FF2004D01A38F799F185130DD Ref B: CO1EDGE1408 Ref C: 2022-05-03T19:42:33Z' + - 'Ref A: A32F97CA5DD04D10920CB11F4B095210 Ref B: BY3EDGE0313 Ref C: 2022-05-19T20:55:31Z' x-xss-protection: - 1; mode=block status: @@ -174,12 +230,12 @@ interactions: ParameterSetName: - -n -g --subdomain --template --display-name --sku User-Agent: - - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-03T19:41:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-19T20:55:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -188,7 +244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:42:33 GMT + - Thu, 19 May 2022 20:55:31 GMT expires: - '-1' pragma: @@ -222,24 +278,24 @@ interactions: ParameterSetName: - -n -g --subdomain --template --display-name --sku User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"0400c66a-786e-46f9-84a2-9f6fb5ccf286","displayName":"My - Custom App Display Name","subdomain":"iotc-cli-test000002-template","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST1"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Creating","applicationId":"ce2f6035-195d-4c39-b5d8-9a112bca5af1","displayName":"My + Custom App Display Name","subdomain":"iotc-cli-test000002-template","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST1"},"identity":{"type":"None"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/61b643bf-e516-4891-b2ec-179b96188800?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '524' + - '725' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:42:42 GMT - etag: - - '"0200faf5-0000-0100-0000-627185ad0000"' + - Thu, 19 May 2022 20:55:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains x-cache: @@ -253,13 +309,13 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 106dsa2c.0 + - b88svvlf.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-ms-ratelimit-remaining-subscription-writes: - '1199' x-msedge-ref: - - 'Ref A: 3A212A359ADE42B4B4AAAE7E7C177B30 Ref B: CO1EDGE1516 Ref C: 2022-05-03T19:42:35Z' + - 'Ref A: 08DDEC9DBE7144B4B4DD50BCCF50BEB6 Ref B: BY3EDGE0307 Ref C: 2022-05-19T20:55:32Z' x-xss-protection: - 1; mode=block status: @@ -279,24 +335,80 @@ interactions: ParameterSetName: - -n -g --subdomain --template --display-name --sku User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/61b643bf-e516-4891-b2ec-179b96188800?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:45 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 3qf935ws.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 3C537B1B8C214D809BACC9F75899674D Ref B: BY3EDGE0307 Ref C: 2022-05-19T20:55:45Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app create + Connection: + - keep-alive + ParameterSetName: + - -n -g --subdomain --template --display-name --sku + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"0400c66a-786e-46f9-84a2-9f6fb5ccf286","displayName":"My - Custom App Display Name","subdomain":"iotc-cli-test000002-template","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST1"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"ce2f6035-195d-4c39-b5d8-9a112bca5af1","displayName":"My + Custom App Display Name","subdomain":"iotc-cli-test000002-template","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST1"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '524' + - '726' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:11 GMT + - Thu, 19 May 2022 20:55:45 GMT etag: - - W/"0200faf5-0000-0100-0000-627185ad0000" + - W/"50038a93-0000-0100-0000-6286aec80000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -314,11 +426,11 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 6hs2bfua.0 + - aee60c3s.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: CF3657A0A7DB4A0E8C3C70058B92F701 Ref B: CO1EDGE1516 Ref C: 2022-05-03T19:43:12Z' + - 'Ref A: 747CA1A1D2CF4B7183AFB6F6E01FB2E0 Ref B: BY3EDGE0307 Ref C: 2022-05-19T20:55:45Z' x-xss-protection: - 1; mode=block status: @@ -338,12 +450,12 @@ interactions: ParameterSetName: - -n -g --subdomain --sku --mi-system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-03T19:41:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-19T20:55:12Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -352,7 +464,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:12 GMT + - Thu, 19 May 2022 20:55:45 GMT expires: - '-1' pragma: @@ -385,23 +497,23 @@ interactions: ParameterSetName: - -n -g --subdomain --sku --mi-system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"1561035d-a39a-46a7-b870-7841815db5d5"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Creating","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/d4499be1-a0a3-4142-903d-9a35fc02c959?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '615' + - '816' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:22 GMT - etag: - - '"35012286-0000-0100-0000-627185d80000"' + - Thu, 19 May 2022 20:55:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains x-cache: @@ -415,13 +527,13 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 277drbel.0 + - 3v3r0prx.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-ms-ratelimit-remaining-subscription-writes: - '1199' x-msedge-ref: - - 'Ref A: 7216478254674791A9F9E9AB32B40DB9 Ref B: CO1EDGE1514 Ref C: 2022-05-03T19:43:15Z' + - 'Ref A: 673DB708828B4A4EBE320EB4B55E9AC5 Ref B: BY3EDGE0508 Ref C: 2022-05-19T20:55:47Z' x-xss-protection: - 1; mode=block status: @@ -441,29 +553,27 @@ interactions: ParameterSetName: - -n -g --subdomain --sku --mi-system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/d4499be1-a0a3-4142-903d-9a35fc02c959?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"1561035d-a39a-46a7-b870-7841815db5d5"}}' + string: '{"status":"Succeeded"}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '615' + - '22' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:52 GMT - etag: - - W/"35012286-0000-0100-0000-627185d80000" + - Thu, 19 May 2022 20:56:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -475,11 +585,11 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 4zjou3z5.0 + - 5yq32cu.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: 1D81F42D310C4BBCB62DFDC984DC6C13 Ref B: CO1EDGE1514 Ref C: 2022-05-03T19:43:52Z' + - 'Ref A: 390E7305645E4BC3B2EB277658F1094B Ref B: BY3EDGE0508 Ref C: 2022-05-19T20:56:01Z' x-xss-protection: - 1; mode=block status: @@ -489,34 +599,33 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - iot central app update + - iot central app create Connection: - keep-alive ParameterSetName: - - -n -g --set + - -n -g --subdomain --sku --mi-system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"0400c66a-786e-46f9-84a2-9f6fb5ccf286","displayName":"My - Custom App Display Name","subdomain":"iotc-cli-test000002-template","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST1"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '524' + - '817' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:52 GMT + - Thu, 19 May 2022 20:56:00 GMT etag: - - W/"0200faf5-0000-0100-0000-627185ad0000" + - W/"50039c96-0000-0100-0000-6286aed70000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -534,20 +643,18 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 3zzuczo6.0 + - 17gmq0rc.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: B3A0DCC2FD6945549A8DA2209956CE6B Ref B: CO1EDGE1422 Ref C: 2022-05-03T19:43:53Z' + - 'Ref A: EEAAF0ED7F184BA39BB3B5D38FD6D74A Ref B: BY3EDGE0508 Ref C: 2022-05-19T20:56:01Z' x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"location": "westus", "tags": {}, "sku": {"name": "ST2"}, "identity": - {"type": "None"}, "properties": {"displayName": "iotc-cli-test000002update", - "subdomain": "iotc-cli-test000002update", "template": "iotc-pnp-preview@1.0.0"}}' + body: null headers: Accept: - application/json @@ -557,30 +664,27 @@ interactions: - iot central app update Connection: - keep-alive - Content-Length: - - '228' - Content-Type: - - application/json ParameterSetName: - -n -g --set User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"0400c66a-786e-46f9-84a2-9f6fb5ccf286","displayName":"iotc-cli-test000002update","subdomain":"iotc-cli-test000002update","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"ce2f6035-195d-4c39-b5d8-9a112bca5af1","displayName":"My + Custom App Display Name","subdomain":"iotc-cli-test000002-template","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST1"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '520' + - '726' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:56 GMT + - Thu, 19 May 2022 20:56:02 GMT etag: - - W/"020013f6-0000-0100-0000-627185fb0000" + - W/"50038a93-0000-0100-0000-6286aec80000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -596,51 +700,57 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodwestus01 x-iot-correlation: - - 1gmbktlj.0 + - 5ifkepsf.0 x-iot-version: - - 042822.0002-release - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - 050522.0001-release x-msedge-ref: - - 'Ref A: C09354B46B5E4969B9E511D5A97DCC5B Ref B: CO1EDGE1709 Ref C: 2022-05-03T19:43:55Z' + - 'Ref A: B6663AAA081B483A945C9EEF7E0D2335 Ref B: BY3EDGE0208 Ref C: 2022-05-19T20:56:02Z' x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: null + body: '{"tags": {}, "location": "westus", "sku": {"name": "ST2"}, "identity": + {"type": "None"}, "properties": {"displayName": "iotc-cli-test000002update", + "subdomain": "iotc-cli-test000002update", "template": "iotc-pnp-preview@1.0.0", + "publicNetworkAccess": "Enabled", "networkRuleSets": {"applyToDevices": false, + "applyToIoTCentral": false, "defaultAction": "Allow", "ipRules": []}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - iot central app show + - iot central app update Connection: - keep-alive + Content-Length: + - '377' + Content-Type: + - application/json ParameterSetName: - - -n -g + - -n -g --set User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"14d3ba88-5697-45f3-ac5e-53d9a06eea6a","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Updating","applicationId":"ce2f6035-195d-4c39-b5d8-9a112bca5af1","displayName":"iotc-cli-test000002update","subdomain":"iotc-cli-test000002update","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/71dcc14e-f659-4ff3-95b5-7d17034598a8?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '490' + - '721' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:57 GMT - etag: - - W/"0f008eae-0000-0100-0000-627185870000" + - Thu, 19 May 2022 20:56:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -656,13 +766,15 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodwestus01 x-iot-correlation: - - 2mllu77s.0 + - b8xn1kqy.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-writes: + - '1198' x-msedge-ref: - - 'Ref A: CCCEC671961E44389109559F2E165E1A Ref B: CO1EDGE1719 Ref C: 2022-05-03T19:43:57Z' + - 'Ref A: DEC693635F0E4F95B207ACE597C95AF7 Ref B: BY3EDGE0313 Ref C: 2022-05-19T20:56:02Z' x-xss-protection: - 1; mode=block status: @@ -672,39 +784,37 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - iot central app show + - iot central app update Connection: - keep-alive ParameterSetName: - - -n -g + - -n -g --set User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/71dcc14e-f659-4ff3-95b5-7d17034598a8?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"0400c66a-786e-46f9-84a2-9f6fb5ccf286","displayName":"iotc-cli-test000002update","subdomain":"iotc-cli-test000002update","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"status":"Succeeded"}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '520' + - '22' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:57 GMT - etag: - - W/"020013f6-0000-0100-0000-627185fb0000" + - Thu, 19 May 2022 20:56:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -716,11 +826,11 @@ interactions: x-iot-cluster: - iotcprodwestus01 x-iot-correlation: - - 4x7f4w0m.0 + - 1q71r1s.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: E756F8D50E49444AAE0B2E0259EBC168 Ref B: CO1EDGE1411 Ref C: 2022-05-03T19:43:57Z' + - 'Ref A: FA6ED02B95D64E348176E13CF831031C Ref B: BY3EDGE0313 Ref C: 2022-05-19T20:56:14Z' x-xss-protection: - 1; mode=block status: @@ -730,33 +840,33 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - iot central app identity show + - iot central app update Connection: - keep-alive ParameterSetName: - - -n -g + - -n -g --set User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"14d3ba88-5697-45f3-ac5e-53d9a06eea6a","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"ce2f6035-195d-4c39-b5d8-9a112bca5af1","displayName":"iotc-cli-test000002update","subdomain":"iotc-cli-test000002update","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '490' + - '722' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:58 GMT + - Thu, 19 May 2022 20:56:14 GMT etag: - - W/"0f008eae-0000-0100-0000-627185870000" + - W/"50033999-0000-0100-0000-6286aee50000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -772,13 +882,13 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodwestus01 x-iot-correlation: - - 1t7b3sec.0 + - paalo9g.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: 7D4B2F70C6344BC2A1A69B3321A50BFB Ref B: CO1EDGE1906 Ref C: 2022-05-03T19:43:58Z' + - 'Ref A: BAE2EF5B26834ADE97343BEF183E7C4C Ref B: BY3EDGE0313 Ref C: 2022-05-19T20:56:14Z' x-xss-protection: - 1; mode=block status: @@ -792,29 +902,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - iot central app identity assign + - iot central app show Connection: - keep-alive ParameterSetName: - - -n -g --system-assigned + - -n -g User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"1561035d-a39a-46a7-b870-7841815db5d5"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"3bd6b29b-b840-4487-af88-2b3b007f4b14","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '615' + - '692' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:43:59 GMT + - Thu, 19 May 2022 20:56:14 GMT etag: - - W/"35012286-0000-0100-0000-627185d80000" + - W/"50039490-0000-0100-0000-6286aeba0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -830,55 +940,49 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus01 + - iotcprodcentralus04 x-iot-correlation: - - 4gkwoumn.0 + - axmbveqh.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: 4C5749F61EB84879B058EBD89FF743F7 Ref B: CO1EDGE1420 Ref C: 2022-05-03T19:43:59Z' + - 'Ref A: F771FBE024574E4FB362DCE50379427E Ref B: DEN301000103011 Ref C: 2022-05-19T20:56:14Z' x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"location": "westus", "tags": {}, "sku": {"name": "ST2"}, "identity": - {"type": "SystemAssigned"}, "properties": {"displayName": "iotc-cli-test000002-mi", - "subdomain": "iotc-cli-test000002-mi", "template": "iotc-pnp-preview@1.0.0"}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - iot central app identity assign + - iot central app show Connection: - keep-alive - Content-Length: - - '232' - Content-Type: - - application/json ParameterSetName: - - -n -g --system-assigned + - -n -g User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"1561035d-a39a-46a7-b870-7841815db5d5"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"ce2f6035-195d-4c39-b5d8-9a112bca5af1","displayName":"iotc-cli-test000002update","subdomain":"iotc-cli-test000002update","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '615' + - '722' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:00 GMT + - Thu, 19 May 2022 20:56:14 GMT etag: - - W/"35012286-0000-0100-0000-627185d80000" + - W/"50033999-0000-0100-0000-6286aee50000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -894,15 +998,13 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus01 + - iotcprodcentralus04 x-iot-correlation: - - bjga4l0m.0 + - 3md6t1b9.0 x-iot-version: - - 042822.0002-release - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - 050522.0001-release x-msedge-ref: - - 'Ref A: 68E2E7DE9E904147B42BF1028148093B Ref B: CO1EDGE1420 Ref C: 2022-05-03T19:44:00Z' + - 'Ref A: 941001884B7F4FC39A37EFE1775E9205 Ref B: DEN301000104025 Ref C: 2022-05-19T20:56:15Z' x-xss-protection: - 1; mode=block status: @@ -922,23 +1024,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"1561035d-a39a-46a7-b870-7841815db5d5"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"3bd6b29b-b840-4487-af88-2b3b007f4b14","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '615' + - '692' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:00 GMT + - Thu, 19 May 2022 20:56:14 GMT etag: - - W/"35012286-0000-0100-0000-627185d80000" + - W/"50039490-0000-0100-0000-6286aeba0000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -954,13 +1056,13 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodcentralus01 x-iot-correlation: - - 47xvc67o.0 + - 7oibi2ty.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: 061BA41D84294255A3948264F4A9456D Ref B: CO1EDGE2015 Ref C: 2022-05-03T19:44:01Z' + - 'Ref A: 00E1977E2FCD4561A635633453C6D9B5 Ref B: DEN301000102051 Ref C: 2022-05-19T20:56:15Z' x-xss-protection: - 1; mode=block status: @@ -974,29 +1076,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - iot central app identity remove + - iot central app identity assign Connection: - keep-alive ParameterSetName: - -n -g --system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","principalId":"1561035d-a39a-46a7-b870-7841815db5d5"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '615' + - '817' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:00 GMT + - Thu, 19 May 2022 20:56:14 GMT etag: - - W/"35012286-0000-0100-0000-627185d80000" + - W/"50039c96-0000-0100-0000-6286aed70000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1012,55 +1114,57 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodcentralus04 x-iot-correlation: - - aq82ef3r.0 + - 1df826se.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: E874F538BA034FD587908842F0684C60 Ref B: CO1EDGE1907 Ref C: 2022-05-03T19:44:01Z' + - 'Ref A: A0C7EFB1AB4742C3B17091D39444B581 Ref B: DEN301000108033 Ref C: 2022-05-19T20:56:15Z' x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"location": "westus", "tags": {}, "sku": {"name": "ST2"}, "identity": - {"type": "None"}, "properties": {"displayName": "iotc-cli-test000002-mi", "subdomain": - "iotc-cli-test000002-mi", "template": "iotc-pnp-preview@1.0.0"}}' + body: '{"tags": {}, "location": "westus", "sku": {"name": "ST2"}, "identity": + {"type": "SystemAssigned"}, "properties": {"displayName": "iotc-cli-test000002-mi", + "subdomain": "iotc-cli-test000002-mi", "template": "iotc-pnp-preview@1.0.0", + "publicNetworkAccess": "Enabled", "networkRuleSets": {"applyToDevices": false, + "applyToIoTCentral": false, "defaultAction": "Allow", "ipRules": []}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - iot central app identity remove + - iot central app identity assign Connection: - keep-alive Content-Length: - - '222' + - '381' Content-Type: - application/json ParameterSetName: - -n -g --system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"4421081a-30a0-42b4-af68-479af23a0ede","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Updating","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/ccf4a01b-154b-415f-8725-35d4b18cafe5?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '502' + - '816' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:04 GMT - etag: - - W/"35018d8f-0000-0100-0000-627186040000" + - Thu, 19 May 2022 20:56:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1074,17 +1178,17 @@ interactions: x-download-options: - noopen x-frame-options: - - deny + - DENY x-iot-cluster: - - iotcprodwestus04 + - iotcprodcentralus04 x-iot-correlation: - - 8tv5mooc.0 + - 18zz3bbj.1.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-ms-ratelimit-remaining-subscription-writes: - '1199' x-msedge-ref: - - 'Ref A: 7B5ACC5AF8604AF2AE666218D080DA40 Ref B: CO1EDGE1907 Ref C: 2022-05-03T19:44:04Z' + - 'Ref A: 128F5F3012AB49AB8B85FEB8942FE58F Ref B: DEN301000108033 Ref C: 2022-05-19T20:56:16Z' x-xss-protection: - 1; mode=block status: @@ -1094,33 +1198,37 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - iot central app delete + - iot central app identity assign Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -n -g --yes + - -n -g --system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/ccf4a01b-154b-415f-8725-35d4b18cafe5?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo response: body: - string: '' + string: '{"status":"Succeeded"}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '0' + - '22' + content-type: + - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:08 GMT + - Thu, 19 May 2022 20:56:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1132,13 +1240,11 @@ interactions: x-iot-cluster: - iotcprodwestus04 x-iot-correlation: - - 8qv6lhi4.0 + - ntso5qx.0 x-iot-version: - - 042822.0002-release - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - 050522.0001-release x-msedge-ref: - - 'Ref A: 7C6EAFF9BB384BEB8D5601AD5E7E72CD Ref B: CO1EDGE1717 Ref C: 2022-05-03T19:44:06Z' + - 'Ref A: EAFB95A40AD94F38B306164993D998D8 Ref B: DEN301000108033 Ref C: 2022-05-19T20:56:29Z' x-xss-protection: - 1; mode=block status: @@ -1148,33 +1254,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - iot central app delete + - iot central app identity assign Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -n -g --yes + - -n -g --system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '0' + - '817' + content-type: + - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:11 GMT + - Thu, 19 May 2022 20:56:29 GMT + etag: + - W/"5003f99b-0000-0100-0000-6286aef30000" strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1184,15 +1296,13 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodcentralus01 x-iot-correlation: - - 4ncendp1.0 + - 5bwy56ov.0 x-iot-version: - - 042822.0002-release - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - 050522.0001-release x-msedge-ref: - - 'Ref A: 56F0A2EA2C234F8DB7524E86C4D79C9C Ref B: CO1EDGE2015 Ref C: 2022-05-03T19:44:09Z' + - 'Ref A: 5472A58C7A4E4A7A9FA07175CBFCFBA2 Ref B: DEN301000108033 Ref C: 2022-05-19T20:56:29Z' x-xss-protection: - 1; mode=block status: @@ -1206,27 +1316,29 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - iot central app list + - iot central app identity show Connection: - keep-alive ParameterSetName: - - -g + - -n -g User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"14d3ba88-5697-45f3-ac5e-53d9a06eea6a","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","state":"created"},"sku":{"name":"ST2"},"identity":{"type":"None"}}]}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '502' + - '817' content-type: - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:11 GMT + - Thu, 19 May 2022 20:56:30 GMT + etag: + - W/"5003f99b-0000-0100-0000-6286aef30000" strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1242,13 +1354,13 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodcentralus04 x-iot-correlation: - - 7ki7mwr7.0 + - ablbimc7.0 x-iot-version: - - 042822.0002-release + - 050522.0001-release x-msedge-ref: - - 'Ref A: 9C31ACBE27A74DF4B01279FCBABD9743 Ref B: CO1EDGE2016 Ref C: 2022-05-03T19:44:11Z' + - 'Ref A: C773C250E8444D03B9F177DAC2618D96 Ref B: DEN301000103021 Ref C: 2022-05-19T20:56:30Z' x-xss-protection: - 1; mode=block status: @@ -1262,29 +1374,35 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - iot central app delete + - iot central app identity remove Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -n -g --yes + - -n -g --system-assigned User-Agent: - - AZURECLI/2.35.0 azsdk-python-mgmt-iotcentral/9.0.0 Python/3.8.3 (Windows-10-10.0.22000-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-06-01 + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"SystemAssigned","tenantId":"b991653c-5859-43c4-b326-e3014b412d01","principalId":"1acfbfcf-5071-480b-af95-c137a492256d"}}' headers: cache-control: - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 content-length: - - '0' + - '817' + content-type: + - application/json; charset=utf-8 date: - - Tue, 03 May 2022 19:44:13 GMT + - Thu, 19 May 2022 20:56:29 GMT + etag: + - W/"5003f99b-0000-0100-0000-6286aef30000" strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1294,18 +1412,652 @@ interactions: x-frame-options: - deny x-iot-cluster: - - iotcprodwestus04 + - iotcprodcentralus01 x-iot-correlation: - - 1uczse9t.0 + - ahrytuv9.0 x-iot-version: - - 042822.0002-release - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 2292719770354BC1A924F9AF017DF182 Ref B: DEN301000101053 Ref C: 2022-05-19T20:56:30Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"tags": {}, "location": "westus", "sku": {"name": "ST2"}, "identity": + {"type": "None"}, "properties": {"displayName": "iotc-cli-test000002-mi", "subdomain": + "iotc-cli-test000002-mi", "template": "iotc-pnp-preview@1.0.0", "publicNetworkAccess": + "Enabled", "networkRuleSets": {"applyToDevices": false, "applyToIoTCentral": + false, "defaultAction": "Allow", "ipRules": []}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app identity remove + Connection: + - keep-alive + Content-Length: + - '371' + Content-Type: + - application/json + ParameterSetName: + - -n -g --system-assigned + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Updating","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/a275c4d0-a36c-4894-bb60-0297567e5490?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '703' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56:34 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 9yew7w05.1.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 56D7A7D2291B40B881FA9C43151D5D77 Ref B: DEN301000101053 Ref C: 2022-05-19T20:56:31Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app identity remove + Connection: + - keep-alive + ParameterSetName: + - -n -g --system-assigned + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/a275c4d0-a36c-4894-bb60-0297567e5490?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56:45 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus04 + x-iot-correlation: + - 3fs7ccc4.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 3273C6B9290F4F3CBDE459CCEAF2E3DB Ref B: DEN301000101053 Ref C: 2022-05-19T20:56:45Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app identity remove + Connection: + - keep-alive + ParameterSetName: + - -n -g --system-assigned + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi","name":"iotc-cli-test000002-mi","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"0ec07798-daf6-4a34-b150-f02c44b6e474","displayName":"iotc-cli-test000002-mi","subdomain":"iotc-cli-test000002-mi","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '704' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56:45 GMT + etag: + - W/"5003089f-0000-0100-0000-6286af030000" + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 41jkzkmq.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 43CF86AA2A84473A968471BFD165F3B5 Ref B: DEN301000101053 Ref C: 2022-05-19T20:56:45Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-template?api-version=2021-11-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/521e548a-3af3-4f40-b00d-4559ad5b3c7d?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '0' + date: + - Thu, 19 May 2022 20:56:47 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/521e548a-3af3-4f40-b00d-4559ad5b3c7d?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 4jdv8hkd.1.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: E0038724748345F1931470DA4A2B797D Ref B: DEN301000101025 Ref C: 2022-05-19T20:56:45Z' + x-xss-protection: + - 1; mode=block + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/521e548a-3af3-4f40-b00d-4559ad5b3c7d?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus04 + x-iot-correlation: + - 54v17kte.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: CA9087E27A074654B477D7D7CF45A400 Ref B: DEN301000101025 Ref C: 2022-05-19T20:56:57Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002-mi?api-version=2021-11-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/acf3d05d-0094-4dc7-bdf4-ab7949f8a0c2?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '0' + date: + - Thu, 19 May 2022 20:56:59 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/acf3d05d-0094-4dc7-bdf4-ab7949f8a0c2?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus04 + x-iot-correlation: + - aiai7gyc.1.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: D6FA414CF6A04965B7FF9092C4D4C551 Ref B: DEN301000103025 Ref C: 2022-05-19T20:56:58Z' + x-xss-protection: + - 1; mode=block + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/acf3d05d-0094-4dc7-bdf4-ab7949f8a0c2?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:57:10 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - aw7esg9f.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 742771EAB50F46BCA50A5730EA80A4D3 Ref B: DEN301000103025 Ref C: 2022-05-19T20:57:10Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps?api-version=2021-11-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"3bd6b29b-b840-4487-af88-2b3b007f4b14","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}]}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '704' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:57:10 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 2l6h6owq.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: C2505FB12736447CB2762B92D2B060A4 Ref B: BY3EDGE0219 Ref C: 2022-05-19T20:57:10Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/22016265-86fe-4ec3-a377-0692595da7ae?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '0' + date: + - Thu, 19 May 2022 20:57:11 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/22016265-86fe-4ec3-a377-0692595da7ae?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 8jndc5t4.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 0BBDC22070B14180A1EE1F2DD1F0A301 Ref B: BY3EDGE0205 Ref C: 2022-05-19T20:57:11Z' + x-xss-protection: + - 1; mode=block + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/22016265-86fe-4ec3-a377-0692595da7ae?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Deleting"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:57:21 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 4hbqg7pw.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 1BB4ABE5830D42F5BFA184AF18FB8975 Ref B: BY3EDGE0205 Ref C: 2022-05-19T20:57:21Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app delete + Connection: + - keep-alive + ParameterSetName: + - -n -g --yes + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/22016265-86fe-4ec3-a377-0692595da7ae?api-version=2021-11-01-preview&type=deleteIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:57:50 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - uu74d8v.0 + x-iot-version: + - 050522.0001-release x-msedge-ref: - - 'Ref A: A884F6AE70AE4B56999FBDC05683DE5D Ref B: CO1EDGE1708 Ref C: 2022-05-03T19:44:13Z' + - 'Ref A: 7699302A371E467AA41072852358E9C7 Ref B: BY3EDGE0205 Ref C: 2022-05-19T20:57:51Z' x-xss-protection: - 1; mode=block status: code: 200 message: OK -version: 1 \ No newline at end of file +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_private_link_and_private_endpoint.yaml b/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_private_link_and_private_endpoint.yaml new file mode 100644 index 00000000000..6a9a1524489 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_central_private_link_and_private_endpoint.yaml @@ -0,0 +1,2684 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app create + Connection: + - keep-alive + ParameterSetName: + - -n -g --subdomain --sku + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-19T20:55:12Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '310' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "sku": {"name": "ST2"}, "properties": {"displayName": + "iotc-cli-test000002", "subdomain": "iotc-cli-test000002"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app create + Connection: + - keep-alive + Content-Length: + - '136' + Content-Type: + - application/json + ParameterSetName: + - -n -g --subdomain --sku + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Creating","applicationId":"cd328a5f-e660-4649-a5b4-533f01ea51c8","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/efe757db-fac2-41bf-a2bf-1eb2a51b1aba?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '691' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:19 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 91u4atq5.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: EA9ACA4B5632484581E95DBB164F7ACB Ref B: BY3EDGE0311 Ref C: 2022-05-19T20:55:14Z' + x-xss-protection: + - 1; mode=block + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app create + Connection: + - keep-alive + ParameterSetName: + - -n -g --subdomain --sku + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/efe757db-fac2-41bf-a2bf-1eb2a51b1aba?api-version=2021-11-01-preview&type=createOrUpdateIotApplication&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:30 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - a2hchcws.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 9D27659769B84367B8D43DDDC26E9070 Ref B: BY3EDGE0311 Ref C: 2022-05-19T20:55:30Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app create + Connection: + - keep-alive + ParameterSetName: + - -n -g --subdomain --sku + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"cd328a5f-e660-4649-a5b4-533f01ea51c8","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '692' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:30 GMT + etag: + - W/"4701fba9-0000-0100-0000-6286aeb90000" + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 14agw8vv.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: AC6F24FC4A2047AF9DF54CCACB8DD0FC Ref B: BY3EDGE0311 Ref C: 2022-05-19T20:55:30Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name": "cli-subnet-000004", + "properties": {"addressPrefix": "10.0.0.0/24", "privateEndpointNetworkPolicies": + "Enabled", "privateLinkServiceNetworkPolicies": "Enabled"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '308' + Content-Type: + - application/json + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"ade25663-f073-472e-9792-62f49c725537\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"resourceGuid\": \"50ca05ba-70ed-46a6-9373-64940004ff62\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"cli-subnet-000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"ade25663-f073-472e-9792-62f49c725537\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/235ad03a-e5ed-4f9b-8a40-a4bb409a9863?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '1335' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 6d6d41b4-19f4-43e9-bf3e-539925528b74 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/235ad03a-e5ed-4f9b-8a40-a4bb409a9863?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9f1c4834-5f58-404b-86c7-c183c0527884 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n -g -l --subnet-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-vnet-000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003\",\r\n + \ \"etag\": \"W/\\\"47d54334-d5a4-4cf6-bdd3-f3ebd2d75d9c\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"50ca05ba-70ed-46a6-9373-64940004ff62\",\r\n \"addressSpace\": + {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n + \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n + \ \"subnets\": [\r\n {\r\n \"name\": \"cli-subnet-000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"47d54334-d5a4-4cf6-bdd3-f3ebd2d75d9c\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": + [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\": + \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n + \ }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1337' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:34 GMT + etag: + - W/"47d54334-d5a4-4cf6-bdd3-f3ebd2d75d9c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/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-arm-service-request-id: + - d5e12444-3cf4-4901-bfac-2c1bdc7ecfc2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"47d54334-d5a4-4cf6-bdd3-f3ebd2d75d9c\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:35 GMT + etag: + - W/"47d54334-d5a4-4cf6-bdd3-f3ebd2d75d9c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/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-arm-service-request-id: + - b08d3784-7c96-4b64-9299-83d827664a5a + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004", + "name": "cli-subnet-000004", "type": "Microsoft.Network/virtualNetworks/subnets", + "properties": {"addressPrefix": "10.0.0.0/24", "delegations": [], "privateEndpointNetworkPolicies": + "Disabled", "privateLinkServiceNetworkPolicies": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + Content-Length: + - '422' + Content-Type: + - application/json + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"2c9596b8-c41d-4ba6-947e-9d9ad14b45a2\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b899e01c-3f51-461f-8758-54dfae79c8d3?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '557' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 1ad6b18b-ae20-48d6-9a28-a35e579d256f + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b899e01c-3f51-461f-8758-54dfae79c8d3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55: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 + x-ms-arm-service-request-id: + - 3c31f98b-48f1-4067-9de9-2937a2b74874 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet update + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --disable-private-endpoint-network-policies + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-subnet-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\",\r\n + \ \"etag\": \"W/\\\"7caf9372-90b1-4f2d-9e5d-c8be73ffa588\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '558' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:37 GMT + etag: + - W/"7caf9372-90b1-4f2d-9e5d-c8be73ffa588" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/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-arm-service-request-id: + - 2f3698bc-e727-4992-a968-e5b69591b4b1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-link-resource list + Connection: + - keep-alive + ParameterSetName: + - -n -g --type + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources?api-version=2021-11-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp","name":"iotApp","type":"Microsoft.IoTCentral/IoTApps/privateLinkResources","properties":{"groupId":"iotApp","requiredMembers":["iotc-cli-test000002","iotc-b21d481a-8349-43b9-bbf4-453616ea43a9","iothub-ns-iotc-b21d4-19222067-df46ec888d","iotc-0232b084-354d-4ae4-80b1-9efd270434fe","iothub-ns-iotc-0232b-19222041-ce427cca3f","saas-dps-663c160d-a3cb-48c9-be51-0ae6dbc1f078"],"requiredZoneNames":["privatelink.azureiotcentral.com","privatelink.azure-devices.net","privatelink.servicebus.windows.net","privatelink.azure-devices-provisioning.net"]}}]}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '734' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:39 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 3hhr0y91.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: FDD89CF72A3146718FFB5BCD2D4B930C Ref B: BY3EDGE0119 Ref C: 2022-05-19T20:55:38Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-link-resource list + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources?api-version=2021-11-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp","name":"iotApp","type":"Microsoft.IoTCentral/IoTApps/privateLinkResources","properties":{"groupId":"iotApp","requiredMembers":["iotc-cli-test000002","iotc-b21d481a-8349-43b9-bbf4-453616ea43a9","iothub-ns-iotc-b21d4-19222067-df46ec888d","iotc-0232b084-354d-4ae4-80b1-9efd270434fe","iothub-ns-iotc-0232b-19222041-ce427cca3f","saas-dps-663c160d-a3cb-48c9-be51-0ae6dbc1f078"],"requiredZoneNames":["privatelink.azureiotcentral.com","privatelink.azure-devices.net","privatelink.servicebus.windows.net","privatelink.azure-devices-provisioning.net"]}}]}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '734' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:38 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - ar121jp1.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 4145ABC1233B4FBD8F0ED34F8BEAEEAA Ref B: BY3EDGE0217 Ref C: 2022-05-19T20:55:39Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-link-resource list + Connection: + - keep-alive + ParameterSetName: + - -n -g --type + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources?api-version=2021-11-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp","name":"iotApp","type":"Microsoft.IoTCentral/IoTApps/privateLinkResources","properties":{"groupId":"iotApp","requiredMembers":["iotc-cli-test000002","iotc-b21d481a-8349-43b9-bbf4-453616ea43a9","iothub-ns-iotc-b21d4-19222067-df46ec888d","iotc-0232b084-354d-4ae4-80b1-9efd270434fe","iothub-ns-iotc-0232b-19222041-ce427cca3f","saas-dps-663c160d-a3cb-48c9-be51-0ae6dbc1f078"],"requiredZoneNames":["privatelink.azureiotcentral.com","privatelink.azure-devices.net","privatelink.servicebus.windows.net","privatelink.azure-devices-provisioning.net"]}}]}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '734' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:39 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 8f1ptrjh.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 60C17A49DA054D1B9E4501FA9DC27578 Ref B: BY3EDGE0406 Ref C: 2022-05-19T20:55:39Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004", + "properties": {"privateEndpointNetworkPolicies": "Enabled", "privateLinkServiceNetworkPolicies": + "Enabled"}}, "privateLinkServiceConnections": [{"name": "cli-pec-000006", "properties": + {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002", + "groupIds": ["iotApp"]}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + Content-Length: + - '611' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"29fd21b3-8b22-42eb-8a15-4f0126c99ed4\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"d5dfa319-32cc-4897-9c63-7eedc8122614\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"29fd21b3-8b22-42eb-8a15-4f0126c99ed4\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002\",\r\n + \ \"groupIds\": [\r\n \"iotApp\"\r\n ],\r\n \"privateLinkServiceConnectionState\": + {\r\n \"status\": \"Approved\",\r\n \"description\": + \"Auto Approved\",\r\n \"actionsRequired\": \"None\"\r\n }\r\n + \ },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"customNetworkInterfaceName\": \"\",\r\n \"subnet\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.cfdf35dd-f8a7-4017-b3ae-ed153cc39308\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '2011' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2bb48700-37c3-4735-b170-df2e28250ef3 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:55:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b0feed41-f4e7-49aa-a966-72f799ae7832 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c7d5d62c-ca6a-49b1-8e26-0ca3930aabb4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2bab58c4-350a-42ae-85bf-4e8c46a1b87f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:56: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 + x-ms-arm-service-request-id: + - a9a9ae4b-c234-4476-b6e4-6c4662b3bb1c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:57:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 4021499e-7dea-41aa-9a41-6a7530b11b6b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b5e80f64-9bba-4e37-aef5-e93d535c789f?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b11f3dc9-eb27-4b3d-962e-dbd7013ef6e9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network private-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vnet-name --subnet -l --connection-name --private-connection-resource-id + --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cli-pe-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005\",\r\n + \ \"etag\": \"W/\\\"2fcff267-f5cb-4865-ac8a-7d4cf1ee8dc7\\\"\",\r\n \"type\": + \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"d5dfa319-32cc-4897-9c63-7eedc8122614\",\r\n \"privateLinkServiceConnections\": + [\r\n {\r\n \"name\": \"cli-pec-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005/privateLinkServiceConnections/cli-pec-000006\",\r\n + \ \"etag\": \"W/\\\"2fcff267-f5cb-4865-ac8a-7d4cf1ee8dc7\\\"\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002\",\r\n + \ \"groupIds\": [\r\n \"iotApp\"\r\n ],\r\n \"privateLinkServiceConnectionState\": + {\r\n \"status\": \"Approved\",\r\n \"description\": + \"Auto-approved\",\r\n \"actionsRequired\": \"None\"\r\n }\r\n + \ },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n + \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n + \ \"customNetworkInterfaceName\": \"\",\r\n \"subnet\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000003/subnets/cli-subnet-000004\"\r\n + \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/cli-pe-000005.nic.cfdf35dd-f8a7-4017-b3ae-ed153cc39308\"\r\n + \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": + \"iotc-cli-test000002.azureiotcentral.com\",\r\n \"ipAddresses\": [\r\n + \ \"10.0.0.4\"\r\n ]\r\n },\r\n {\r\n \"fqdn\": + \"iotc-b21d481a-8349-43b9-bbf4-453616ea43a9.azure-devices.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.5\"\r\n ]\r\n },\r\n {\r\n \"fqdn\": + \"iothub-ns-iotc-b21d4-19222067-df46ec888d.servicebus.windows.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.6\"\r\n ]\r\n },\r\n {\r\n \"fqdn\": + \"iotc-0232b084-354d-4ae4-80b1-9efd270434fe.azure-devices.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.7\"\r\n ]\r\n },\r\n {\r\n \"fqdn\": + \"iothub-ns-iotc-0232b-19222041-ce427cca3f.servicebus.windows.net\",\r\n \"ipAddresses\": + [\r\n \"10.0.0.8\"\r\n ]\r\n },\r\n {\r\n \"fqdn\": + \"saas-dps-663c160d-a3cb-48c9-be51-0ae6dbc1f078.azure-devices-provisioning.net\",\r\n + \ \"ipAddresses\": [\r\n \"10.0.0.9\"\r\n ]\r\n }\r\n + \ ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2970' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:01 GMT + etag: + - W/"2fcff267-f5cb-4865-ac8a-7d4cf1ee8dc7" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/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-arm-service-request-id: + - 716d1bdb-98fb-4b75-87d0-abb27efdbeeb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"state":"created","provisioningState":"Succeeded","applicationId":"cd328a5f-e660-4649-a5b4-533f01ea51c8","displayName":"iotc-cli-test000002","subdomain":"iotc-cli-test000002","template":"iotc-pnp-preview@1.0.0","publicNetworkAccess":"Enabled","networkRuleSets":{"defaultAction":"Allow","applyToDevices":false,"applyToIoTCentral":false,"ipRules":[]},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}]},"sku":{"name":"ST2"},"identity":{"type":"None"}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '1378' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:01 GMT + etag: + - W/"47010eb2-0000-0100-0000-6286af3c0000" + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodcentralus04 + x-iot-correlation: + - 9x4zntui.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 45B2E39076024004AB812FC32A129399 Ref B: DEN301000108009 Ref C: 2022-05-19T20:58:01Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-link-resource show + Connection: + - keep-alive + ParameterSetName: + - -n -g --group-id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp","name":"iotApp","type":"Microsoft.IoTCentral/IoTApps/privateLinkResources","properties":{"groupId":"iotApp","requiredMembers":["iotc-cli-test000002","iotc-b21d481a-8349-43b9-bbf4-453616ea43a9","iothub-ns-iotc-b21d4-19222067-df46ec888d","iotc-0232b084-354d-4ae4-80b1-9efd270434fe","iothub-ns-iotc-0232b-19222041-ce427cca3f","saas-dps-663c160d-a3cb-48c9-be51-0ae6dbc1f078"],"requiredZoneNames":["privatelink.azureiotcentral.com","privatelink.azure-devices.net","privatelink.servicebus.windows.net","privatelink.azure-devices-provisioning.net"]}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '722' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:03 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - abh4gaxf.1.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 780251E3835048369A0A2C8612E5B443 Ref B: DEN301000102019 Ref C: 2022-05-19T20:58:02Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-link-resource show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateLinkResources/iotApp","name":"iotApp","type":"Microsoft.IoTCentral/IoTApps/privateLinkResources","properties":{"groupId":"iotApp","requiredMembers":["iotc-cli-test000002","iotc-b21d481a-8349-43b9-bbf4-453616ea43a9","iothub-ns-iotc-b21d4-19222067-df46ec888d","iotc-0232b084-354d-4ae4-80b1-9efd270434fe","iothub-ns-iotc-0232b-19222041-ce427cca3f","saas-dps-663c160d-a3cb-48c9-be51-0ae6dbc1f078"],"requiredZoneNames":["privatelink.azureiotcentral.com","privatelink.azure-devices.net","privatelink.servicebus.windows.net","privatelink.azure-devices-provisioning.net"]}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '722' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:04 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 8zxkewso.1.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: D6E88E9CC0904232AFF28591FE8D9186 Ref B: DEN301000101045 Ref C: 2022-05-19T20:58:04Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '686' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:05 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - a4wlcyst.4.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 5B6076E321724AF4B6FD6AC6EDAB5A31 Ref B: DEN301000105033 Ref C: 2022-05-19T20:58:05Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections?api-version=2021-11-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}]}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '698' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 6webusm1.1.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 6EF3D5F649E7474599432006E90118C1 Ref B: DEN301000101029 Ref C: 2022-05-19T20:58:05Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection list + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections?api-version=2021-11-01-preview + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}]}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '698' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 7hdx64mb.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 8E3ED40C2371432697E525C1F5693370 Ref B: BY3EDGE0416 Ref C: 2022-05-19T20:58:07Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --account-name --name --resource-group + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '686' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 4nfjzsv2.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 8414E90483AE40478E1A34B913068BC6 Ref B: BY3EDGE0415 Ref C: 2022-05-19T20:58:07Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection show + Connection: + - keep-alive + ParameterSetName: + - --account-name -n -g + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '686' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:07 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 7mm67grb.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: AF8C2A04AA7246CAAA8B5E8BA7D2BD91 Ref B: BY3EDGE0112 Ref C: 2022-05-19T20:58:07Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '686' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:07 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 2u2juoh1.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: F65FF88CC7D847F5BAC65021146AE16B Ref B: BY3EDGE0106 Ref C: 2022-05-19T20:58:07Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"properties": {"privateEndpoint": {}, "privateLinkServiceConnectionState": + {"status": "Approved", "description": "Approved!", "actionsRequired": "None"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection approve + Connection: + - keep-alive + Content-Length: + - '155' + Content-Type: + - application/json + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved!","actionsRequired":"None"}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/508ae0d2-99e7-4430-85f6-0060ab45a47a?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '682' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:08 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 5uo3j2ju.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: A5D6D5CCB26949B1A578EDBA641959A9 Ref B: BY3EDGE0106 Ref C: 2022-05-19T20:58:07Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/508ae0d2-99e7-4430-85f6-0060ab45a47a?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Updating"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 883mvx7h.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 1E8A820A310C41DCB742700BA6B2C09F Ref B: BY3EDGE0106 Ref C: 2022-05-19T20:58:18Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/508ae0d2-99e7-4430-85f6-0060ab45a47a?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 2klxmt8t.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: FD153245165844BDAA1FD076E87CBF04 Ref B: BY3EDGE0106 Ref C: 2022-05-19T20:58:48Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection approve + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '682' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 1vkzlbit.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 529F7DB610D944578F6D68CCFC5E2587 Ref B: BY3EDGE0106 Ref C: 2022-05-19T20:58:48Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Approved!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '682' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:49 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 4ayr4kiq.4.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: D294F2ED68924983A6175150EC71E9AB Ref B: DEN301000106019 Ref C: 2022-05-19T20:58:49Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"properties": {"privateEndpoint": {}, "privateLinkServiceConnectionState": + {"status": "Rejected", "description": "Rejected!", "actionsRequired": "None"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + Content-Length: + - '155' + Content-Type: + - application/json + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected!","actionsRequired":"None"}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/83fb60fd-aba4-4f43-8a7d-0ed7175ba0e2?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '682' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:58:51 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus01 + x-iot-correlation: + - 99jklea7.1.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: CBEF51E1ED1543BB9B7B08EBF6729C28 Ref B: DEN301000106019 Ref C: 2022-05-19T20:58:50Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/83fb60fd-aba4-4f43-8a7d-0ed7175ba0e2?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Updating"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:59:02 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 29l28wxb.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: E2E4378CB6F746038032030CAA159938 Ref B: DEN301000106019 Ref C: 2022-05-19T20:59:02Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/83fb60fd-aba4-4f43-8a7d-0ed7175ba0e2?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Updating"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 20:59:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - bmnz0fhn.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 7D0F4E5EFFB4450499EB9D3EA830CB0A Ref B: DEN301000106019 Ref C: 2022-05-19T20:59:32Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/83fb60fd-aba4-4f43-8a7d-0ed7175ba0e2?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Updating"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:00:03 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 4ooqspia.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 2B5899C4113541769BA1148AEF0E97A3 Ref B: DEN301000106019 Ref C: 2022-05-19T21:00:03Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/83fb60fd-aba4-4f43-8a7d-0ed7175ba0e2?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Updating"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:00:33 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 3mtsxdgx.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 9EE62B0E237245BF98310B86990EA835 Ref B: DEN301000106019 Ref C: 2022-05-19T21:00:33Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/83fb60fd-aba4-4f43-8a7d-0ed7175ba0e2?api-version=2021-11-01-preview&type=updatePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:01:03 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 35owurfr.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: B76F903B3BCA4180BE50345F07AC8E8F Ref B: DEN301000106019 Ref C: 2022-05-19T21:01:03Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection reject + Connection: + - keep-alive + ParameterSetName: + - --account-name -g --name --description + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '682' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:01:04 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - DENY + x-iot-cluster: + - iotcprodcentralus04 + x-iot-correlation: + - 3xz7rciz.1.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 75CE03E130F14866B6CC043076A668C9 Ref B: DEN301000106019 Ref C: 2022-05-19T21:01:03Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection delete + Connection: + - keep-alive + ParameterSetName: + - --id -y + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","name":"iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7","type":"Microsoft.IoTCentral/IoTApps/privateEndpointConnections","properties":{"groupIds":["iotApp"],"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/privateEndpoints/cli-pe-000005"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected!","actionsRequired":"None"}}}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '682' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:01:04 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - cn04wulg.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: FBC2B301DD424CCCA3BE00FBBD622038 Ref B: BY3EDGE0310 Ref C: 2022-05-19T21:01:05Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id -y + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/iotApps/iotc-cli-test000002/privateEndpointConnections/iotc-cli-test000002.7cb9f201-6a1e-45ca-aa37-d7ab339dbca7?api-version=2021-11-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/7fcad825-e0fe-42b3-8ff5-99612b6f8b9b?api-version=2021-11-01-preview&type=deletePrivateEndpointConnection&x-iot-region=westus&asyncinfo + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '0' + date: + - Thu, 19 May 2022 21:01:05 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/7fcad825-e0fe-42b3-8ff5-99612b6f8b9b?api-version=2021-11-01-preview&type=deletePrivateEndpointConnection&x-iot-region=westus + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 5h4rbph2.0 + x-iot-version: + - 050522.0001-release + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: 1477967F1FBC4817A71838B054BA32F7 Ref B: BY3EDGE0310 Ref C: 2022-05-19T21:01:05Z' + x-xss-protection: + - 1; mode=block + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection delete + Connection: + - keep-alive + ParameterSetName: + - --id -y + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/7fcad825-e0fe-42b3-8ff5-99612b6f8b9b?api-version=2021-11-01-preview&type=deletePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Deleting"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:01:15 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - gjni8u.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: 3A90C817EFC048AB98BC3101DA878331 Ref B: BY3EDGE0310 Ref C: 2022-05-19T21:01:16Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - iot central app private-endpoint-connection delete + Connection: + - keep-alive + ParameterSetName: + - --id -y + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-iotcentral/10.0.0b1 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral/locations/westus/operationResults/7fcad825-e0fe-42b3-8ff5-99612b6f8b9b?api-version=2021-11-01-preview&type=deletePrivateEndpointConnection&x-iot-region=westus&asyncinfo + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0 + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 19 May 2022 21:01:46 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-frame-options: + - deny + x-iot-cluster: + - iotcprodwestus01 + x-iot-correlation: + - 8oazyjll.0 + x-iot-version: + - 050522.0001-release + x-msedge-ref: + - 'Ref A: F1715EC47C37447A84372C26014B6A3C Ref B: BY3EDGE0310 Ref C: 2022-05-19T21:01:46Z' + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/iot/tests/latest/test_iot_central_commands.py b/src/azure-cli/azure/cli/command_modules/iot/tests/latest/test_iot_central_commands.py index 210c9906cac..499bcdb1c68 100644 --- a/src/azure-cli/azure/cli/command_modules/iot/tests/latest/test_iot_central_commands.py +++ b/src/azure-cli/azure/cli/command_modules/iot/tests/latest/test_iot_central_commands.py @@ -3,11 +3,11 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer, live_only class IoTCentralTest(ScenarioTest): - + @live_only() @ResourceGroupPreparer() # name_prefix not required, but can be useful def test_iot_central_app(self, resource_group, resource_group_location): app_name = self.create_random_name(prefix='iotc-cli-test', length=24) @@ -25,7 +25,7 @@ def test_iot_central_app(self, resource_group, resource_group_location): self.check('location', location), self.check('subdomain', app_name), self.check('displayName', app_name), - self.check('sku.name', 'ST2')]) + self.check('sku.name', 'ST2')]).get_output_in_json() # Test 'az iot central app create with template and display name' self.cmd('iot central app create -n {0} -g {1} --subdomain {2} --template {3} --display-name \"{4}\" --sku {5}' @@ -113,3 +113,114 @@ def test_iot_central_app(self, resource_group, resource_group_location): # Test 'az iot central app delete' self.cmd('iot central app delete -n {0} -g {1} --yes'.format(app_name, rg), checks=[ self.is_empty()]) + + @live_only() + @ResourceGroupPreparer() # name_prefix not required, but can be useful + def test_iot_central_private_link_and_private_endpoint(self, resource_group): + from msrestazure.azure_exceptions import CloudError + name = self.create_random_name(prefix='iotc-cli-test', length=24) + self.kwargs.update({ + 'app_name': name, + 'loc': 'westus', + 'vnet': self.create_random_name('cli-vnet-', 24), + 'subnet': self.create_random_name('cli-subnet-', 24), + 'pe': self.create_random_name('cli-pe-', 24), + 'pe_connection': self.create_random_name('cli-pec-', 24), + 'rg' : resource_group, + 'sku' : 'ST2', + 'type' : 'Microsoft.IoTCentral/iotApps', + 'approve_description' : 'Approved!', + 'reject_description' : 'Rejected!' + }) + + # Setup for Tests + + # Create an iotc app + result = self.cmd('iot central app create -n {app_name} -g {rg} --subdomain {app_name} --sku {sku}').get_output_in_json() + self.kwargs['iotc_id'] = result['id'] + + # Prepare network for private endpoint connection + self.cmd('network vnet create -n {vnet} -g {rg} -l {loc} --subnet-name {subnet}', + checks=self.check('length(newVNet.subnets)', 1)) + self.cmd('network vnet subnet update -n {subnet} --vnet-name {vnet} -g {rg} ' + '--disable-private-endpoint-network-policies true', + checks=self.check('privateEndpointNetworkPolicies', 'Disabled')) + + # Test Private Link Resource + + # Test `az iot central app private-link-resource list` with app name and resource group + self.cmd('iot central app private-link-resource list -n {app_name} -g {rg} --type {type}', checks=[ + self.check('length(@)', 1)]) + + # Test 'az iot central app private-link-resource list` with private link resource id + self.cmd('iot central app private-link-resource list --id {iotc_id}', checks=[ + self.check('length(@)', 1)]) + + + # Test Private Endpoint Connection + + # Create a private endpoint connection + pr = self.cmd('az iot central app private-link-resource list -n {app_name} -g {rg} --type {type}').get_output_in_json() + self.kwargs['group_id'] = pr[0]['groupId'] + self.kwargs['iotc_pr_id'] = pr[0]['id'] + + private_endpoint = self.cmd( + 'network private-endpoint create -g {rg} -n {pe} --vnet-name {vnet} --subnet {subnet} -l {loc} ' + '--connection-name {pe_connection} --private-connection-resource-id {iotc_id} ' + '--group-id {group_id}').get_output_in_json() + self.assertEqual(private_endpoint['name'], self.kwargs['pe']) + self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['name'], self.kwargs['pe_connection']) + self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['privateLinkServiceConnectionState']['status'], 'Approved') + self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['provisioningState'], 'Succeeded') + self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['groupIds'][0], self.kwargs['group_id']) + self.kwargs['pe_id'] = private_endpoint['privateLinkServiceConnections'][0]['id'] + + # Show the connection at iot central app + iotcApp = self.cmd('iot central app show -n {app_name} -g {rg}').get_output_in_json() + self.assertIn('privateEndpointConnections', iotcApp) + self.assertEqual(len(iotcApp['privateEndpointConnections']), 1) + self.assertEqual(iotcApp['privateEndpointConnections'][0]['privateLinkServiceConnectionState']['status'], + 'Approved') + + self.kwargs['iotc_pec_id'] = iotcApp['privateEndpointConnections'][0]['id'] + + self.kwargs['iotc_pec_name'] = iotcApp['privateEndpointConnections'][0]['name'] + + self.cmd('az iot central app private-link-resource show -n {app_name} -g {rg} --group-id {group_id}', + checks=self.check('id','{iotc_pr_id}')) + + self.cmd('az iot central app private-link-resource show --id {iotc_pr_id}', + checks=self.check('id','{iotc_pr_id}')) + + self.cmd('iot central app private-endpoint-connection show --id {iotc_pec_id}', + checks=self.check('id', '{iotc_pec_id}')) + + self.cmd('iot central app private-endpoint-connection list --account-name {app_name} --resource-group {rg}', + checks=self.check('length(@)', 1)) + + self.cmd('iot central app private-endpoint-connection list --id {iotc_pec_id}', + checks=self.check('length(@)', 1)) + + self.cmd('iot central app private-endpoint-connection show --account-name {app_name} --name {iotc_pec_name} --resource-group {rg}', + checks=self.check('name', '{iotc_pec_name}')) + + self.cmd('iot central app private-endpoint-connection show --account-name {app_name} -n {iotc_pec_name} -g {rg}', + checks=self.check('name', '{iotc_pec_name}')) + + self.cmd('iot central app private-endpoint-connection approve --account-name {app_name} -g {rg} --name {iotc_pec_name} --description {approve_description}', + checks=[self.check('privateLinkServiceConnectionState.status', 'Approved')]) + + # self.cmd('iot central app private-endpoint-connection approve --id {iotc_pec_id}', + # checks=[self.check('privateLinkServiceConnectionState.status', 'Approved')]) + + self.cmd('iot central app private-endpoint-connection reject --account-name {app_name} -g {rg} --name {iotc_pec_name} --description {reject_description}', + checks=[self.check('privateLinkServiceConnectionState.status', 'Rejected')]) + + # self.cmd('iot central app private-endpoint-connection reject --id {iotc_pec_id}', + # checks=[self.check('privateLinkServiceConnectionState.status', 'Rejected')]) + + # with self.assertRaisesRegexp(CloudError, 'You cannot approve the connection request after rejection.'): + # self.cmd('iot central app private-endpoint-connection approve --account-name {app_name} -g {rg} --name {iotc_pec_name}') + + self.cmd('iot central app private-endpoint-connection delete --id {iotc_pec_id} -y') + \ No newline at end of file diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index b9a9f252998..617cc657a23 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -48,7 +48,7 @@ azure-mgmt-eventhub==10.0.0 azure-mgmt-extendedlocation==1.0.0b2 azure-mgmt-hdinsight==9.0.0 azure-mgmt-imagebuilder==1.0.0 -azure-mgmt-iotcentral==9.0.0 +azure-mgmt-iotcentral==10.0.0b1 azure-mgmt-iothub==2.2.0 azure-mgmt-iothubprovisioningservices==1.1.0 azure-mgmt-keyvault==9.3.0 @@ -60,7 +60,7 @@ azure-mgmt-marketplaceordering==1.1.0 azure-mgmt-media==9.0.0 azure-mgmt-monitor==3.0.0 azure-mgmt-msi==6.0.1 -azure-mgmt-netapp==7.0.0 +azure-mgmt-netapp==7 azure-mgmt-network==20.0.0 azure-mgmt-policyinsights==1.1.0b2 azure-mgmt-privatedns==1.0.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index bba19c7f394..01149d04849 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -48,7 +48,7 @@ azure-mgmt-eventhub==10.0.0 azure-mgmt-extendedlocation==1.0.0b2 azure-mgmt-hdinsight==9.0.0 azure-mgmt-imagebuilder==1.0.0 -azure-mgmt-iotcentral==9.0.0 +azure-mgmt-iotcentral==10.0.0b1 azure-mgmt-iothub==2.2.0 azure-mgmt-iothubprovisioningservices==1.1.0 azure-mgmt-keyvault==9.3.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 3caaea3eaad..6b38defb4e2 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -48,7 +48,7 @@ azure-mgmt-eventhub==10.0.0 azure-mgmt-extendedlocation==1.0.0b2 azure-mgmt-hdinsight==9.0.0 azure-mgmt-imagebuilder==1.0.0 -azure-mgmt-iotcentral==9.0.0 +azure-mgmt-iotcentral==10.0.0b1 azure-mgmt-iothub==2.2.0 azure-mgmt-iothubprovisioningservices==1.1.0 azure-mgmt-keyvault==9.3.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 317d35b9ac2..86d1d491e5f 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -92,7 +92,7 @@ 'azure-mgmt-extendedlocation==1.0.0b2', 'azure-mgmt-hdinsight~=9.0.0', 'azure-mgmt-imagebuilder~=1.0.0', - 'azure-mgmt-iotcentral~=9.0.0', + 'azure-mgmt-iotcentral~=10.0.0b1', 'azure-mgmt-iothub==2.2.0', 'azure-mgmt-iothubprovisioningservices==1.1.0', 'azure-mgmt-keyvault==9.3.0',