diff --git a/src/connectedmachine/HISTORY.rst b/src/connectedmachine/HISTORY.rst
index 021ed70aa99..e47baac0cf3 100644
--- a/src/connectedmachine/HISTORY.rst
+++ b/src/connectedmachine/HISTORY.rst
@@ -3,6 +3,10 @@
Release History
===============
+0.5.0
++++++
+* Upgrade the API version to stable/2022-03-10
+
0.4.1
+++++
* Add the enable-auto-upgrade parameter in az connectedmachine extension create/update functions
diff --git a/src/connectedmachine/azext_connectedmachine/generated/_help.py b/src/connectedmachine/azext_connectedmachine/generated/_help.py
index 224c2c3b301..2dbad11bbd2 100644
--- a/src/connectedmachine/azext_connectedmachine/generated/_help.py
+++ b/src/connectedmachine/azext_connectedmachine/generated/_help.py
@@ -90,8 +90,7 @@
- name: Create or Update a Machine Extension
text: |-
az connectedmachine extension create --name "CustomScriptExtension" --location "eastus2euap" --type \
-"CustomScriptExtension" --publisher "Microsoft.Compute" --settings "{\\"commandToExecute\\":\\"powershell.exe -c \
-\\\\\\"Get-Process | Where-Object { $_.CPU -gt 10000 }\\\\\\"\\"}" --type-handler-version "1.10" --machine-name \
+"CustomScriptExtension" --publisher "Microsoft.Compute" --settings '{\"commandToExecute\":\"hostname\"}' --type-handler-version "1.10" --machine-name \
"myMachine" --resource-group "myResourceGroup"
"""
@@ -102,8 +101,7 @@
- name: Create or Update a Machine Extension
text: |-
az connectedmachine extension update --name "CustomScriptExtension" --type "CustomScriptExtension" \
---publisher "Microsoft.Compute" --settings "{\\"commandToExecute\\":\\"powershell.exe -c \\\\\\"Get-Process | \
-Where-Object { $_.CPU -lt 100 }\\\\\\"\\"}" --type-handler-version "1.10" --machine-name "myMachine" --resource-group \
+--publisher "Microsoft.Compute" --settings '{\"commandToExecute\":\"hostname\"}' --type-handler-version "1.10" --machine-name "myMachine" --resource-group \
"myResourceGroup"
"""
@@ -141,8 +139,8 @@
examples:
- name: Upgrade Machine Extensions
text: |-
- az connectedmachine upgrade-extension --extension-targets "{\\"Microsoft.Azure.Monitoring\\":{\\"targetV\
-ersion\\":\\"2.0\\"},\\"Microsoft.Compute.CustomScriptExtension\\":{\\"targetVersion\\":\\"1.10\\"}}" --machine-name \
+ az connectedmachine upgrade-extension --extension-targets '{\"Microsoft.Azure.Monitoring\":{\"targetV\
+ersion\":\"2.0\"},\"Microsoft.Compute.CustomScriptExtension\":{\"targetVersion\":\"1.10\"}}' --machine-name \
"myMachine" --resource-group "myResourceGroup"
"""
diff --git a/src/connectedmachine/azext_connectedmachine/generated/_params.py b/src/connectedmachine/azext_connectedmachine/generated/_params.py
index d803ca33c8d..f689d6708ec 100644
--- a/src/connectedmachine/azext_connectedmachine/generated/_params.py
+++ b/src/connectedmachine/azext_connectedmachine/generated/_params.py
@@ -34,38 +34,38 @@ def load_arguments(self, _):
with self.argument_context('connectedmachine show') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', options_list=['--name', '-n', '--machine-name'], type=str, help='The name of the '
+ c.argument('machine_name', options_list=['--name', '-n', '--machine-name'], help='The name of the '
'hybrid machine.', id_part='name')
with self.argument_context('connectedmachine delete') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', options_list=['--name', '-n', '--machine-name'], type=str, help='The name of the '
+ c.argument('machine_name', options_list=['--name', '-n', '--machine-name'], help='The name of the '
'hybrid machine.', id_part='name')
with self.argument_context('connectedmachine extension list') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the machine containing the extension.')
- c.argument('expand', type=str, help='The expand expression to apply on the operation.')
+ c.argument('machine_name', help='The name of the machine containing the extension.')
+ c.argument('expand', help='The expand expression to apply on the operation.')
with self.argument_context('connectedmachine extension show') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the machine containing the extension.', id_part='name')
- c.argument('name', type=str, help='The name of the machine extension.', id_part='child_name_1')
+ c.argument('machine_name', help='The name of the machine containing the extension.', id_part='name')
+ c.argument('name', help='The name of the machine extension.', id_part='child_name_1')
with self.argument_context('connectedmachine extension create') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the machine where the extension should be created or '
+ c.argument('machine_name', help='The name of the machine where the extension should be created or '
'updated.')
- c.argument('name', type=str, help='The name of the machine extension.')
+ c.argument('name', help='The name of the machine extension.')
c.argument('tags', tags_type)
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False,
validator=get_default_location_from_resource_group)
- c.argument('force_update_tag', type=str, help='How the extension handler should be forced to update even if '
+ c.argument('force_update_tag', help='How the extension handler should be forced to update even if '
'the extension configuration has not changed.')
c.argument('publisher', type=str, help='The name of the extension handler publisher.')
- c.argument('type_', options_list=['--type'], type=str, help='Specifies the type of the extension; an example '
+ c.argument('type_', options_list=['--type'], help='Specify the type of the extension; an example '
'is "CustomScriptExtension".')
- c.argument('type_handler_version', type=str, help='Specifies the version of the script handler.')
+ c.argument('type_handler_version', type=str, help='Specify the version of the script handler.')
c.argument('enable_auto_upgrade', arg_type=get_three_state_flag(), help='Indicate whether the extension '
'should be automatically upgraded by the platform if there is a newer version available.')
c.argument('auto_upgrade_minor', arg_type=get_three_state_flag(), help='Indicate whether the extension should '
@@ -76,24 +76,24 @@ def load_arguments(self, _):
c.argument('protected_settings', type=validate_file_or_dict, help='The extension can contain either '
'protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. Expected '
'value: json-string/json-file/@json-file.')
- c.argument('instance_view_type', type=str, help='Specify the type of the extension; an example is '
+ c.argument('instance_view_type', help='Specify the type of the extension; an example is '
'"CustomScriptExtension".', arg_group='Instance View')
- c.argument('inst_handler_version', type=str, help='Specify the version of the script handler.',
+ c.argument('inst_handler_version', help='Specify the version of the script handler.',
arg_group='Instance View')
c.argument('status', action=AddStatus, nargs='+', help='Instance view status.', arg_group='Instance View')
with self.argument_context('connectedmachine extension update') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the machine where the extension should be created or '
+ c.argument('machine_name', help='The name of the machine where the extension should be created or '
'updated.', id_part='name')
- c.argument('name', type=str, help='The name of the machine extension.', id_part='child_name_1')
+ c.argument('name', help='The name of the machine extension.', id_part='child_name_1')
c.argument('tags', tags_type)
- c.argument('force_update_tag', type=str, help='How the extension handler should be forced to update even if '
+ c.argument('force_update_tag', help='How the extension handler should be forced to update even if '
'the extension configuration has not changed.')
- c.argument('publisher', type=str, help='The name of the extension handler publisher.')
- c.argument('type_', options_list=['--type'], type=str, help='Specifies the type of the extension; an example '
+ c.argument('publisher', help='The name of the extension handler publisher.')
+ c.argument('type_', options_list=['--type'], help='Specify the type of the extension; an example '
'is "CustomScriptExtension".')
- c.argument('type_handler_version', type=str, help='Specifies the version of the script handler.')
+ c.argument('type_handler_version', help='Specify the version of the script handler.')
c.argument('enable_auto_upgrade', arg_type=get_three_state_flag(), help='Indicate whether the extension '
'should be automatically upgraded by the platform if there is a newer version available.')
c.argument('auto_upgrade_minor', arg_type=get_three_state_flag(), help='Indicate whether the extension should '
@@ -107,18 +107,18 @@ def load_arguments(self, _):
with self.argument_context('connectedmachine extension delete') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the machine where the extension should be deleted.',
+ c.argument('machine_name', help='The name of the machine where the extension should be deleted.',
id_part='name')
- c.argument('name', type=str, help='The name of the machine extension.', id_part='child_name_1')
+ c.argument('name', help='The name of the machine extension.', id_part='child_name_1')
with self.argument_context('connectedmachine extension wait') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the machine containing the extension.', id_part='name')
- c.argument('name', type=str, help='The name of the machine extension.', id_part='child_name_1')
+ c.argument('machine_name', help='The name of the machine containing the extension.', id_part='name')
+ c.argument('name', help='The name of the machine extension.', id_part='child_name_1')
with self.argument_context('connectedmachine upgrade-extension') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the hybrid machine.', id_part='name')
+ c.argument('machine_name', help='The name of the hybrid machine.', id_part='name')
c.argument('extension_targets', type=validate_file_or_dict, help='Describe the Extension Target Properties. '
'Expected value: json-string/json-file/@json-file.')
@@ -127,12 +127,12 @@ def load_arguments(self, _):
with self.argument_context('connectedmachine private-link-scope show') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
with self.argument_context('connectedmachine private-link-scope create') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.')
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.')
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False,
validator=get_default_location_from_resource_group)
c.argument('tags', tags_type)
@@ -141,7 +141,7 @@ def load_arguments(self, _):
with self.argument_context('connectedmachine private-link-scope update') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False,
validator=get_default_location_from_resource_group)
@@ -152,76 +152,76 @@ def load_arguments(self, _):
with self.argument_context('connectedmachine private-link-scope delete') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
with self.argument_context('connectedmachine private-link-scope show-validation-detail') as c:
c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name')
- c.argument('private_link_scope_id', type=str, help='The id (Guid) of the Azure Arc PrivateLinkScope resource.',
+ c.argument('private_link_scope_id', help='The id (Guid) of the Azure Arc PrivateLinkScope resource.',
id_part='child_name_1')
with self.argument_context('connectedmachine private-link-scope show-validation-detail-for-machine') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('machine_name', type=str, help='The name of the target machine to get the private link scope '
+ c.argument('machine_name', help='The name of the target machine to get the private link scope '
'validation details for.', id_part='name')
with self.argument_context('connectedmachine private-link-scope update-tag') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
c.argument('tags', tags_type)
with self.argument_context('connectedmachine private-link-scope wait') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
with self.argument_context('connectedmachine private-link-resource list') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.')
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.')
with self.argument_context('connectedmachine private-link-resource show') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
- c.argument('group_name', type=str, help='The name of the private link resource.', id_part='child_name_1')
+ c.argument('group_name', help='The name of the private link resource.', id_part='child_name_1')
with self.argument_context('connectedmachine private-endpoint-connection list') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.')
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.')
with self.argument_context('connectedmachine private-endpoint-connection show') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam'
- 'e'], type=str, help='The name of the private '
+ 'e'], help='The name of the private '
'endpoint connection.', id_part='child_name_1')
with self.argument_context('connectedmachine private-endpoint-connection update') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam'
- 'e'], type=str, help='The name of the private '
+ 'e'], help='The name of the private '
'endpoint connection.', id_part='child_name_1')
c.argument('connection_state', action=AddConnectionState, nargs='+', help='Connection state of the private '
'endpoint connection.')
- c.argument('id_', options_list=['--id'], type=str, help='Resource id of the private endpoint.',
+ c.argument('id_', options_list=['--id'], help='Resource id of the private endpoint.',
arg_group='Private Endpoint')
with self.argument_context('connectedmachine private-endpoint-connection delete') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam'
- 'e'], type=str, help='The name of the private '
+ 'e'], help='The name of the private '
'endpoint connection.', id_part='child_name_1')
with self.argument_context('connectedmachine private-endpoint-connection wait') as c:
c.argument('resource_group_name', resource_group_name_type)
- c.argument('scope_name', type=str, help='The name of the Azure Arc PrivateLinkScope resource.',
+ c.argument('scope_name', help='The name of the Azure Arc PrivateLinkScope resource.',
id_part='name')
c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam'
- 'e'], type=str, help='The name of the private '
+ 'e'], help='The name of the private '
'endpoint connection.', id_part='child_name_1')
diff --git a/src/connectedmachine/azext_connectedmachine/generated/custom.py b/src/connectedmachine/azext_connectedmachine/generated/custom.py
index 749a679b786..55c7a672c0b 100644
--- a/src/connectedmachine/azext_connectedmachine/generated/custom.py
+++ b/src/connectedmachine/azext_connectedmachine/generated/custom.py
@@ -7,7 +7,6 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
-# pylint: disable=line-too-long
# pylint: disable=too-many-lines
# pylint: disable=unused-argument
@@ -73,22 +72,36 @@ def connectedmachine_extension_create(client,
status=None,
no_wait=False):
extension_parameters = {}
- extension_parameters['tags'] = tags
+ if tags is not None:
+ extension_parameters['tags'] = tags
extension_parameters['location'] = location
extension_parameters['properties'] = {}
- extension_parameters['properties']['force_update_tag'] = force_update_tag
- extension_parameters['properties']['publisher'] = publisher
- extension_parameters['properties']['type'] = type_
- extension_parameters['properties']['type_handler_version'] = type_handler_version
- extension_parameters['properties']['enable_auto_upgrade'] = enable_auto_upgrade
- extension_parameters['properties']['auto_upgrade_minor_version'] = auto_upgrade_minor
- extension_parameters['properties']['settings'] = settings
- extension_parameters['properties']['protected_settings'] = protected_settings
+ if force_update_tag is not None:
+ extension_parameters['properties']['force_update_tag'] = force_update_tag
+ if publisher is not None:
+ extension_parameters['properties']['publisher'] = publisher
+ if type_ is not None:
+ extension_parameters['properties']['type'] = type_
+ if type_handler_version is not None:
+ extension_parameters['properties']['type_handler_version'] = type_handler_version
+ if enable_auto_upgrade is not None:
+ extension_parameters['properties']['enable_automatic_upgrade'] = enable_auto_upgrade
+ if auto_upgrade_minor is not None:
+ extension_parameters['properties']['auto_upgrade_minor_version'] = auto_upgrade_minor
+ if settings is not None:
+ extension_parameters['properties']['settings'] = settings
+ if protected_settings is not None:
+ extension_parameters['properties']['protected_settings'] = protected_settings
extension_parameters['properties']['instance_view'] = {}
extension_parameters['properties']['instance_view']['name'] = name
- extension_parameters['properties']['instance_view']['type'] = instance_view_type
- extension_parameters['properties']['instance_view']['type_handler_version'] = inst_handler_version
- extension_parameters['properties']['instance_view']['status'] = status
+ if instance_view_type is not None:
+ extension_parameters['properties']['instance_view']['type'] = instance_view_type
+ if inst_handler_version is not None:
+ extension_parameters['properties']['instance_view']['type_handler_version'] = inst_handler_version
+ if status is not None:
+ extension_parameters['properties']['instance_view']['status'] = status
+ if len(extension_parameters['properties']['instance_view']) == 0:
+ del extension_parameters['properties']['instance_view']
return sdk_no_wait(no_wait,
client.begin_create_or_update,
resource_group_name=resource_group_name,
@@ -106,22 +119,30 @@ def connectedmachine_extension_update(client,
publisher=None,
type_=None,
type_handler_version=None,
- enable_auto_upgrade=None,
auto_upgrade_minor=None,
settings=None,
protected_settings=None,
no_wait=False):
extension_parameters = {}
- extension_parameters['tags'] = tags
+ if tags is not None:
+ extension_parameters['tags'] = tags
extension_parameters['properties'] = {}
- extension_parameters['properties']['force_update_tag'] = force_update_tag
- extension_parameters['properties']['publisher'] = publisher
- extension_parameters['properties']['type'] = type_
- extension_parameters['properties']['type_handler_version'] = type_handler_version
- extension_parameters['properties']['enable_auto_upgrade'] = enable_auto_upgrade
- extension_parameters['properties']['auto_upgrade_minor_version'] = auto_upgrade_minor
- extension_parameters['properties']['settings'] = settings
- extension_parameters['properties']['protected_settings'] = protected_settings
+ if force_update_tag is not None:
+ extension_parameters['properties']['force_update_tag'] = force_update_tag
+ if publisher is not None:
+ extension_parameters['properties']['publisher'] = publisher
+ if type_ is not None:
+ extension_parameters['properties']['type'] = type_
+ if type_handler_version is not None:
+ extension_parameters['properties']['type_handler_version'] = type_handler_version
+ if auto_upgrade_minor is not None:
+ extension_parameters['properties']['auto_upgrade_minor_version'] = auto_upgrade_minor
+ if settings is not None:
+ extension_parameters['properties']['settings'] = settings
+ if protected_settings is not None:
+ extension_parameters['properties']['protected_settings'] = protected_settings
+ if len(extension_parameters['properties']) == 0:
+ del extension_parameters['properties']
return sdk_no_wait(no_wait,
client.begin_update,
resource_group_name=resource_group_name,
@@ -147,7 +168,8 @@ def connectedmachine_upgrade_extension(client,
machine_name,
extension_targets=None):
extension_upgrade_parameters = {}
- extension_upgrade_parameters['extension_targets'] = extension_targets
+ if extension_targets is not None:
+ extension_upgrade_parameters['extension_targets'] = extension_targets
return client.begin_upgrade_extensions(resource_group_name=resource_group_name,
machine_name=machine_name,
extension_upgrade_parameters=extension_upgrade_parameters)
@@ -173,13 +195,17 @@ def connectedmachine_private_link_scope_create(client,
location,
tags=None,
public_network_access=None):
- if public_network_access is None:
- public_network_access = "Disabled"
parameters = {}
parameters['location'] = location
- parameters['tags'] = tags
+ if tags is not None:
+ parameters['tags'] = tags
parameters['properties'] = {}
- parameters['properties']['public_network_access'] = "Disabled" if public_network_access is None else public_network_access
+ if public_network_access is not None:
+ parameters['properties']['public_network_access'] = public_network_access
+ else:
+ parameters['properties']['public_network_access'] = "Disabled"
+ if len(parameters['properties']) == 0:
+ del parameters['properties']
return client.create_or_update(resource_group_name=resource_group_name,
scope_name=scope_name,
parameters=parameters)
@@ -191,14 +217,11 @@ def connectedmachine_private_link_scope_update(instance,
location,
tags=None,
public_network_access=None):
- if public_network_access is None:
- public_network_access = "Disabled"
- if location is not None:
- instance.location = location
+ instance.location = location
if tags is not None:
instance.tags = tags
if public_network_access is not None:
- instance.properties.public_network_access = "Disabled" if public_network_access is None else public_network_access
+ instance.properties.public_network_access = public_network_access
return instance
@@ -231,7 +254,8 @@ def connectedmachine_private_link_scope_update_tag(client,
scope_name,
tags=None):
private_link_scope_tags = {}
- private_link_scope_tags['tags'] = tags
+ if tags is not None:
+ private_link_scope_tags['tags'] = tags
return client.update_tags(resource_group_name=resource_group_name,
scope_name=scope_name,
private_link_scope_tags=private_link_scope_tags)
@@ -278,9 +302,13 @@ def connectedmachine_private_endpoint_connection_update(client,
no_wait=False):
parameters = {}
parameters['properties'] = {}
- parameters['properties']['private_link_service_connection_state'] = connection_state
+ if connection_state is not None:
+ parameters['properties']['private_link_service_connection_state'] = connection_state
parameters['properties']['private_endpoint'] = {}
- parameters['properties']['private_endpoint']['id'] = id_
+ if id_ is not None:
+ parameters['properties']['private_endpoint']['id'] = id_
+ if len(parameters['properties']['private_endpoint']) == 0:
+ del parameters['properties']['private_endpoint']
return sdk_no_wait(no_wait,
client.begin_update,
resource_group_name=resource_group_name,
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/example_steps.py b/src/connectedmachine/azext_connectedmachine/tests/latest/example_steps.py
index a2ab11a6eb0..d050095ac09 100644
--- a/src/connectedmachine/azext_connectedmachine/tests/latest/example_steps.py
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/example_steps.py
@@ -11,13 +11,6 @@
from .. import try_manual
-MACHINE_NAME = 'sdkTestVM'
-RESOURCE_GROUP = 'az-sdk-test'
-LOCATION = 'eastus2euap'
-EXTENSION_NAME = 'CustomScriptExtension'
-SCOPE_NAME = ''
-PRIVATE_ENDPOINT_NAME = ''
-
# EXAMPLE: /Machines/get/Get Machine
@try_manual
@@ -25,8 +18,8 @@ def step_show(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine show '
- f'--name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -36,7 +29,20 @@ def step_list(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine list '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--resource-group "{rg}"',
+ checks=checks)
+
+
+# EXAMPLE: /connectedmachine/post/Upgrade Machine Extensions
+@try_manual
+def step_upgrade_extension(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az connectedmachine upgrade-extension '
+ '--extension-targets "{{\\"Microsoft.Azure.Monitoring\\":{{\\"targetVersion\\":\\"2.0\\"}},\\"Microsoft.Co'
+ 'mpute.CustomScriptExtension\\":{{\\"targetVersion\\":\\"1.10\\"}}}}" '
+ '--machine-name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -48,14 +54,13 @@ def step_extension_create(test, checks=None):
test.cmd('az connectedmachine extension create '
'--name "CustomScriptExtension" '
'--location "eastus2euap" '
- '--enable-auto-upgrade true '
'--type "CustomScriptExtension" '
'--publisher "Microsoft.Compute" '
'--settings "{{\\"commandToExecute\\":\\"powershell.exe -c \\\\\\"Get-Process | Where-Object {{{{ $_.CPU '
'-gt 10000 }}}}\\\\\\"\\"}}" '
- '--type-handler-version "1.10.10" '
- f'--machine-name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--type-handler-version "1.10" '
+ '--machine-name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -65,8 +70,8 @@ def step_extension_list(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine extension list '
- f'--machine-name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--machine-name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -76,21 +81,9 @@ def step_extension_show(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine extension show '
- f'--name "CustomScriptExtension" '
- f'--machine-name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
- checks=checks)
-
-
-# EXAMPLE: /connectedmachine/post/Upgrade Machine Extensions
-@try_manual
-def step_upgrade_extension(test, checks=None):
- if checks is None:
- checks = []
- test.cmd('az connectedmachine upgrade-extension '
- '--extension-targets "{{\\"Microsoft.Compute.CustomScriptExtension\\":{{\\"targetVersion\\":\\"1.10.12\\"}}}}" '
- f'--machine-name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--name "CustomScriptExtension" '
+ '--machine-name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -100,12 +93,15 @@ def step_extension_update(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine extension update '
- f'--name "{EXTENSION_NAME}" '
- '--enable-auto-upgrade false '
- '--settings "{{\\"commandToExecute\\":\\"hostname\\"}}" '
- f'--machine-name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
- checks=checks)
+ '--name "CustomScriptExtension" '
+ '--type "CustomScriptExtension" '
+ '--publisher "Microsoft.Compute" '
+ '--settings "{{\\"commandToExecute\\":\\"powershell.exe -c \\\\\\"Get-Process | Where-Object {{{{ $_.CPU '
+ '-lt 100 }}}}\\\\\\"\\"}}" '
+ '--type-handler-version "1.10" '
+ '--machine-name "{myMachine}" '
+ '--resource-group "{rg}"',
+ checks=checks)
# EXAMPLE: /MachineExtensions/delete/Delete a Machine Extension
@@ -114,9 +110,9 @@ def step_extension_delete(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine extension delete -y '
- f'--name "{EXTENSION_NAME}" '
- f'--machine-name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--name "MMA" '
+ '--machine-name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -126,8 +122,8 @@ def step_delete(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine delete -y '
- f'--name "{MACHINE_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--name "{myMachine}" '
+ '--resource-group "{rg}"',
checks=checks)
@@ -138,10 +134,15 @@ def step_private_endpoint_connection_update(test, checks=None):
checks = []
test.cmd('az connectedmachine private-endpoint-connection update '
'--connection-state description="Approved by johndoe@contoso.com" status="Approved" '
- f'--name "{PRIVATE_ENDPOINT_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--name "{myPrivateEndpointConnection}" '
+ '--resource-group "{rg}" '
+ '--scope-name "myPrivateLinkScope"',
checks=[])
+ test.cmd('az connectedmachine private-endpoint-connection wait --created '
+ '--name "{myPrivateEndpointConnection}" '
+ '--resource-group "{rg}" '
+ '--scope-name "myPrivateLinkScope"',
+ checks=checks)
# EXAMPLE: /PrivateEndpointConnections/get/Gets list of private endpoint connections on a private link scope.
@@ -150,8 +151,8 @@ def step_private_endpoint_connection_list(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-endpoint-connection list '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--resource-group "{rg}" '
+ '--scope-name "myPrivateLinkScope"',
checks=checks)
@@ -161,9 +162,9 @@ def step_private_endpoint_connection_show(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-endpoint-connection show '
- f'--name "{PRIVATE_ENDPOINT_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--name "{myPrivateEndpointConnection}" '
+ '--resource-group "{rg}" '
+ '--scope-name "myPrivateLinkScope"',
checks=checks)
@@ -173,9 +174,9 @@ def step_private_endpoint_connection_delete(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-endpoint-connection delete -y '
- f'--name "{PRIVATE_ENDPOINT_NAME}" '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--name "{myPrivateEndpointConnection}" '
+ '--resource-group "{rg}" '
+ '--scope-name "myPrivateLinkScope"',
checks=checks)
@@ -185,8 +186,8 @@ def step_private_link_resource_list(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-link-resource list '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--resource-group "{rg}" '
+ '--scope-name "myPrivateLinkScope"',
checks=checks)
@@ -196,9 +197,9 @@ def step_private_link_scope_create(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-link-scope create '
- f'--location "{LOCATION}" '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--location "westus" '
+ '--resource-group "{rg_2}" '
+ '--scope-name "my-privatelinkscope"',
checks=checks)
@@ -208,11 +209,10 @@ def step_private_link_scope_update(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-link-scope update '
- f'--location "{LOCATION}" '
+ '--location "westus" '
'--tags Tag1="Value1" '
- '--public-network-access Enabled '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--resource-group "{rg_2}" '
+ '--scope-name "my-privatelinkscope"',
checks=checks)
@@ -222,8 +222,8 @@ def step_private_link_scope_show(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-link-scope show '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--resource-group "{rg_2}" '
+ '--scope-name "my-privatelinkscope"',
checks=checks)
@@ -233,7 +233,17 @@ def step_private_link_scope_list(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-link-scope list '
- f'--resource-group "{RESOURCE_GROUP}"',
+ '--resource-group "{rg_2}"',
+ checks=checks)
+
+
+# EXAMPLE: /PrivateLinkScopes/get/PrivateLinkScopesList.json
+@try_manual
+def step_private_link_scope_list2(test, checks=None):
+ if checks is None:
+ checks = []
+ test.cmd('az connectedmachine private-link-scope list '
+ '-g ""',
checks=checks)
@@ -244,8 +254,8 @@ def step_private_link_scope_update_tag(test, checks=None):
checks = []
test.cmd('az connectedmachine private-link-scope update-tag '
'--tags Tag1="Value1" Tag2="Value2" '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--resource-group "{rg_2}" '
+ '--scope-name "my-privatelinkscope"',
checks=checks)
@@ -255,6 +265,6 @@ def step_private_link_scope_delete(test, checks=None):
if checks is None:
checks = []
test.cmd('az connectedmachine private-link-scope delete -y '
- f'--resource-group "{RESOURCE_GROUP}" '
- f'--scope-name "{SCOPE_NAME}"',
+ '--resource-group "{rg_2}" '
+ '--scope-name "my-privatelinkscope"',
checks=checks)
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_ConnectedMachineAndExtension_Scenario.yaml b/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_ConnectedMachineAndExtension_Scenario.yaml
new file mode 100644
index 00000000000..f6ed2337052
--- /dev/null
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_ConnectedMachineAndExtension_Scenario.yaml
@@ -0,0 +1,789 @@
+interactions:
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -n -g
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine?api-version=2022-03-10&$expand=instanceView
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine","name":"testMachine","location":"eastus2euap","tags":{},"identity":{"type":"SystemAssigned","principalId":"2fe4f9c6-056c-48b2-a19e-4e38b92beab1","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"type":"Microsoft.HybridCompute/machines","properties":{"provisioningState":"Succeeded","agentVersion":"1.17.01931.201","status":"Connected","lastStatusChange":"2022-05-06T08:17:18.9085464Z","errorDetails":[],"displayName":"DorothysSurface","machineFqdn":"DorothysSurface","osName":"windows","osVersion":"10.0.19044.1645","osType":"windows","osProfile":{"computerName":"DorothysSurface"},"vmId":"785cbd31-2e8d-4b9c-aa40-5e0739467f3e","vmUuid":"2883CCA3-7EE6-60E9-A204-97718B655D1D","clientPublicKey":"MIIBCgKCAQEAu3/aWoSctGo/S0EN4+SSFbF2ObovVy6F/d8KUQ98fJjfXYYv2lMPoCGBM1sru36dsey+iyRxkLJgr09HUAj0WxsjV4BFyIkpCdvcCl5C4K37cABX57a9B73XeD5fKlQeErLoCVxT/lY5Vl/buy0tOAorA/VW5RZxqkHR7YzxFTrMNCMxVpzABVqMgo60hYqSraxVq+MJB+1Ea0VDSQ7OIimRwRvsH6GcGbRXTXKSpDQeeotU3krOEUmGtld/6RGA1eTc7aodVfwPGMUWyIHb0u5klHhaaNfhZPBBo7TMsxnMvbFCCPgDOplf21e8nZ+5MD6Vqz8K/4KuZiVoV/W5EQIDAQAB","osSku":"Windows
+ 10 Enterprise","domainName":"WORKGROUP","adFqdn":"DorothysSurface","dnsFqdn":"DorothysSurface","mssqlDiscovered":"false","cloudMetadata":{"provider":"N/A"},"detectedProperties":{"cloudprovider":"N/A","manufacturer":"Microsoft
+ Corporation","model":"Surface Book 2","mssqldiscovered":"false"},"agentConfiguration":{"proxyUrl":"","incomingConnectionsPorts":[],"extensionsAllowList":[],"extensionsBlockList":[],"proxyBypass":[],"extensionsEnabled":"true","guestConfigurationEnabled":"true"},"serviceStatuses":{"extensionService":{"status":"running","startupType":"automatic"},"guestConfigurationService":{"status":"running","startupType":"automatic"}}},"resources":[]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1882'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:31:46 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines?api-version=2022-03-10
+ response:
+ body:
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine","name":"testMachine","location":"eastus2euap","tags":{},"identity":{"type":"SystemAssigned","principalId":"2fe4f9c6-056c-48b2-a19e-4e38b92beab1","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"type":"Microsoft.HybridCompute/machines","properties":{"provisioningState":"Succeeded","agentVersion":"1.17.01931.201","status":"Connected","lastStatusChange":"2022-05-06T08:17:18.9085464Z","errorDetails":[],"displayName":"DorothysSurface","machineFqdn":"DorothysSurface","osName":"windows","osVersion":"10.0.19044.1645","osType":"windows","osProfile":{"computerName":"DorothysSurface"},"vmId":"785cbd31-2e8d-4b9c-aa40-5e0739467f3e","vmUuid":"2883CCA3-7EE6-60E9-A204-97718B655D1D","clientPublicKey":"MIIBCgKCAQEAu3/aWoSctGo/S0EN4+SSFbF2ObovVy6F/d8KUQ98fJjfXYYv2lMPoCGBM1sru36dsey+iyRxkLJgr09HUAj0WxsjV4BFyIkpCdvcCl5C4K37cABX57a9B73XeD5fKlQeErLoCVxT/lY5Vl/buy0tOAorA/VW5RZxqkHR7YzxFTrMNCMxVpzABVqMgo60hYqSraxVq+MJB+1Ea0VDSQ7OIimRwRvsH6GcGbRXTXKSpDQeeotU3krOEUmGtld/6RGA1eTc7aodVfwPGMUWyIHb0u5klHhaaNfhZPBBo7TMsxnMvbFCCPgDOplf21e8nZ+5MD6Vqz8K/4KuZiVoV/W5EQIDAQAB","osSku":"Windows
+ 10 Enterprise","domainName":"WORKGROUP","adFqdn":"DorothysSurface","dnsFqdn":"DorothysSurface","mssqlDiscovered":"false","cloudMetadata":{"provider":"N/A"},"detectedProperties":{"cloudprovider":"N/A","manufacturer":"Microsoft
+ Corporation","model":"Surface Book 2","mssqldiscovered":"false"},"agentConfiguration":{"proxyUrl":"","incomingConnectionsPorts":[],"extensionsAllowList":[],"extensionsBlockList":[],"proxyBypass":[],"extensionsEnabled":"true","guestConfigurationEnabled":"true"},"serviceStatuses":{"extensionService":{"status":"running","startupType":"automatic"},"guestConfigurationService":{"status":"running","startupType":"automatic"}}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/dorothylinux2-Virtual-Machine","name":"dorothylinux2-Virtual-Machine","location":"eastus2euap","tags":{},"identity":{"type":"SystemAssigned","principalId":"5ce02094-bd55-44ba-b1e4-2d56b6a6ba69","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"type":"Microsoft.HybridCompute/machines","properties":{"provisioningState":"Succeeded","agentVersion":"1.7.21162.005","status":"Expired","lastStatusChange":"2021-09-30T06:14:01.8555779Z","errorDetails":[],"displayName":"dorothylinux2-Virtual-Machine","machineFqdn":"dorothylinux2-Virtual-Machine","osName":"linux","osVersion":"5.8.0-59-generic","osType":"linux","osProfile":{"computerName":"dorothylinux2-Virtual-Machine","linuxConfiguration":{"patchSettings":{"assessmentMode":"null"}}},"vmId":"8948ef10-f369-471d-b363-8e2ff44614ca","vmUuid":"80f26cf0-d9a7-4637-a2ff-587bd51626fc","clientPublicKey":"MIIBCgKCAQEAukhdoNaMfaHRGP6MvgdWdyefHdET/mV0J3NdpMU+LFRE5IWwZxG+mGOb2lK3dsgX6HenWyRiumC2BMDX6RuLfRuscZw+HT/W4W/9ScDxbD18o4vECD7DmiFmIs4iPaF8GLTjO2fJzjAl59k7nblfr38SexA8EKo5WqG2LFhbT6CAXtBMPtWebWeZCQ3uXCri8838nDtqhQtqY6Efg4A2sEV9s4Mk7LjINpzcVuPYdvxcFngM22hixUawE9GH8UKIV5XF+/c8xk1b1fvUGizf+sNbgSMZFyJ3Vgg5ne5ibepxyR3WBtmvd3L/mF1negSh/5h9QQKTt7djeUYCb+ztjwIDAQAB","osSku":"Ubuntu
+ 20.04 LTS","domainName":"unknown","adFqdn":"unknown","dnsFqdn":"dorothylinux2-Virtual-Machine","mssqlDiscovered":"false","detectedProperties":{"cloudprovider":"N/A","manufacturer":"Microsoft
+ Corporation","model":"Virtual Machine","mssqldiscovered":"false"},"agentConfiguration":{}}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '3516'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:31:47 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus2euap", "properties": {"publisher": "Microsoft.Compute",
+ "type": "CustomScriptExtension", "typeHandlerVersion": "1.10.10", "enableAutomaticUpgrade":
+ true, "settings": {"commandToExecute": "hostname"}, "instanceView": {"name":
+ "custom-000001"}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '264'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --name --location --enable-auto-upgrade --type --publisher --type-handler-version
+ --machine-name --resource-group --settings
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/e229b954-5145-4d75-9a0f-4b3994d2efb8?api-version=2022-03-10
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 08:31:50 GMT
+ expires:
+ - '-1'
+ location:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/e229b954-5145-4d75-9a0f-4b3994d2efb8?api-version=2022-03-10
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '319'
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --location --enable-auto-upgrade --type --publisher --type-handler-version
+ --machine-name --resource-group --settings
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/e229b954-5145-4d75-9a0f-4b3994d2efb8?api-version=2022-03-10
+ response:
+ body:
+ string: '{"name":"e229b954-5145-4d75-9a0f-4b3994d2efb8","status":"Succeeded","startTime":"2022-05-06T08:31:51.1024586Z","properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","location":"eastus2euap","type":"Microsoft.HybridCompute/machines/extensions","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: DorothysSurface\r\n"}}}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '878'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:36:51 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --location --enable-auto-upgrade --type --publisher --type-handler-version
+ --machine-name --resource-group --settings
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: DorothysSurface\r\n"}}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '753'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:36:51 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --machine-name -g
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions?api-version=2022-03-10
+ response:
+ body:
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","location":"eastus2euap","type":"Microsoft.HybridCompute/machines/extensions","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: DorothysSurface\r\n"}}}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '765'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:36:52 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: DorothysSurface\r\n"}}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '753'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:36:53 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"extensionTargets": {"Microsoft.Compute.CustomScriptExtension": {"targetVersion":
+ "1.10.12"}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine upgrade-extension
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '95'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --extension-targets --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: POST
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/upgradeExtensions?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/e272770b-81ea-4c02-b9c7-798c6ff63ec6?api-version=2022-03-10
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 08:36:54 GMT
+ expires:
+ - '-1'
+ location:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/e272770b-81ea-4c02-b9c7-798c6ff63ec6?api-version=2022-03-10
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine upgrade-extension
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --extension-targets --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/e272770b-81ea-4c02-b9c7-798c6ff63ec6?api-version=2022-03-10
+ response:
+ body:
+ string: '{"name":"e272770b-81ea-4c02-b9c7-798c6ff63ec6","status":"Succeeded","startTime":"2022-05-06T08:36:55.0127616Z","properties":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: DorothysSurface\r\n"}}}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '881'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:41:55 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine upgrade-extension
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --extension-targets --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/e272770b-81ea-4c02-b9c7-798c6ff63ec6?api-version=2022-03-10
+ response:
+ body:
+ string: '[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: DorothysSurface\r\n"}}}}]'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '756'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 08:41:55 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"properties": {"settings": {"commandToExecute": "dir"}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '57'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --name --settings --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PATCH
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/306d1c3c-84ea-4731-aee5-17b0bebb5b32?api-version=2022-03-10
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 08:41:57 GMT
+ expires:
+ - '-1'
+ location:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/306d1c3c-84ea-4731-aee5-17b0bebb5b32?api-version=2022-03-10
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '319'
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --settings --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/306d1c3c-84ea-4731-aee5-17b0bebb5b32?api-version=2022-03-10
+ response:
+ body:
+ string: '{"name":"306d1c3c-84ea-4731-aee5-17b0bebb5b32","status":"Succeeded","startTime":"2022-05-06T08:41:57.748299Z","properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","location":"eastus2euap","type":"Microsoft.HybridCompute/machines/extensions","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"settings":{"commandToExecute":"dir"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: Volume in drive C has no label.\r\n
+ Volume Serial Number is 867D-A9DE\r\n\r\n Directory of C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.10.12\\Downloads\\1\r\n\r\n05/06/2022 01:42
+ AM
.\r\n05/06/2022 01:42 AM ..\r\n 0
+ File(s) 0 bytes\r\n 2 Dir(s) 298,947,067,904 bytes
+ free\r\n"}}}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1232'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:46:57 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --settings --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001","name":"custom-000001","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"settings":{"commandToExecute":"dir"},"provisioningState":"Succeeded","instanceView":{"name":"custom-000001","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
+ Message: Command execution finished, StdOut: Volume in drive C has no label.\r\n
+ Volume Serial Number is 867D-A9DE\r\n\r\n Directory of C:\\Packages\\Plugins\\Microsoft.Compute.CustomScriptExtension\\1.10.12\\Downloads\\1\r\n\r\n05/06/2022 01:42
+ AM .\r\n05/06/2022 01:42 AM ..\r\n 0
+ File(s) 0 bytes\r\n 2 Dir(s) 298,947,067,904 bytes
+ free\r\n"}}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1108'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:46:58 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - -y --name --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine/extensions/custom-000001?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/4ae958b4-7eef-4ea2-bbde-dfb0df01373f?api-version=2022-03-10
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 08:47:01 GMT
+ expires:
+ - '-1'
+ location:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/4ae958b4-7eef-4ea2-bbde-dfb0df01373f?api-version=2022-03-10
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine extension delete
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -y --name --machine-name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/4ae958b4-7eef-4ea2-bbde-dfb0df01373f?api-version=2022-03-10
+ response:
+ body:
+ string: '{"name":"4ae958b4-7eef-4ea2-bbde-dfb0df01373f","status":"Succeeded","startTime":"2022-05-06T08:47:01.3144714Z"}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '111'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 08:52:01 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - -y --name --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/testMachine?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 08:52:12 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_PrivateLinkAndPrivateEndpointConnection_Scenario.yaml b/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_PrivateLinkAndPrivateEndpointConnection_Scenario.yaml
new file mode 100644
index 00000000000..fc89d35bd77
--- /dev/null
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_PrivateLinkAndPrivateEndpointConnection_Scenario.yaml
@@ -0,0 +1,1537 @@
+interactions:
+- request:
+ body: '{"location": "eastus2euap"}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - group create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '27'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -n -l
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/az-sdk-test-000001?api-version=2021-04-01
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001","name":"az-sdk-test-000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '238'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:09 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ status:
+ code: 201
+ message: Created
+- request:
+ body: '{"location": "eastus2euap", "tags": {}, "properties": {"addressSpace":
+ {"addressPrefixes": ["10.0.0.0/16"]}, "dhcpOptions": {}, "subnets": [{"name":
+ "subnet-000001", "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:
+ - '309'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -n -g -l --subnet-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"vnet-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"d3030042-33cf-431a-a6d3-d261ae122bfb\\\"\",\r\n \"type\":
+ \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\",\r\n
+ \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
+ \ \"resourceGuid\": \"63239842-bf65-4ea4-8a59-08ebf199380d\",\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\": \"subnet-000001\",\r\n
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"d3030042-33cf-431a-a6d3-d261ae122bfb\\\"\",\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/eastus2euap/operations/88ce9056-4f48-452b-99c4-c3e524141cb0?api-version=2021-05-01
+ cache-control:
+ - no-cache
+ content-length:
+ - '1324'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:13 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:
+ - 349d1987-34c4-4671-ac68-197d35dd5895
+ 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.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/88ce9056-4f48-452b-99c4-c3e524141cb0?api-version=2021-05-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:
+ - Fri, 06 May 2022 04:28:16 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 6e232944-2bdb-4f5d-9a75-08a8d1a98b47
+ 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.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"vnet-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"727e74c6-1c89-45c4-8733-9340cec04df1\\\"\",\r\n \"type\":
+ \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2euap\",\r\n
+ \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"resourceGuid\": \"63239842-bf65-4ea4-8a59-08ebf199380d\",\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\": \"subnet-000001\",\r\n
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"727e74c6-1c89-45c4-8733-9340cec04df1\\\"\",\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:
+ - '1326'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:16 GMT
+ etag:
+ - W/"727e74c6-1c89-45c4-8733-9340cec04df1"
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/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:
+ - 13036085-de82-407d-9ac1-0d7efe06b8a3
+ 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.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"subnet-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"727e74c6-1c89-45c4-8733-9340cec04df1\\\"\",\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:
+ - '547'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:16 GMT
+ etag:
+ - W/"727e74c6-1c89-45c4-8733-9340cec04df1"
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/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:
+ - ac2644aa-823f-40f2-b4f8-6756d13a8520
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001",
+ "name": "subnet-000001", "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:
+ - '412'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -n --vnet-name -g --disable-private-endpoint-network-policies
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"subnet-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"e8a55cca-2e67-4672-87c0-4c7ef35114fb\\\"\",\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/eastus2euap/operations/6d92c089-bad9-4ef8-8bec-414b51b19b22?api-version=2021-05-01
+ cache-control:
+ - no-cache
+ content-length:
+ - '547'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:18 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 910049ff-3636-4bf2-8c5e-42b64347d1d7
+ 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.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/6d92c089-bad9-4ef8-8bec-414b51b19b22?api-version=2021-05-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:
+ - Fri, 06 May 2022 04:28:21 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 49d63f5b-aa1e-413e-ab66-31deae2e2354
+ 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.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"subnet-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\",\r\n
+ \ \"etag\": \"W/\\\"8ead6915-e831-44aa-a748-7fab21e14c71\\\"\",\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:
+ - '548'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:22 GMT
+ etag:
+ - W/"8ead6915-e831-44aa-a748-7fab21e14c71"
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/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:
+ - 2217f824-1685-4ae9-b063-f59840ad6165
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus2euap", "properties": {"publicNetworkAccess": "Disabled"}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-scope create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '78'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --location --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001","name":"scope-000001","type":"Microsoft.HybridCompute/privateLinkScopes","location":"eastus2euap","properties":{"privateLinkScopeId":"97bbf84d-7936-4ec7-afdd-bf9f97b68d86","publicNetworkAccess":"Disabled","provisioningState":"Succeeded","privateEndpointConnections":[]}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '429'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:26 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-scope update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --location --tags --public-network-access --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001","name":"scope-000001","type":"Microsoft.HybridCompute/privateLinkScopes","location":"eastus2euap","properties":{"privateLinkScopeId":"97bbf84d-7936-4ec7-afdd-bf9f97b68d86","publicNetworkAccess":"Disabled","provisioningState":"Succeeded","privateEndpointConnections":[]}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '429'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:27 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus2euap", "tags": {"Tag1": "Value1"}, "properties": {"publicNetworkAccess":
+ "Enabled"}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-scope update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '105'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --location --tags --public-network-access --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001","name":"scope-000001","type":"Microsoft.HybridCompute/privateLinkScopes","location":"eastus2euap","properties":{"privateLinkScopeId":"97bbf84d-7936-4ec7-afdd-bf9f97b68d86","publicNetworkAccess":"Enabled","provisioningState":"Succeeded","privateEndpointConnections":[]},"tags":{"Tag1":"Value1"}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '453'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:31 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-scope list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --resource-group
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes?api-version=2022-03-10
+ response:
+ body:
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001","name":"scope-000001","type":"Microsoft.HybridCompute/privateLinkScopes","location":"eastus2euap","tags":{"Tag1":"Value1"},"properties":{"privateLinkScopeId":"97bbf84d-7936-4ec7-afdd-bf9f97b68d86","publicNetworkAccess":"Enabled","provisioningState":"Succeeded","privateEndpointConnections":[]}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '465'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:31 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"tags": {"Tag1": "Value1", "Tag2": "Value2"}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-scope update-tag
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '46'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --tags --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PATCH
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001","name":"scope-000001","type":"Microsoft.HybridCompute/privateLinkScopes","location":"eastus2euap","properties":{"privateLinkScopeId":"97bbf84d-7936-4ec7-afdd-bf9f97b68d86","publicNetworkAccess":"Enabled","provisioningState":"Succeeded","privateEndpointConnections":[]},"tags":{"Tag1":"Value1","Tag2":"Value2"}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '469'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:35 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-scope show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --scope-name -g
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001","name":"scope-000001","type":"Microsoft.HybridCompute/privateLinkScopes","location":"eastus2euap","properties":{"privateLinkScopeId":"97bbf84d-7936-4ec7-afdd-bf9f97b68d86","publicNetworkAccess":"Enabled","provisioningState":"Succeeded","privateEndpointConnections":[]},"tags":{"Tag1":"Value1","Tag2":"Value2"}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '469'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:36 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-link-resource list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --scope-name -g
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateLinkResources?api-version=2022-03-10
+ response:
+ body:
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateLinkResources/hybridcompute","name":"hybridcompute","type":"Microsoft.HybridCompute/privateLinkScopes/privateLinkResources","properties":{"groupId":"hybridcompute","requiredMembers":["HybridCompute.Global","HybridCompute.Server","GuestConfig.GlobalService","GuestConfig.AgentService.eapeus2","GuestConfig.AgentService.eastus2euap","HybridCompute.K8sConfiguration"],"requiredZoneNames":["privatelink.his.arc.azure.com","privatelink.Guestconfiguration.azure.com","privatelink.dp.kubernetesconfiguration.azure.com"]}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '691'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:38 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - network private-endpoint create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --vnet-name --subnet --private-connection-resource-id --connection-name
+ --group-id
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/az-sdk-test-000001?api-version=2021-04-01
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001","name":"az-sdk-test-000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '238'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:37 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus2euap", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001",
+ "properties": {"privateEndpointNetworkPolicies": "Enabled", "privateLinkServiceNetworkPolicies":
+ "Enabled"}}, "privateLinkServiceConnections": [{"name": "pec-000001", "properties":
+ {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001",
+ "groupIds": ["hybridcompute"]}}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - network private-endpoint create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '621'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -g -n --vnet-name --subnet --private-connection-resource-id --connection-name
+ --group-id
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"pe-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001\",\r\n
+ \ \"etag\": \"W/\\\"6bcf918d-0273-4c9e-9ba8-5bb456f66714\\\"\",\r\n \"type\":
+ \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus2euap\",\r\n
+ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\":
+ \"846741f3-438c-4413-8cd7-7f5112f41bab\",\r\n \"privateLinkServiceConnections\":
+ [\r\n {\r\n \"name\": \"pec-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001/privateLinkServiceConnections/pec-000001\",\r\n
+ \ \"etag\": \"W/\\\"6bcf918d-0273-4c9e-9ba8-5bb456f66714\\\"\",\r\n
+ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001\",\r\n
+ \ \"groupIds\": [\r\n \"hybridcompute\"\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/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\"\r\n
+ \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/networkInterfaces/pe-000001.nic.87efd997-aa7b-4949-8b5f-6f6cd5c4a4bb\"\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/eastus2euap/operations/c7b4dc66-6b1b-48e2-9eaf-8d502e8761d8?api-version=2021-05-01
+ cache-control:
+ - no-cache
+ content-length:
+ - '2007'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:28:42 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 7f968d80-57a5-4fa8-835e-6496622651a4
+ 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 --private-connection-resource-id --connection-name
+ --group-id
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/c7b4dc66-6b1b-48e2-9eaf-8d502e8761d8?api-version=2021-05-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:
+ - Fri, 06 May 2022 04:28:52 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 57765bef-78ac-40de-932e-e5cc9fa411bb
+ 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 --private-connection-resource-id --connection-name
+ --group-id
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/c7b4dc66-6b1b-48e2-9eaf-8d502e8761d8?api-version=2021-05-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:
+ - Fri, 06 May 2022 04:29:04 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 7a32a0c6-95a8-4067-a1f6-a0570a83b313
+ 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 --private-connection-resource-id --connection-name
+ --group-id
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2euap/operations/c7b4dc66-6b1b-48e2-9eaf-8d502e8761d8?api-version=2021-05-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:
+ - Fri, 06 May 2022 04:29:24 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - fc088e7b-45ee-4139-b684-59a08d5ec5eb
+ 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 --private-connection-resource-id --connection-name
+ --group-id
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001?api-version=2021-05-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"pe-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001\",\r\n
+ \ \"etag\": \"W/\\\"db71e587-4909-409f-b421-c11620646561\\\"\",\r\n \"type\":
+ \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus2euap\",\r\n
+ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\":
+ \"846741f3-438c-4413-8cd7-7f5112f41bab\",\r\n \"privateLinkServiceConnections\":
+ [\r\n {\r\n \"name\": \"pec-000001\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001/privateLinkServiceConnections/pec-000001\",\r\n
+ \ \"etag\": \"W/\\\"db71e587-4909-409f-b421-c11620646561\\\"\",\r\n
+ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001\",\r\n
+ \ \"groupIds\": [\r\n \"hybridcompute\"\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/az-sdk-test-000001/providers/Microsoft.Network/virtualNetworks/vnet-000001/subnets/subnet-000001\"\r\n
+ \ },\r\n \"ipConfigurations\": [],\r\n \"networkInterfaces\": [\r\n
+ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/networkInterfaces/pe-000001.nic.87efd997-aa7b-4949-8b5f-6f6cd5c4a4bb\"\r\n
+ \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\":
+ \"gbl.his.arc.azure.com\",\r\n \"ipAddresses\": [\r\n \"10.0.0.4\"\r\n
+ \ ]\r\n },\r\n {\r\n \"fqdn\": \"cbn.his.arc.azure.com\",\r\n
+ \ \"ipAddresses\": [\r\n \"10.0.0.5\"\r\n ]\r\n },\r\n
+ \ {\r\n \"fqdn\": \"agentserviceapi.guestconfiguration.azure.com\",\r\n
+ \ \"ipAddresses\": [\r\n \"10.0.0.6\"\r\n ]\r\n },\r\n
+ \ {\r\n \"fqdn\": \"eapeus2-gas.guestconfiguration.azure.com\",\r\n
+ \ \"ipAddresses\": [\r\n \"10.0.0.7\"\r\n ]\r\n },\r\n
+ \ {\r\n \"fqdn\": \"eastus2euap-gas.guestconfiguration.azure.com\",\r\n
+ \ \"ipAddresses\": [\r\n \"10.0.0.8\"\r\n ]\r\n },\r\n
+ \ {\r\n \"fqdn\": \"eastus2euap.dp.kubernetesconfiguration.azure.com\",\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:
+ - '2825'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:29:24 GMT
+ etag:
+ - W/"db71e587-4909-409f-b421-c11620646561"
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/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:
+ - c9f8bee0-0bfb-46ec-9c06-565769661565
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections?api-version=2022-03-10
+ response:
+ body:
+ string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab","name":"pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab","type":"Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"}}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '707'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:29:26 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"properties": {"privateLinkServiceConnectionState": {"status": "Rejected",
+ "description": "Rejected by AZ CLI test"}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '119'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --connection-state --name --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/f00e7a0e-9b68-4af9-9ca6-0a9563f94712?api-version=2022-03-10
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 04:29:28 GMT
+ expires:
+ - '-1'
+ location:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/f00e7a0e-9b68-4af9-9ca6-0a9563f94712?api-version=2022-03-10
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --connection-state --name --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/f00e7a0e-9b68-4af9-9ca6-0a9563f94712?api-version=2022-03-10
+ response:
+ body:
+ string: '{"name":"f00e7a0e-9b68-4af9-9ca6-0a9563f94712","status":"Succeeded","startTime":"2022-05-06T04:29:29.1500567Z"}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '111'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:29:59 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --connection-state --name --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab","name":"pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab","type":"Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected
+ by AZ CLI test","actionsRequired":"None"}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '705'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:29:59 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab?api-version=2022-03-10
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab","name":"pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab","type":"Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.Network/privateEndpoints/pe-000001"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"Rejected
+ by AZ CLI test","actionsRequired":"None"}}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '705'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:30:00 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - -y --name --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections/pe-000001.846741f3-438c-4413-8cd7-7f5112f41bab?api-version=2022-03-10
+ response:
+ body:
+ string: ''
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/a91df94f-7b54-4d89-ba58-89dd492424cf?api-version=2022-03-10
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ content-type:
+ - application/json
+ date:
+ - Fri, 06 May 2022 04:30:03 GMT
+ expires:
+ - '-1'
+ location:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/a91df94f-7b54-4d89-ba58-89dd492424cf?api-version=2022-03-10
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 202
+ message: Accepted
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection delete
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -y --name --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/a91df94f-7b54-4d89-ba58-89dd492424cf?api-version=2022-03-10
+ response:
+ body:
+ string: '{"name":"a91df94f-7b54-4d89-ba58-89dd492424cf","status":"Succeeded","startTime":"2022-05-06T04:30:03.2592041Z"}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '111'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:30:32 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - connectedmachine private-endpoint-connection list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --resource-group --scope-name
+ User-Agent:
+ - AZURECLI/2.32.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.10.2 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test-000001/providers/Microsoft.HybridCompute/privateLinkScopes/scope-000001/privateEndpointConnections?api-version=2022-03-10
+ response:
+ body:
+ string: '{"value":[]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '12'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Fri, 06 May 2022 04:30:34 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Kestrel
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_connectedmachine_Scenario.yaml b/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_connectedmachine_Scenario.yaml
deleted file mode 100644
index ba573d5b070..00000000000
--- a/src/connectedmachine/azext_connectedmachine/tests/latest/recordings/test_connectedmachine_Scenario.yaml
+++ /dev/null
@@ -1,990 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine show
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM?api-version=2021-05-20&$expand=instanceView
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM","name":"sdkTestVM","location":"eastus2euap","tags":{},"identity":{"type":"SystemAssigned","principalId":"89888542-ded2-49d6-a64e-f15317b0792c","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"type":"Microsoft.HybridCompute/machines","properties":{"provisioningState":"Succeeded","agentVersion":"1.12.21285.002","status":"Connected","lastStatusChange":"2021-10-27T02:58:47.615613Z","errorDetails":[],"displayName":"dorothy-surface","machineFqdn":"dorothy-surface","osName":"windows","osVersion":"10.0.19043.1288","osProfile":{"computerName":"dorothy-surface"},"vmId":"c921de10-fd9d-47f0-86cd-b7e84d623e1d","vmUuid":"2883CCA3-7EE6-60E9-A204-97718B655D1D","clientPublicKey":"MIIBCgKCAQEAr96QKDsKlM7fn3gNYxNdelHLYEesEebJs8kUiJ5dPioP0Te5G33ib9ELuBN2FAAcHH90AYxqALHvzI/KBikhWQ916Xm9+JwMQs55ZA1tEquFfpHMfhntnWOxNVuogGu7IXuQ/w5S8lUpJGmSfsfUcDeEogI4mpnME00v32wMT6sG5S8khZ2L3kaXCoFiDFoZEAoRn/NCkmze7koUN+ffkTNkgMiGEQFMOO1RTXYfD1TFwcCJvv4BBV0bMX/oRIhamgNzmxgrTTDuQek82P+EVWSXm/7WMEFA3SykmCmfqMVqwWmdm61IVyC74P5lp2HhFMi6g0oxoPF4FUwUqM1nqQIDAQAB","osSku":"Windows
- 10 Enterprise","domainName":"redmond.corp.microsoft.com","adFqdn":"dorothy-surface.redmond.corp.microsoft.com","dnsFqdn":"redmond.corp.microsoft.com.dorothy-surface","detectedProperties":{"cloudprovider":"N/A","manufacturer":"Microsoft
- Corporation","model":"Surface Book 2","mssqldiscovered":"true"}},"resources":[]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1510'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 02:59:33 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine list
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines?api-version=2021-05-20
- response:
- body:
- string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/dorothylinux2-Virtual-Machine","name":"dorothylinux2-Virtual-Machine","location":"eastus2euap","tags":{},"identity":{"type":"SystemAssigned","principalId":"5ce02094-bd55-44ba-b1e4-2d56b6a6ba69","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"type":"Microsoft.HybridCompute/machines","properties":{"provisioningState":"Succeeded","agentVersion":"1.7.21162.005","status":"Expired","lastStatusChange":"2021-09-30T06:14:01.8555779Z","errorDetails":[],"displayName":"dorothylinux2-Virtual-Machine","machineFqdn":"dorothylinux2-Virtual-Machine","osName":"linux","osVersion":"5.8.0-59-generic","osProfile":{"computerName":"dorothylinux2-Virtual-Machine"},"vmId":"8948ef10-f369-471d-b363-8e2ff44614ca","vmUuid":"80f26cf0-d9a7-4637-a2ff-587bd51626fc","clientPublicKey":"MIIBCgKCAQEAukhdoNaMfaHRGP6MvgdWdyefHdET/mV0J3NdpMU+LFRE5IWwZxG+mGOb2lK3dsgX6HenWyRiumC2BMDX6RuLfRuscZw+HT/W4W/9ScDxbD18o4vECD7DmiFmIs4iPaF8GLTjO2fJzjAl59k7nblfr38SexA8EKo5WqG2LFhbT6CAXtBMPtWebWeZCQ3uXCri8838nDtqhQtqY6Efg4A2sEV9s4Mk7LjINpzcVuPYdvxcFngM22hixUawE9GH8UKIV5XF+/c8xk1b1fvUGizf+sNbgSMZFyJ3Vgg5ne5ibepxyR3WBtmvd3L/mF1negSh/5h9QQKTt7djeUYCb+ztjwIDAQAB","osSku":"Ubuntu
- 20.04 LTS","domainName":"unknown","adFqdn":"unknown","dnsFqdn":"dorothylinux2-Virtual-Machine","detectedProperties":{"cloudprovider":"N/A","manufacturer":"Microsoft
- Corporation","model":"Virtual Machine","mssqldiscovered":"false"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM","name":"sdkTestVM","location":"eastus2euap","tags":{},"identity":{"type":"SystemAssigned","principalId":"89888542-ded2-49d6-a64e-f15317b0792c","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"type":"Microsoft.HybridCompute/machines","properties":{"provisioningState":"Succeeded","agentVersion":"1.12.21285.002","status":"Connected","lastStatusChange":"2021-10-27T02:58:47.615613Z","errorDetails":[],"displayName":"dorothy-surface","machineFqdn":"dorothy-surface","osName":"windows","osVersion":"10.0.19043.1288","osProfile":{"computerName":"dorothy-surface"},"vmId":"c921de10-fd9d-47f0-86cd-b7e84d623e1d","vmUuid":"2883CCA3-7EE6-60E9-A204-97718B655D1D","clientPublicKey":"MIIBCgKCAQEAr96QKDsKlM7fn3gNYxNdelHLYEesEebJs8kUiJ5dPioP0Te5G33ib9ELuBN2FAAcHH90AYxqALHvzI/KBikhWQ916Xm9+JwMQs55ZA1tEquFfpHMfhntnWOxNVuogGu7IXuQ/w5S8lUpJGmSfsfUcDeEogI4mpnME00v32wMT6sG5S8khZ2L3kaXCoFiDFoZEAoRn/NCkmze7koUN+ffkTNkgMiGEQFMOO1RTXYfD1TFwcCJvv4BBV0bMX/oRIhamgNzmxgrTTDuQek82P+EVWSXm/7WMEFA3SykmCmfqMVqwWmdm61IVyC74P5lp2HhFMi6g0oxoPF4FUwUqM1nqQIDAQAB","osSku":"Windows
- 10 Enterprise","domainName":"redmond.corp.microsoft.com","adFqdn":"dorothy-surface.redmond.corp.microsoft.com","dnsFqdn":"redmond.corp.microsoft.com.dorothy-surface","detectedProperties":{"cloudprovider":"N/A","manufacturer":"Microsoft
- Corporation","model":"Surface Book 2","mssqldiscovered":"true"}}}]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3012'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 02:59:34 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus2euap", "properties": {"publisher": "Microsoft.Compute",
- "type": "CustomScriptExtension", "typeHandlerVersion": "1.10.10", "enableAutomaticUpgrade":
- true, "settings": {"commandToExecute": "powershell.exe -c \"Get-Process | Where-Object
- {{ $_.CPU -gt 10000 }}\""}, "instanceView": {"name": "CustomScriptExtension"}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension create
- Connection:
- - keep-alive
- Content-Length:
- - '335'
- Content-Type:
- - application/json
- ParameterSetName:
- - --name --location --enable-auto-upgrade --type --publisher --settings --type-handler-version
- --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension?api-version=2021-05-20
- response:
- body:
- string: ''
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/ef35a372-f75d-45e9-879f-2b9d078ac731?api-version=2021-05-20
- cache-control:
- - no-cache
- content-length:
- - '0'
- content-type:
- - application/json
- date:
- - Wed, 27 Oct 2021 02:59:37 GMT
- expires:
- - '-1'
- location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/ef35a372-f75d-45e9-879f-2b9d078ac731?api-version=2021-05-20
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '31'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension create
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --location --enable-auto-upgrade --type --publisher --settings --type-handler-version
- --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/ef35a372-f75d-45e9-879f-2b9d078ac731?api-version=2021-05-20
- response:
- body:
- string: '{"name":"ef35a372-f75d-45e9-879f-2b9d078ac731","status":"Succeeded","startTime":"2021-10-27T02:59:38.3382463Z","properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","location":"eastus2euap","type":"Microsoft.HybridCompute/machines/extensions","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"powershell.exe
- -c \"Get-Process | Where-Object {{ $_.CPU -gt 10000 }}\""},"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: 84 42368 4,653.03 4 0
- System \r\n 767 35 28232 52812 1.80 9792 1
- SystemSettings \r\n 412 22 12024 24476 952.66 14276 1
- TabTip \r\n 331 34 8944 18736 15.13 6648 1
- taskhostw \r\n 345 25 28212 54892 2.00 13700 1
- Teams \r\n 433 23 20512 46528 153.75 14372 1
- Teams \r\n 1774 82 194960 142400 1,522.69 15012 1
- Teams \r\n 1617 32 148328 93836 523.83 15256 1
- Teams \r\n 427 115 279468 261176 1,048.23 15288 1
- Teams \r\n 584 187 413364 354728 1,406.53 15876 1
- Teams \r\n 312 20 13436 58744 15.67 16364 1
- Teams \r\n 1491 72 171928 121760 1,903.17 16944 1
- Teams \r\n 859 50 41408 49008 277.03 8236 0
- TelemetryHost \r\n 567 23 13436 47496 11.00 13720 1
- TextInputHost \r\n 385 15 5108 20184 5.00 16748 0
- uhssvc \r\n 771 40 21440 1868 0.84 1216 1
- Video.UI \r\n 148 8 2132 9432 0.91 5380 0
- vmcompute \r\n 622 25 45464 32144 15.61 3928 0
- vmms \r\n 165 11 1404 5844 0.11 8 0
- wininit \r\n 269 12 2884 12888 4.36 1460 1
- winlogon \r\n 883 49 24612 64368 1.38 13572 1
- WinStore.App \r\n 372 20 52432 56504 782.44 2428 0
- WmiPrvSE \r\n 1070 49 38080 54128 4,884.28 6248 0
- WmiPrvSE \r\n 251 14 6164 13644 51.53 11664 0
- WmiPrvSE \r\n 619 33 59652 56708 148.95 13588 0
- WmiPrvSE \r\n 197 13 11696 14224 39.34 15800 0
- WmiPrvSE \r\n 177 10 3240 9272 7.94 16484 0
- WmiPrvSE \r\n 273 18 5296 17652 18.80 17232 0
- WmiPrvSE \r\n 303 19 5116 17332 0.36 21416 0
- WmiPrvSE \r\n 883 24 10500 13448 5.36 1416 0
- WUDFHost \r\n 332 15 6260 16020 51.55 1632 0
- WUDFHost \r\n 427 10 1956 6536 0.88 2248 0
- WUDFHost \r\n 324 21 1015876 32724 3,064.78 4464 0
- WUDFHost \r\n 921 50 31812 13148 2.34 19136 1
- YourPhone \r\n\r\n\r\n"}}}}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '5112'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:04:38 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension create
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --location --enable-auto-upgrade --type --publisher --settings --type-handler-version
- --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension?api-version=2021-05-20
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"powershell.exe
- -c \"Get-Process | Where-Object {{ $_.CPU -gt 10000 }}\""},"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: 84 42368 4,653.03 4 0
- System \r\n 767 35 28232 52812 1.80 9792 1
- SystemSettings \r\n 412 22 12024 24476 952.66 14276 1
- TabTip \r\n 331 34 8944 18736 15.13 6648 1
- taskhostw \r\n 345 25 28212 54892 2.00 13700 1
- Teams \r\n 433 23 20512 46528 153.75 14372 1
- Teams \r\n 1774 82 194960 142400 1,522.69 15012 1
- Teams \r\n 1617 32 148328 93836 523.83 15256 1
- Teams \r\n 427 115 279468 261176 1,048.23 15288 1
- Teams \r\n 584 187 413364 354728 1,406.53 15876 1
- Teams \r\n 312 20 13436 58744 15.67 16364 1
- Teams \r\n 1491 72 171928 121760 1,903.17 16944 1
- Teams \r\n 859 50 41408 49008 277.03 8236 0
- TelemetryHost \r\n 567 23 13436 47496 11.00 13720 1
- TextInputHost \r\n 385 15 5108 20184 5.00 16748 0
- uhssvc \r\n 771 40 21440 1868 0.84 1216 1
- Video.UI \r\n 148 8 2132 9432 0.91 5380 0
- vmcompute \r\n 622 25 45464 32144 15.61 3928 0
- vmms \r\n 165 11 1404 5844 0.11 8 0
- wininit \r\n 269 12 2884 12888 4.36 1460 1
- winlogon \r\n 883 49 24612 64368 1.38 13572 1
- WinStore.App \r\n 372 20 52432 56504 782.44 2428 0
- WmiPrvSE \r\n 1070 49 38080 54128 4,884.28 6248 0
- WmiPrvSE \r\n 251 14 6164 13644 51.53 11664 0
- WmiPrvSE \r\n 619 33 59652 56708 148.95 13588 0
- WmiPrvSE \r\n 197 13 11696 14224 39.34 15800 0
- WmiPrvSE \r\n 177 10 3240 9272 7.94 16484 0
- WmiPrvSE \r\n 273 18 5296 17652 18.80 17232 0
- WmiPrvSE \r\n 303 19 5116 17332 0.36 21416 0
- WmiPrvSE \r\n 883 24 10500 13448 5.36 1416 0
- WUDFHost \r\n 332 15 6260 16020 51.55 1632 0
- WUDFHost \r\n 427 10 1956 6536 0.88 2248 0
- WUDFHost \r\n 324 21 1015876 32724 3,064.78 4464 0
- WUDFHost \r\n 921 50 31812 13148 2.34 19136 1
- YourPhone \r\n\r\n\r\n"}}}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '4987'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:04:39 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension list
- Connection:
- - keep-alive
- ParameterSetName:
- - --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions?api-version=2021-05-20
- response:
- body:
- string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","location":"eastus2euap","type":"Microsoft.HybridCompute/machines/extensions","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"powershell.exe
- -c \"Get-Process | Where-Object {{ $_.CPU -gt 10000 }}\""},"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: 84 42368 4,653.03 4 0
- System \r\n 767 35 28232 52812 1.80 9792 1
- SystemSettings \r\n 412 22 12024 24476 952.66 14276 1
- TabTip \r\n 331 34 8944 18736 15.13 6648 1
- taskhostw \r\n 345 25 28212 54892 2.00 13700 1
- Teams \r\n 433 23 20512 46528 153.75 14372 1
- Teams \r\n 1774 82 194960 142400 1,522.69 15012 1
- Teams \r\n 1617 32 148328 93836 523.83 15256 1
- Teams \r\n 427 115 279468 261176 1,048.23 15288 1
- Teams \r\n 584 187 413364 354728 1,406.53 15876 1
- Teams \r\n 312 20 13436 58744 15.67 16364 1
- Teams \r\n 1491 72 171928 121760 1,903.17 16944 1
- Teams \r\n 859 50 41408 49008 277.03 8236 0
- TelemetryHost \r\n 567 23 13436 47496 11.00 13720 1
- TextInputHost \r\n 385 15 5108 20184 5.00 16748 0
- uhssvc \r\n 771 40 21440 1868 0.84 1216 1
- Video.UI \r\n 148 8 2132 9432 0.91 5380 0
- vmcompute \r\n 622 25 45464 32144 15.61 3928 0
- vmms \r\n 165 11 1404 5844 0.11 8 0
- wininit \r\n 269 12 2884 12888 4.36 1460 1
- winlogon \r\n 883 49 24612 64368 1.38 13572 1
- WinStore.App \r\n 372 20 52432 56504 782.44 2428 0
- WmiPrvSE \r\n 1070 49 38080 54128 4,884.28 6248 0
- WmiPrvSE \r\n 251 14 6164 13644 51.53 11664 0
- WmiPrvSE \r\n 619 33 59652 56708 148.95 13588 0
- WmiPrvSE \r\n 197 13 11696 14224 39.34 15800 0
- WmiPrvSE \r\n 177 10 3240 9272 7.94 16484 0
- WmiPrvSE \r\n 273 18 5296 17652 18.80 17232 0
- WmiPrvSE \r\n 303 19 5116 17332 0.36 21416 0
- WmiPrvSE \r\n 883 24 10500 13448 5.36 1416 0
- WUDFHost \r\n 332 15 6260 16020 51.55 1632 0
- WUDFHost \r\n 427 10 1956 6536 0.88 2248 0
- WUDFHost \r\n 324 21 1015876 32724 3,064.78 4464 0
- WUDFHost \r\n 921 50 31812 13148 2.34 19136 1
- YourPhone \r\n\r\n\r\n"}}}}]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '4999'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:04:40 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension show
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension?api-version=2021-05-20
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":true,"settings":{"commandToExecute":"powershell.exe
- -c \"Get-Process | Where-Object {{ $_.CPU -gt 10000 }}\""},"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.10","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: 84 42368 4,653.03 4 0
- System \r\n 767 35 28232 52812 1.80 9792 1
- SystemSettings \r\n 412 22 12024 24476 952.66 14276 1
- TabTip \r\n 331 34 8944 18736 15.13 6648 1
- taskhostw \r\n 345 25 28212 54892 2.00 13700 1
- Teams \r\n 433 23 20512 46528 153.75 14372 1
- Teams \r\n 1774 82 194960 142400 1,522.69 15012 1
- Teams \r\n 1617 32 148328 93836 523.83 15256 1
- Teams \r\n 427 115 279468 261176 1,048.23 15288 1
- Teams \r\n 584 187 413364 354728 1,406.53 15876 1
- Teams \r\n 312 20 13436 58744 15.67 16364 1
- Teams \r\n 1491 72 171928 121760 1,903.17 16944 1
- Teams \r\n 859 50 41408 49008 277.03 8236 0
- TelemetryHost \r\n 567 23 13436 47496 11.00 13720 1
- TextInputHost \r\n 385 15 5108 20184 5.00 16748 0
- uhssvc \r\n 771 40 21440 1868 0.84 1216 1
- Video.UI \r\n 148 8 2132 9432 0.91 5380 0
- vmcompute \r\n 622 25 45464 32144 15.61 3928 0
- vmms \r\n 165 11 1404 5844 0.11 8 0
- wininit \r\n 269 12 2884 12888 4.36 1460 1
- winlogon \r\n 883 49 24612 64368 1.38 13572 1
- WinStore.App \r\n 372 20 52432 56504 782.44 2428 0
- WmiPrvSE \r\n 1070 49 38080 54128 4,884.28 6248 0
- WmiPrvSE \r\n 251 14 6164 13644 51.53 11664 0
- WmiPrvSE \r\n 619 33 59652 56708 148.95 13588 0
- WmiPrvSE \r\n 197 13 11696 14224 39.34 15800 0
- WmiPrvSE \r\n 177 10 3240 9272 7.94 16484 0
- WmiPrvSE \r\n 273 18 5296 17652 18.80 17232 0
- WmiPrvSE \r\n 303 19 5116 17332 0.36 21416 0
- WmiPrvSE \r\n 883 24 10500 13448 5.36 1416 0
- WUDFHost \r\n 332 15 6260 16020 51.55 1632 0
- WUDFHost \r\n 427 10 1956 6536 0.88 2248 0
- WUDFHost \r\n 324 21 1015876 32724 3,064.78 4464 0
- WUDFHost \r\n 921 50 31812 13148 2.34 19136 1
- YourPhone \r\n\r\n\r\n"}}}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '4987'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:04:41 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"extensionTargets": {"Microsoft.Compute.CustomScriptExtension": {"targetVersion":
- "1.10.12"}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine upgrade-extension
- Connection:
- - keep-alive
- Content-Length:
- - '95'
- Content-Type:
- - application/json
- ParameterSetName:
- - --extension-targets --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: POST
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/upgradeExtensions?api-version=2021-05-20
- response:
- body:
- string: ''
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/3b0fe23e-bdfe-4dc7-8913-2c7a2575754b?api-version=2021-05-20
- cache-control:
- - no-cache
- content-length:
- - '0'
- content-type:
- - application/json
- date:
- - Wed, 27 Oct 2021 03:04:42 GMT
- expires:
- - '-1'
- location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/3b0fe23e-bdfe-4dc7-8913-2c7a2575754b?api-version=2021-05-20
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine upgrade-extension
- Connection:
- - keep-alive
- ParameterSetName:
- - --extension-targets --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/3b0fe23e-bdfe-4dc7-8913-2c7a2575754b?api-version=2021-05-20
- response:
- body:
- string: '{"name":"3b0fe23e-bdfe-4dc7-8913-2c7a2575754b","status":"Succeeded","startTime":"2021-10-27T03:04:42.5873351Z","properties":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: 84 42368 4,653.03 4 0
- System \r\n 767 35 28232 52812 1.80 9792 1
- SystemSettings \r\n 412 22 12024 24476 952.66 14276 1
- TabTip \r\n 331 34 8944 18736 15.13 6648 1
- taskhostw \r\n 345 25 28212 54892 2.00 13700 1
- Teams \r\n 433 23 20512 46528 153.75 14372 1
- Teams \r\n 1774 82 194960 142400 1,522.69 15012 1
- Teams \r\n 1617 32 148328 93836 523.83 15256 1
- Teams \r\n 427 115 279468 261176 1,048.23 15288 1
- Teams \r\n 584 187 413364 354728 1,406.53 15876 1
- Teams \r\n 312 20 13436 58744 15.67 16364 1
- Teams \r\n 1491 72 171928 121760 1,903.17 16944 1
- Teams \r\n 859 50 41408 49008 277.03 8236 0
- TelemetryHost \r\n 567 23 13436 47496 11.00 13720 1
- TextInputHost \r\n 385 15 5108 20184 5.00 16748 0
- uhssvc \r\n 771 40 21440 1868 0.84 1216 1
- Video.UI \r\n 148 8 2132 9432 0.91 5380 0
- vmcompute \r\n 622 25 45464 32144 15.61 3928 0
- vmms \r\n 165 11 1404 5844 0.11 8 0
- wininit \r\n 269 12 2884 12888 4.36 1460 1
- winlogon \r\n 883 49 24612 64368 1.38 13572 1
- WinStore.App \r\n 372 20 52432 56504 782.44 2428 0
- WmiPrvSE \r\n 1070 49 38080 54128 4,884.28 6248 0
- WmiPrvSE \r\n 251 14 6164 13644 51.53 11664 0
- WmiPrvSE \r\n 619 33 59652 56708 148.95 13588 0
- WmiPrvSE \r\n 197 13 11696 14224 39.34 15800 0
- WmiPrvSE \r\n 177 10 3240 9272 7.94 16484 0
- WmiPrvSE \r\n 273 18 5296 17652 18.80 17232 0
- WmiPrvSE \r\n 303 19 5116 17332 0.36 21416 0
- WmiPrvSE \r\n 883 24 10500 13448 5.36 1416 0
- WUDFHost \r\n 332 15 6260 16020 51.55 1632 0
- WUDFHost \r\n 427 10 1956 6536 0.88 2248 0
- WUDFHost \r\n 324 21 1015876 32724 3,064.78 4464 0
- WUDFHost \r\n 921 50 31812 13148 2.34 19136 1
- YourPhone \r\n\r\n\r\n"}}}}]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '5009'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:09:43 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine upgrade-extension
- Connection:
- - keep-alive
- ParameterSetName:
- - --extension-targets --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/3b0fe23e-bdfe-4dc7-8913-2c7a2575754b?api-version=2021-05-20
- response:
- body:
- string: '[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: 84 42368 4,653.03 4 0
- System \r\n 767 35 28232 52812 1.80 9792 1
- SystemSettings \r\n 412 22 12024 24476 952.66 14276 1
- TabTip \r\n 331 34 8944 18736 15.13 6648 1
- taskhostw \r\n 345 25 28212 54892 2.00 13700 1
- Teams \r\n 433 23 20512 46528 153.75 14372 1
- Teams \r\n 1774 82 194960 142400 1,522.69 15012 1
- Teams \r\n 1617 32 148328 93836 523.83 15256 1
- Teams \r\n 427 115 279468 261176 1,048.23 15288 1
- Teams \r\n 584 187 413364 354728 1,406.53 15876 1
- Teams \r\n 312 20 13436 58744 15.67 16364 1
- Teams \r\n 1491 72 171928 121760 1,903.17 16944 1
- Teams \r\n 859 50 41408 49008 277.03 8236 0
- TelemetryHost \r\n 567 23 13436 47496 11.00 13720 1
- TextInputHost \r\n 385 15 5108 20184 5.00 16748 0
- uhssvc \r\n 771 40 21440 1868 0.84 1216 1
- Video.UI \r\n 148 8 2132 9432 0.91 5380 0
- vmcompute \r\n 622 25 45464 32144 15.61 3928 0
- vmms \r\n 165 11 1404 5844 0.11 8 0
- wininit \r\n 269 12 2884 12888 4.36 1460 1
- winlogon \r\n 883 49 24612 64368 1.38 13572 1
- WinStore.App \r\n 372 20 52432 56504 782.44 2428 0
- WmiPrvSE \r\n 1070 49 38080 54128 4,884.28 6248 0
- WmiPrvSE \r\n 251 14 6164 13644 51.53 11664 0
- WmiPrvSE \r\n 619 33 59652 56708 148.95 13588 0
- WmiPrvSE \r\n 197 13 11696 14224 39.34 15800 0
- WmiPrvSE \r\n 177 10 3240 9272 7.94 16484 0
- WmiPrvSE \r\n 273 18 5296 17652 18.80 17232 0
- WmiPrvSE \r\n 303 19 5116 17332 0.36 21416 0
- WmiPrvSE \r\n 883 24 10500 13448 5.36 1416 0
- WUDFHost \r\n 332 15 6260 16020 51.55 1632 0
- WUDFHost \r\n 427 10 1956 6536 0.88 2248 0
- WUDFHost \r\n 324 21 1015876 32724 3,064.78 4464 0
- WUDFHost \r\n 921 50 31812 13148 2.34 19136 1
- YourPhone \r\n\r\n\r\n"}}}}]'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '4884'
- content-type:
- - application/json
- date:
- - Wed, 27 Oct 2021 03:09:44 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"properties": {"enableAutomaticUpgrade": false, "settings": {"commandToExecute":
- "hostname"}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension update
- Connection:
- - keep-alive
- Content-Length:
- - '95'
- Content-Type:
- - application/json
- ParameterSetName:
- - --name --enable-auto-upgrade --settings --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: PATCH
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension?api-version=2021-05-20
- response:
- body:
- string: ''
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/5f8a2d25-c330-4e42-b03c-350221d80930?api-version=2021-05-20
- cache-control:
- - no-cache
- content-length:
- - '0'
- content-type:
- - application/json
- date:
- - Wed, 27 Oct 2021 03:09:44 GMT
- expires:
- - '-1'
- location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/5f8a2d25-c330-4e42-b03c-350221d80930?api-version=2021-05-20
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '31'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension update
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --enable-auto-upgrade --settings --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/5f8a2d25-c330-4e42-b03c-350221d80930?api-version=2021-05-20
- response:
- body:
- string: '{"name":"5f8a2d25-c330-4e42-b03c-350221d80930","status":"Succeeded","startTime":"2021-10-27T03:09:45.3470506Z","properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","location":"eastus2euap","type":"Microsoft.HybridCompute/machines/extensions","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: dorothy-surface\r\n"}}}}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '901'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:14:45 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension update
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --enable-auto-upgrade --settings --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension?api-version=2021-05-20
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension","name":"CustomScriptExtension","type":"Microsoft.HybridCompute/machines/extensions","location":"eastus2euap","properties":{"publisher":"Microsoft.Compute","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","autoUpgradeMinorVersion":false,"enableAutomaticUpgrade":false,"settings":{"commandToExecute":"hostname"},"provisioningState":"Succeeded","instanceView":{"name":"CustomScriptExtension","type":"CustomScriptExtension","typeHandlerVersion":"1.10.12","status":{"code":"success","level":"Information","message":"Extension
- Message: Command execution finished, StdOut: dorothy-surface\r\n"}}}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '776'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:14:46 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension delete
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- ParameterSetName:
- - -y --name --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM/extensions/CustomScriptExtension?api-version=2021-05-20
- response:
- body:
- string: ''
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/e2245146-96ea-48ca-8092-f3ed2e6dde0b?api-version=2021-05-20
- cache-control:
- - no-cache
- content-length:
- - '0'
- content-type:
- - application/json
- date:
- - Wed, 27 Oct 2021 03:14:49 GMT
- expires:
- - '-1'
- location:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationresults/e2245146-96ea-48ca-8092-f3ed2e6dde0b?api-version=2021-05-20
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-deletes:
- - '14999'
- status:
- code: 202
- message: Accepted
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine extension delete
- Connection:
- - keep-alive
- ParameterSetName:
- - -y --name --machine-name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute/locations/eastus2euap/operationstatus/e2245146-96ea-48ca-8092-f3ed2e6dde0b?api-version=2021-05-20
- response:
- body:
- string: '{"name":"e2245146-96ea-48ca-8092-f3ed2e6dde0b","status":"Succeeded","startTime":"2021-10-27T03:14:49.1147266Z"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '111'
- content-type:
- - application/json; charset=utf-8
- date:
- - Wed, 27 Oct 2021 03:19:49 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - connectedmachine delete
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- ParameterSetName:
- - -y --name --resource-group
- User-Agent:
- - AZURECLI/2.25.0 azsdk-python-mgmt-hybridcompute/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19043-SP0)
- method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/az-sdk-test/providers/Microsoft.HybridCompute/machines/sdkTestVM?api-version=2021-05-20
- response:
- body:
- string: ''
- headers:
- cache-control:
- - no-cache
- content-length:
- - '0'
- content-type:
- - application/json
- date:
- - Wed, 27 Oct 2021 03:19:55 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Kestrel
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-deletes:
- - '14999'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/test_ConnectedMachineAndExtension_scenario.py b/src/connectedmachine/azext_connectedmachine/tests/latest/test_ConnectedMachineAndExtension_scenario.py
new file mode 100644
index 00000000000..99c491b0fd7
--- /dev/null
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/test_ConnectedMachineAndExtension_scenario.py
@@ -0,0 +1,141 @@
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for
+# license information.
+#
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is
+# regenerated.
+# --------------------------------------------------------------------------
+
+import os
+from azure.cli.testsdk import ScenarioTest
+from azure.cli.testsdk import ResourceGroupPreparer
+from .example_steps import step_show
+from .example_steps import step_list
+from .example_steps import step_extension_create
+from .example_steps import step_extension_list
+from .example_steps import step_extension_show
+from .example_steps import step_extension_update
+from .example_steps import step_upgrade_extension
+from .example_steps import step_extension_delete
+from .example_steps import step_delete
+from .. import (
+ try_manual,
+ raise_if,
+ calc_coverage
+)
+
+
+TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
+
+
+# Env setup_scenario
+@try_manual
+def setup_scenario(test):
+ pass
+
+
+# Env cleanup_scenario
+@try_manual
+def cleanup_scenario(test):
+ pass
+
+
+@try_manual
+def test_machine_and_extension(test):
+ test.kwargs.update({
+ 'machine': 'testMachine',
+ 'rg': 'az-sdk-test',
+ 'location': 'eastus2euap',
+ 'customScriptName': test.create_random_name('custom-', 20),
+ })
+
+ test.cmd('az connectedmachine show -n {machine} -g {rg}', checks=[
+ test.check('name', '{machine}'),
+ test.check('resourceGroup', '{rg}')
+ ])
+
+ test.cmd('az connectedmachine list -g {rg}', checks=[
+ test.check('length(@)', 2)
+ ])
+
+ test.cmd('az connectedmachine extension create '
+ '--name "{customScriptName}" '
+ '--location "{location}" '
+ '--enable-auto-upgrade true '
+ '--type "CustomScriptExtension" '
+ '--publisher "Microsoft.Compute" '
+ '--type-handler-version "1.10.10" '
+ '--machine-name "{machine}" '
+ '--resource-group "{rg}" '
+ '--settings "{{\\"commandToExecute\\":\\"hostname\\"}}"',
+ checks=[
+ test.check('name', '{customScriptName}'),
+ test.check('properties.typeHandlerVersion', '1.10.10'),
+ test.check('properties.settings.commandToExecute', 'hostname')
+ ])
+
+ test.cmd('az connectedmachine extension list '
+ '--machine-name {machine} -g {rg}',
+ checks=[
+ test.check('length(@)', 1)
+ ])
+
+ test.cmd('az connectedmachine extension show '
+ '--name {customScriptName} '
+ '--machine-name "{machine}" '
+ '--resource-group "{rg}"',
+ checks=[
+ test.check('name', '{customScriptName}'),
+ test.check('properties.typeHandlerVersion', '1.10.10')
+ ])
+
+ test.cmd('az connectedmachine upgrade-extension '
+ '--extension-targets "{{\\"Microsoft.Compute.CustomScriptExtension\\":{{\\"targetVersion\\":\\"1.10.12\\"}}}}" '
+ '--machine-name "{machine}" '
+ '--resource-group "{rg}"',
+ checks=[])
+
+ test.cmd('az connectedmachine extension update '
+ '--name "{customScriptName}" '
+ '--settings "{{\\"commandToExecute\\":\\"dir\\"}}" '
+ '--machine-name "{machine}" '
+ '--resource-group "{rg}"',
+ checks=[
+ test.check('name', '{customScriptName}'),
+ test.check('properties.provisioningState', 'Succeeded'),
+ test.check('properties.settings.commandToExecute', 'dir'),
+ test.check('properties.typeHandlerVersion', '1.10.12')
+ ])
+
+ test.cmd('az connectedmachine extension delete -y '
+ '--name "{customScriptName}" '
+ '--machine-name "{machine}" '
+ '--resource-group "{rg}"',
+ checks=[])
+
+ test.cmd('az connectedmachine delete -y '
+ '--name "{machine}" '
+ '--resource-group "{rg}"',
+ checks=[])
+
+# Testcase: Scenario
+@try_manual
+def call_scenario(test):
+ setup_scenario(test)
+ test_machine_and_extension(test)
+ cleanup_scenario(test)
+
+
+# Test class for Scenario
+@try_manual
+class ConnectedMachineAndExtensionScenarioTest(ScenarioTest):
+ def __init__(self, *args, **kwargs):
+ super(ConnectedMachineAndExtensionScenarioTest, self).__init__(*args, **kwargs)
+
+
+ def test_ConnectedMachineAndExtension_Scenario(self):
+ call_scenario(self)
+ calc_coverage(__file__)
+ raise_if()
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/test_ConnectedMachineAndExtension_scenario_coverage.md b/src/connectedmachine/azext_connectedmachine/tests/latest/test_ConnectedMachineAndExtension_scenario_coverage.md
new file mode 100644
index 00000000000..cb712843009
--- /dev/null
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/test_ConnectedMachineAndExtension_scenario_coverage.md
@@ -0,0 +1,2 @@
+|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt|
+Coverage: 0/0
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/test_PrivateLinkAndPrivateEndpointConnection_scenario.py b/src/connectedmachine/azext_connectedmachine/tests/latest/test_PrivateLinkAndPrivateEndpointConnection_scenario.py
new file mode 100644
index 00000000000..d46a0a1bdc8
--- /dev/null
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/test_PrivateLinkAndPrivateEndpointConnection_scenario.py
@@ -0,0 +1,180 @@
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for
+# license information.
+#
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is
+# regenerated.
+# --------------------------------------------------------------------------
+
+import os
+from azure.cli.testsdk import ScenarioTest
+from azure.cli.testsdk import ResourceGroupPreparer
+from .example_steps import step_private_link_resource_list
+from .example_steps import step_private_link_scope_create
+from .example_steps import step_private_link_scope_update
+from .example_steps import step_private_link_scope_show
+from .example_steps import step_private_link_scope_list
+from .example_steps import step_private_link_scope_list2
+from .example_steps import step_private_link_scope_update_tag
+from .example_steps import step_private_endpoint_connection_update
+from .example_steps import step_private_endpoint_connection_list
+from .example_steps import step_private_endpoint_connection_show
+from .example_steps import step_private_endpoint_connection_delete
+from .example_steps import step_private_link_scope_delete
+from .. import (
+ try_manual,
+ raise_if,
+ calc_coverage
+)
+
+
+TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
+
+
+# Env setup_scenario
+@try_manual
+def setup_scenario(test):
+ pass
+
+
+# Env cleanup_scenario
+@try_manual
+def cleanup_scenario(test):
+ pass
+
+
+def test_private_link(test):
+ rand_string = test.create_random_name('', 5)
+ test.kwargs.update({
+ 'machine': 'testMachine',
+ 'rg': 'az-sdk-test-' + rand_string,
+ 'scope': 'scope-' + rand_string,
+ 'vnet': 'vnet-' + rand_string,
+ 'subnet': 'subnet-' + rand_string,
+ 'private_endpoint': 'pe-' + rand_string,
+ 'private_endpoint_connection': 'pec-' + rand_string,
+ 'location': 'eastus2euap',
+ 'customScriptName': 'custom-' + rand_string,
+ })
+
+ # Prepare network
+ test.cmd('az group create -n {rg} -l {location}',
+ checks=test.check('name', '{rg}'))
+
+ # Prepare network
+ test.cmd('az network vnet create -n {vnet} -g {rg} -l {location} --subnet-name {subnet}',
+ checks=test.check('length(newVNet.subnets)', 1))
+ test.cmd('az network vnet subnet update -n {subnet} --vnet-name {vnet} -g {rg} '
+ '--disable-private-endpoint-network-policies true',
+ checks=test.check('privateEndpointNetworkPolicies', 'Disabled'))
+
+ # Create a private link scope
+ test.cmd('az connectedmachine private-link-scope create '
+ '--location "{location}" '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[
+ test.check('name','{scope}'),
+ test.check('properties.publicNetworkAccess','Disabled')
+ ])
+
+ # Update the private link scope
+ test.cmd('az connectedmachine private-link-scope update '
+ '--location "{location}" '
+ '--tags Tag1="Value1" '
+ '--public-network-access Enabled '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[
+ test.check('name','{scope}'),
+ test.check('properties.publicNetworkAccess','Enabled')
+ ])
+
+ # Test private link scope list
+ test.cmd('az connectedmachine private-link-scope list '
+ '--resource-group "{rg}"',
+ checks=[
+ test.check('length(@)', 1)
+ ])
+
+ # Private link scope update tag
+ test.cmd('az connectedmachine private-link-scope update-tag '
+ '--tags Tag1="Value1" Tag2="Value2" '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[
+ test.check('length(tags)', 2)
+ ])
+
+ # Private link scope show
+ private_link_scope = test.cmd('az connectedmachine private-link-scope show --scope-name {scope} -g {rg}').get_output_in_json()
+ test.kwargs['scope_id'] = private_link_scope['id']
+
+ # Test private link resource list
+ test.cmd('az connectedmachine private-link-resource list --scope-name {scope} -g {rg}', checks=[
+ test.check('length(@)', 1)
+ ])
+
+ result = test.cmd('az network private-endpoint create -g {rg} -n {private_endpoint} --vnet-name {vnet} --subnet {subnet} --private-connection-resource-id {scope_id} '
+ '--connection-name {private_endpoint_connection} --group-id hybridcompute').get_output_in_json()
+ test.assertTrue(test.kwargs['private_endpoint'].lower() in result['name'].lower())
+
+ connection_list = test.cmd('az connectedmachine private-endpoint-connection list '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"').get_output_in_json()
+ test.kwargs['private_endpoint_connection_name'] = connection_list[0]['name']
+
+ test.cmd('az connectedmachine private-endpoint-connection update '
+ '--connection-state description="Rejected by AZ CLI test" status="Rejected" '
+ '--name "{private_endpoint_connection_name}" '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[
+ test.check('name', '{private_endpoint_connection_name}'),
+ test.check('properties.privateLinkServiceConnectionState.description', 'Rejected by AZ CLI test'),
+ test.check('properties.privateLinkServiceConnectionState.status', 'Rejected')
+ ])
+
+ test.cmd('az connectedmachine private-endpoint-connection show '
+ '--name "{private_endpoint_connection_name}" '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[
+ test.check('name', '{private_endpoint_connection_name}'),
+ test.check('properties.privateLinkServiceConnectionState.description', 'Rejected by AZ CLI test'),
+ test.check('properties.privateLinkServiceConnectionState.status', 'Rejected')
+ ])
+
+ test.cmd('az connectedmachine private-endpoint-connection delete -y '
+ '--name "{private_endpoint_connection_name}" '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[])
+
+ test.cmd('az connectedmachine private-endpoint-connection list '
+ '--resource-group "{rg}" '
+ '--scope-name "{scope}"',
+ checks=[
+ test.check('length(@)', 0)
+ ])
+
+
+# Testcase: Scenario
+@try_manual
+def call_scenario(test):
+ setup_scenario(test)
+ test_private_link(test)
+ cleanup_scenario(test)
+
+
+# Test class for Scenario
+@try_manual
+class PrivateLinkAndPrivateEndpointConnectionScenarioTest(ScenarioTest):
+ def __init__(self, *args, **kwargs):
+ super(PrivateLinkAndPrivateEndpointConnectionScenarioTest, self).__init__(*args, **kwargs)
+ def test_PrivateLinkAndPrivateEndpointConnection_Scenario(self):
+ call_scenario(self)
+ calc_coverage(__file__)
+ raise_if()
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/test_PrivateLinkAndPrivateEndpointConnection_scenario_coverage.md b/src/connectedmachine/azext_connectedmachine/tests/latest/test_PrivateLinkAndPrivateEndpointConnection_scenario_coverage.md
new file mode 100644
index 00000000000..cb712843009
--- /dev/null
+++ b/src/connectedmachine/azext_connectedmachine/tests/latest/test_PrivateLinkAndPrivateEndpointConnection_scenario_coverage.md
@@ -0,0 +1,2 @@
+|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt|
+Coverage: 0/0
diff --git a/src/connectedmachine/azext_connectedmachine/tests/latest/test_connectedmachine_scenario.py b/src/connectedmachine/azext_connectedmachine/tests/latest/test_connectedmachine_scenario.py
deleted file mode 100644
index 1455de589fc..00000000000
--- a/src/connectedmachine/azext_connectedmachine/tests/latest/test_connectedmachine_scenario.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# --------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for
-# license information.
-#
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is
-# regenerated.
-# --------------------------------------------------------------------------
-
-import os
-from azure.cli.testsdk import ScenarioTest
-from azure.cli.testsdk import ResourceGroupPreparer
-from .example_steps import step_show
-from .example_steps import step_list
-from .example_steps import step_upgrade_extension
-from .example_steps import step_extension_create
-from .example_steps import step_extension_list
-from .example_steps import step_extension_show
-from .example_steps import step_extension_update
-from .example_steps import step_extension_delete
-from .example_steps import step_delete
-from .example_steps import step_private_endpoint_connection_update
-from .example_steps import step_private_endpoint_connection_list
-from .example_steps import step_private_endpoint_connection_show
-from .example_steps import step_private_endpoint_connection_delete
-from .example_steps import step_private_link_resource_list
-from .example_steps import step_private_link_scope_create
-from .example_steps import step_private_link_scope_update
-from .example_steps import step_private_link_scope_show
-from .example_steps import step_private_link_scope_list
-from .example_steps import step_private_link_scope_update_tag
-from .example_steps import step_private_link_scope_delete
-from .. import (
- try_manual,
- raise_if,
- calc_coverage
-)
-
-
-TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
-
-MACHINE_NAME = 'sdkTestVM'
-RESOURCE_GROUP = 'az-sdk-test'
-LOCATION = 'eastus2euap'
-EXTENSION_NAME = 'CustomScriptExtension'
-SCOPE_NAME = ''
-PRIVATE_ENDPOINT_NAME = ''
-
-# Env setup_scenario
-@try_manual
-def setup_scenario(test):
- pass
-
-
-# Env cleanup_scenario
-@try_manual
-def cleanup_scenario(test):
- pass
-
-
-# Testcase: Scenario
-@try_manual
-def call_scenario(test):
- setup_scenario(test)
- step_show(test, checks=[
- test.check('name', MACHINE_NAME),
- test.check('resourceGroup', RESOURCE_GROUP)
- ])
- step_list(test, checks=[
- test.check('length(@)', 2)
- ])
- step_extension_create(test, checks=[
- test.check('name', EXTENSION_NAME),
- test.check('properties.typeHandlerVersion', '1.10.10')
- ])
- step_extension_list(test, checks=[
- test.check('length(@)', 1)
- ])
- step_extension_show(test, checks=[
- test.check('name', EXTENSION_NAME),
- test.check('properties.typeHandlerVersion', '1.10.10')
- ])
- step_upgrade_extension(test, checks=[])
- step_extension_update(test, checks=[
- test.check('name', EXTENSION_NAME),
- test.check('properties.provisioningState', 'Succeeded'),
- test.check('properties.settings.commandToExecute', 'hostname'),
- test.check('properties.typeHandlerVersion', '1.10.12')
- ])
- step_extension_delete(test, checks=[])
- step_delete(test, checks=[])
- # Below functions are manually tested
- # --------------------------------------------------------------
- # step_private_link_scope_create(test, checks=[
- # test.check('name', SCOPE_NAME),
- # test.check('location', LOCATION),
- # test.check('length(tags)', 0)
- # ])
- # step_private_link_scope_update(test, checks=[
-
- # ])
- # step_private_link_scope_show(test, checks=[])
- # step_private_link_scope_list(test, checks=[])
- # step_private_link_scope_update_tag(test, checks=[])
- # step_private_link_scope_delete(test, checks=[])
-
- # step_private_endpoint_connection_list(test, checks=[
- # test.check('length(@)', 1),
- # ])
- # step_private_endpoint_connection_show(test, checks=[
- # test.check("name", "{myPrivateEndpointConnection}", case_sensitive=False),
- # ])
- # step_private_endpoint_connection_delete(test, checks=[])
- # step_private_link_resource_list(test, checks=[])
- cleanup_scenario(test)
-
-
-# Test class for Scenario
-@try_manual
-class ConnectedmachineScenarioTest(ScenarioTest):
- def __init__(self, *args, **kwargs):
- super(ConnectedmachineScenarioTest, self).__init__(*args, **kwargs)
- self.kwargs.update({
- 'myMachine': 'myMachine',
- 'myMachine2': 'machineName',
- 'myPrivateEndpointConnection': 'private-endpoint-connection-name',
- })
-
- @ResourceGroupPreparer(name_prefix='clitestconnectedmachine_myResourceGroup'[:7], key='rg', parameter_name='rg')
- @ResourceGroupPreparer(name_prefix='clitestconnectedmachine_my-resource-group'[:7], key='rg_2',
- parameter_name='rg_2')
- def test_connectedmachine_Scenario(self, rg, rg_2):
- call_scenario(self)
- calc_coverage(__file__)
- raise_if()
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/_configuration.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/_configuration.py
index 102684e1826..c7c9373c9d8 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/_configuration.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/_configuration.py
@@ -48,7 +48,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
- self.api_version = "2021-05-20"
+ self.api_version = "2022-03-10"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-hybridcompute/{}'.format(VERSION))
self._configure(**kwargs)
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/_configuration.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/_configuration.py
index 04e5e5f423c..2ea09f521a0 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/_configuration.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/_configuration.py
@@ -45,7 +45,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
- self.api_version = "2021-05-20"
+ self.api_version = "2022-03-10"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-hybridcompute/{}'.format(VERSION))
self._configure(**kwargs)
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_connected_machine_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_connected_machine_operations.py
index b05efa22595..228a61224a8 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_connected_machine_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_connected_machine_operations.py
@@ -34,7 +34,7 @@ async def _upgrade_extensions_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -63,7 +63,7 @@ async def _upgrade_extensions_initial(
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
- if response.status_code not in [202]:
+ if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machine_extensions_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machine_extensions_operations.py
index b9868deb183..fb842b7813b 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machine_extensions_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machine_extensions_operations.py
@@ -56,7 +56,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -190,7 +190,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -323,7 +323,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -452,7 +452,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -515,7 +515,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machines_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machines_operations.py
index c066f92566e..7a88248b470 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machines_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_machines_operations.py
@@ -63,7 +63,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -122,7 +122,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -181,7 +181,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -250,7 +250,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_operations.py
index 581f88b893a..8c9cc6fd77e 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_operations.py
@@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_endpoint_connections_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_endpoint_connections_operations.py
index 29a4616941d..9f69296c1c3 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_endpoint_connections_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_endpoint_connections_operations.py
@@ -68,7 +68,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -119,7 +119,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -252,7 +252,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -378,7 +378,7 @@ def list_by_private_link_scope(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_resources_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_resources_operations.py
index 59d91002542..9548d75237c 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_resources_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_resources_operations.py
@@ -63,7 +63,7 @@ def list_by_private_link_scope(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -141,7 +141,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_scopes_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_scopes_operations.py
index dcc71ced523..7016f1261ab 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_scopes_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/aio/operations/_private_link_scopes_operations.py
@@ -59,7 +59,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -129,7 +129,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -192,7 +192,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -312,7 +312,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -376,7 +376,7 @@ async def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -449,7 +449,7 @@ async def update_tags(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -513,7 +513,7 @@ async def get_validation_details(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -573,7 +573,7 @@ async def get_validation_details_for_machine(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/__init__.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/__init__.py
index 1046533c5d8..9db77773a31 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/__init__.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/__init__.py
@@ -7,6 +7,9 @@
# --------------------------------------------------------------------------
try:
+ from ._models_py3 import AgentConfiguration
+ from ._models_py3 import CloudMetadata
+ from ._models_py3 import ConfigurationExtension
from ._models_py3 import ConnectionDetail
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
@@ -34,7 +37,10 @@
from ._models_py3 import OperationValue
from ._models_py3 import OperationValueDisplay
from ._models_py3 import OsProfile
+ from ._models_py3 import OsProfileLinuxConfiguration
+ from ._models_py3 import OsProfileWindowsConfiguration
from ._models_py3 import PrivateEndpointConnection
+ from ._models_py3 import PrivateEndpointConnectionDataModel
from ._models_py3 import PrivateEndpointConnectionListResult
from ._models_py3 import PrivateEndpointConnectionProperties
from ._models_py3 import PrivateEndpointProperty
@@ -47,10 +53,15 @@
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import ResourceUpdate
+ from ._models_py3 import ServiceStatus
+ from ._models_py3 import ServiceStatuses
from ._models_py3 import SystemData
from ._models_py3 import TagsResource
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
+ from ._models import AgentConfiguration # type: ignore
+ from ._models import CloudMetadata # type: ignore
+ from ._models import ConfigurationExtension # type: ignore
from ._models import ConnectionDetail # type: ignore
from ._models import ErrorAdditionalInfo # type: ignore
from ._models import ErrorDetail # type: ignore
@@ -78,7 +89,10 @@
from ._models import OperationValue # type: ignore
from ._models import OperationValueDisplay # type: ignore
from ._models import OsProfile # type: ignore
+ from ._models import OsProfileLinuxConfiguration # type: ignore
+ from ._models import OsProfileWindowsConfiguration # type: ignore
from ._models import PrivateEndpointConnection # type: ignore
+ from ._models import PrivateEndpointConnectionDataModel # type: ignore
from ._models import PrivateEndpointConnectionListResult # type: ignore
from ._models import PrivateEndpointConnectionProperties # type: ignore
from ._models import PrivateEndpointProperty # type: ignore
@@ -91,19 +105,26 @@
from ._models import ProxyResource # type: ignore
from ._models import Resource # type: ignore
from ._models import ResourceUpdate # type: ignore
+ from ._models import ServiceStatus # type: ignore
+ from ._models import ServiceStatuses # type: ignore
from ._models import SystemData # type: ignore
from ._models import TagsResource # type: ignore
from ._models import TrackedResource # type: ignore
from ._connected_machine_enums import (
+ AssessmentModeTypes,
CreatedByType,
InstanceViewTypes,
+ PatchModeTypes,
PublicNetworkAccessType,
StatusLevelTypes,
StatusTypes,
)
__all__ = [
+ 'AgentConfiguration',
+ 'CloudMetadata',
+ 'ConfigurationExtension',
'ConnectionDetail',
'ErrorAdditionalInfo',
'ErrorDetail',
@@ -131,7 +152,10 @@
'OperationValue',
'OperationValueDisplay',
'OsProfile',
+ 'OsProfileLinuxConfiguration',
+ 'OsProfileWindowsConfiguration',
'PrivateEndpointConnection',
+ 'PrivateEndpointConnectionDataModel',
'PrivateEndpointConnectionListResult',
'PrivateEndpointConnectionProperties',
'PrivateEndpointProperty',
@@ -144,11 +168,15 @@
'ProxyResource',
'Resource',
'ResourceUpdate',
+ 'ServiceStatus',
+ 'ServiceStatuses',
'SystemData',
'TagsResource',
'TrackedResource',
+ 'AssessmentModeTypes',
'CreatedByType',
'InstanceViewTypes',
+ 'PatchModeTypes',
'PublicNetworkAccessType',
'StatusLevelTypes',
'StatusTypes',
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_connected_machine_enums.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_connected_machine_enums.py
index dec09de8f57..c88ee3bbe4d 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_connected_machine_enums.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_connected_machine_enums.py
@@ -26,6 +26,13 @@ def __getattr__(cls, name):
raise AttributeError(name)
+class AssessmentModeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
+ """Specifies the assessment mode.
+ """
+
+ IMAGE_DEFAULT = "ImageDefault"
+ AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform"
+
class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The type of identity that created the resource.
"""
@@ -39,6 +46,15 @@ class InstanceViewTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
INSTANCE_VIEW = "instanceView"
+class PatchModeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
+ """Specifies the patch mode.
+ """
+
+ IMAGE_DEFAULT = "ImageDefault"
+ AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform"
+ AUTOMATIC_BY_OS = "AutomaticByOS"
+ MANUAL = "Manual"
+
class PublicNetworkAccessType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The network access policy to determine if Azure Arc agents can use public Azure Arc service
endpoints. Defaults to disabled (access to Azure Arc services only via private link).
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models.py
index c430690dd8d..e9192629f9a 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models.py
@@ -10,6 +10,119 @@
import msrest.serialization
+class AgentConfiguration(msrest.serialization.Model):
+ """Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar proxy_url: Specifies the URL of the proxy to be used.
+ :vartype proxy_url: str
+ :ivar incoming_connections_ports: Specifies the list of ports that the agent will be able to
+ listen on.
+ :vartype incoming_connections_ports: list[str]
+ :ivar extensions_allow_list: Array of extensions that are allowed to be installed or updated.
+ :vartype extensions_allow_list: list[~azure.mgmt.hybridcompute.models.ConfigurationExtension]
+ :ivar extensions_block_list: Array of extensions that are blocked (cannot be installed or
+ updated).
+ :vartype extensions_block_list: list[~azure.mgmt.hybridcompute.models.ConfigurationExtension]
+ :ivar proxy_bypass: List of service names which should not use the specified proxy server.
+ :vartype proxy_bypass: list[str]
+ :ivar extensions_enabled: Specifies whether the extension service is enabled or disabled.
+ :vartype extensions_enabled: str
+ :ivar guest_configuration_enabled: Specified whether the guest configuration service is enabled
+ or disabled.
+ :vartype guest_configuration_enabled: str
+ """
+
+ _validation = {
+ 'proxy_url': {'readonly': True},
+ 'incoming_connections_ports': {'readonly': True},
+ 'extensions_allow_list': {'readonly': True},
+ 'extensions_block_list': {'readonly': True},
+ 'proxy_bypass': {'readonly': True},
+ 'extensions_enabled': {'readonly': True},
+ 'guest_configuration_enabled': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'proxy_url': {'key': 'proxyUrl', 'type': 'str'},
+ 'incoming_connections_ports': {'key': 'incomingConnectionsPorts', 'type': '[str]'},
+ 'extensions_allow_list': {'key': 'extensionsAllowList', 'type': '[ConfigurationExtension]'},
+ 'extensions_block_list': {'key': 'extensionsBlockList', 'type': '[ConfigurationExtension]'},
+ 'proxy_bypass': {'key': 'proxyBypass', 'type': '[str]'},
+ 'extensions_enabled': {'key': 'extensionsEnabled', 'type': 'str'},
+ 'guest_configuration_enabled': {'key': 'guestConfigurationEnabled', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(AgentConfiguration, self).__init__(**kwargs)
+ self.proxy_url = None
+ self.incoming_connections_ports = None
+ self.extensions_allow_list = None
+ self.extensions_block_list = None
+ self.proxy_bypass = None
+ self.extensions_enabled = None
+ self.guest_configuration_enabled = None
+
+
+class CloudMetadata(msrest.serialization.Model):
+ """The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provider: Specifies the cloud provider (Azure/AWS/GCP...).
+ :vartype provider: str
+ """
+
+ _validation = {
+ 'provider': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provider': {'key': 'provider', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(CloudMetadata, self).__init__(**kwargs)
+ self.provider = None
+
+
+class ConfigurationExtension(msrest.serialization.Model):
+ """Describes properties that can identify extensions.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar publisher: Publisher of the extension.
+ :vartype publisher: str
+ :ivar type: Type of the extension.
+ :vartype type: str
+ """
+
+ _validation = {
+ 'publisher': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'publisher': {'key': 'publisher', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(ConfigurationExtension, self).__init__(**kwargs)
+ self.publisher = None
+ self.type = None
+
+
class ConnectionDetail(msrest.serialization.Model):
"""ConnectionDetail.
@@ -309,17 +422,22 @@ class HybridComputePrivateLinkScopeProperties(msrest.serialization.Model):
:vartype provisioning_state: str
:ivar private_link_scope_id: The Guid id of the private link scope.
:vartype private_link_scope_id: str
+ :ivar private_endpoint_connections: The collection of associated Private Endpoint Connections.
+ :vartype private_endpoint_connections:
+ list[~azure.mgmt.hybridcompute.models.PrivateEndpointConnectionDataModel]
"""
_validation = {
'provisioning_state': {'readonly': True},
'private_link_scope_id': {'readonly': True},
+ 'private_endpoint_connections': {'readonly': True},
}
_attribute_map = {
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'private_link_scope_id': {'key': 'privateLinkScopeId', 'type': 'str'},
+ 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnectionDataModel]'},
}
def __init__(
@@ -330,6 +448,7 @@ def __init__(
self.public_network_access = kwargs.get('public_network_access', "Disabled")
self.provisioning_state = None
self.private_link_scope_id = None
+ self.private_endpoint_connections = None
class Identity(msrest.serialization.Model):
@@ -675,9 +794,9 @@ class MachineExtensionProperties(msrest.serialization.Model):
:type type: str
:param type_handler_version: Specifies the version of the script handler.
:type type_handler_version: str
- :param enable_auto_upgrade: Indicates whether the extension should be automatically
+ :param enable_automatic_upgrade: Indicates whether the extension should be automatically
upgraded by the platform if there is a newer version available.
- :type enable_auto_upgrade: bool
+ :type enable_automatic_upgrade: bool
:param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor
version if one is available at deployment time. Once deployed, however, the extension will not
upgrade minor versions unless redeployed, even with this property set to true.
@@ -702,7 +821,7 @@ class MachineExtensionProperties(msrest.serialization.Model):
'publisher': {'key': 'publisher', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'},
- 'enable_auto_upgrade': {'key': 'enableAutomaticUpgrade', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'enableAutomaticUpgrade', 'type': 'bool'},
'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'},
'settings': {'key': 'settings', 'type': 'object'},
'protected_settings': {'key': 'protectedSettings', 'type': 'object'},
@@ -719,7 +838,7 @@ def __init__(
self.publisher = kwargs.get('publisher', None)
self.type = kwargs.get('type', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
- self.enable_auto_upgrade = kwargs.get('enable_auto_upgrade', None)
+ self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
@@ -804,9 +923,6 @@ class MachineExtensionUpdateProperties(msrest.serialization.Model):
:type type: str
:param type_handler_version: Specifies the version of the script handler.
:type type_handler_version: str
- :param enable_auto_upgrade: Indicates whether the extension should be automatically
- upgraded by the platform if there is a newer version available.
- :type enable_auto_upgrade: bool
:param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor
version if one is available at deployment time. Once deployed, however, the extension will not
upgrade minor versions unless redeployed, even with this property set to true.
@@ -823,7 +939,6 @@ class MachineExtensionUpdateProperties(msrest.serialization.Model):
'publisher': {'key': 'publisher', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'},
- 'enable_auto_upgrade': {'key': 'enableAutomaticUpgrade', 'type': 'bool'},
'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'},
'settings': {'key': 'settings', 'type': 'object'},
'protected_settings': {'key': 'protectedSettings', 'type': 'object'},
@@ -838,7 +953,6 @@ def __init__(
self.publisher = kwargs.get('publisher', None)
self.type = kwargs.get('type', None)
self.type_handler_version = kwargs.get('type_handler_version', None)
- self.enable_auto_upgrade = kwargs.get('enable_auto_upgrade', None)
self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None)
self.settings = kwargs.get('settings', None)
self.protected_settings = kwargs.get('protected_settings', None)
@@ -900,8 +1014,15 @@ class MachineProperties(msrest.serialization.Model):
:param location_data: Metadata pertaining to the geographic location of the resource.
:type location_data: ~azure.mgmt.hybridcompute.models.LocationData
- :ivar os_profile: Specifies the operating system settings for the hybrid machine.
- :vartype os_profile: ~azure.mgmt.hybridcompute.models.OsProfile
+ :ivar agent_configuration: Configurable properties that the user can set locally via the
+ azcmagent config command, or remotely via ARM.
+ :vartype agent_configuration: ~azure.mgmt.hybridcompute.models.AgentConfiguration
+ :param service_statuses: Statuses of dependent services that are reported back to ARM.
+ :type service_statuses: ~azure.mgmt.hybridcompute.models.ServiceStatuses
+ :param cloud_metadata: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ :type cloud_metadata: ~azure.mgmt.hybridcompute.models.CloudMetadata
+ :param os_profile: Specifies the operating system settings for the hybrid machine.
+ :type os_profile: ~azure.mgmt.hybridcompute.models.OsProfile
:ivar provisioning_state: The provisioning state, which only appears in the response.
:vartype provisioning_state: str
:ivar status: The status of the hybrid machine agent. Possible values include: "Connected",
@@ -926,6 +1047,8 @@ class MachineProperties(msrest.serialization.Model):
:vartype os_name: str
:ivar os_version: The version of Operating System running on the hybrid machine.
:vartype os_version: str
+ :param os_type: The type of Operating System (windows/linux).
+ :type os_type: str
:ivar vm_uuid: Specifies the Arc Machine's unique SMBIOS ID.
:vartype vm_uuid: str
:param extensions: Machine Extensions information.
@@ -944,12 +1067,14 @@ class MachineProperties(msrest.serialization.Model):
:param parent_cluster_resource_id: The resource id of the parent cluster (Azure HCI) this
machine is assigned to, if any.
:type parent_cluster_resource_id: str
+ :param mssql_discovered: Specifies whether any MS SQL instance is discovered on the machine.
+ :type mssql_discovered: str
:ivar detected_properties: Detected properties from the machine.
:vartype detected_properties: dict[str, str]
"""
_validation = {
- 'os_profile': {'readonly': True},
+ 'agent_configuration': {'readonly': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'last_status_change': {'readonly': True},
@@ -969,6 +1094,9 @@ class MachineProperties(msrest.serialization.Model):
_attribute_map = {
'location_data': {'key': 'locationData', 'type': 'LocationData'},
+ 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentConfiguration'},
+ 'service_statuses': {'key': 'serviceStatuses', 'type': 'ServiceStatuses'},
+ 'cloud_metadata': {'key': 'cloudMetadata', 'type': 'CloudMetadata'},
'os_profile': {'key': 'osProfile', 'type': 'OsProfile'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
@@ -981,6 +1109,7 @@ class MachineProperties(msrest.serialization.Model):
'client_public_key': {'key': 'clientPublicKey', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
+ 'os_type': {'key': 'osType', 'type': 'str'},
'vm_uuid': {'key': 'vmUuid', 'type': 'str'},
'extensions': {'key': 'extensions', 'type': '[MachineExtensionInstanceView]'},
'os_sku': {'key': 'osSku', 'type': 'str'},
@@ -989,6 +1118,7 @@ class MachineProperties(msrest.serialization.Model):
'dns_fqdn': {'key': 'dnsFqdn', 'type': 'str'},
'private_link_scope_resource_id': {'key': 'privateLinkScopeResourceId', 'type': 'str'},
'parent_cluster_resource_id': {'key': 'parentClusterResourceId', 'type': 'str'},
+ 'mssql_discovered': {'key': 'mssqlDiscovered', 'type': 'str'},
'detected_properties': {'key': 'detectedProperties', 'type': '{str}'},
}
@@ -998,7 +1128,10 @@ def __init__(
):
super(MachineProperties, self).__init__(**kwargs)
self.location_data = kwargs.get('location_data', None)
- self.os_profile = None
+ self.agent_configuration = None
+ self.service_statuses = kwargs.get('service_statuses', None)
+ self.cloud_metadata = kwargs.get('cloud_metadata', None)
+ self.os_profile = kwargs.get('os_profile', None)
self.provisioning_state = None
self.status = None
self.last_status_change = None
@@ -1010,6 +1143,7 @@ def __init__(
self.client_public_key = kwargs.get('client_public_key', None)
self.os_name = None
self.os_version = None
+ self.os_type = kwargs.get('os_type', None)
self.vm_uuid = None
self.extensions = kwargs.get('extensions', None)
self.os_sku = None
@@ -1018,6 +1152,7 @@ def __init__(
self.dns_fqdn = None
self.private_link_scope_resource_id = kwargs.get('private_link_scope_resource_id', None)
self.parent_cluster_resource_id = kwargs.get('parent_cluster_resource_id', None)
+ self.mssql_discovered = kwargs.get('mssql_discovered', None)
self.detected_properties = None
@@ -1052,6 +1187,10 @@ class MachineUpdateProperties(msrest.serialization.Model):
:param location_data: Metadata pertaining to the geographic location of the resource.
:type location_data: ~azure.mgmt.hybridcompute.models.LocationData
+ :param os_profile: Specifies the operating system settings for the hybrid machine.
+ :type os_profile: ~azure.mgmt.hybridcompute.models.OsProfile
+ :param cloud_metadata: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ :type cloud_metadata: ~azure.mgmt.hybridcompute.models.CloudMetadata
:param parent_cluster_resource_id: The resource id of the parent cluster (Azure HCI) this
machine is assigned to, if any.
:type parent_cluster_resource_id: str
@@ -1062,6 +1201,8 @@ class MachineUpdateProperties(msrest.serialization.Model):
_attribute_map = {
'location_data': {'key': 'locationData', 'type': 'LocationData'},
+ 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'},
+ 'cloud_metadata': {'key': 'cloudMetadata', 'type': 'CloudMetadata'},
'parent_cluster_resource_id': {'key': 'parentClusterResourceId', 'type': 'str'},
'private_link_scope_resource_id': {'key': 'privateLinkScopeResourceId', 'type': 'str'},
}
@@ -1072,6 +1213,8 @@ def __init__(
):
super(MachineUpdateProperties, self).__init__(**kwargs)
self.location_data = kwargs.get('location_data', None)
+ self.os_profile = kwargs.get('os_profile', None)
+ self.cloud_metadata = kwargs.get('cloud_metadata', None)
self.parent_cluster_resource_id = kwargs.get('parent_cluster_resource_id', None)
self.private_link_scope_resource_id = kwargs.get('private_link_scope_resource_id', None)
@@ -1112,17 +1255,21 @@ class OperationValue(msrest.serialization.Model):
:vartype name: str
:param display: Display properties.
:type display: ~azure.mgmt.hybridcompute.models.OperationValueDisplay
+ :ivar is_data_action: This property indicates if the operation is an action or a data action.
+ :vartype is_data_action: bool
"""
_validation = {
'origin': {'readonly': True},
'name': {'readonly': True},
+ 'is_data_action': {'readonly': True},
}
_attribute_map = {
'origin': {'key': 'origin', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationValueDisplay'},
+ 'is_data_action': {'key': 'isDataAction', 'type': 'bool'},
}
def __init__(
@@ -1133,6 +1280,7 @@ def __init__(
self.origin = None
self.name = None
self.display = kwargs.get('display', None)
+ self.is_data_action = None
class OperationValueDisplay(msrest.serialization.Model):
@@ -1182,6 +1330,10 @@ class OsProfile(msrest.serialization.Model):
:ivar computer_name: Specifies the host OS name of the hybrid machine.
:vartype computer_name: str
+ :param windows_configuration: Specifies the windows configuration for update management.
+ :type windows_configuration: ~azure.mgmt.hybridcompute.models.OsProfileWindowsConfiguration
+ :param linux_configuration: Specifies the linux configuration for update management.
+ :type linux_configuration: ~azure.mgmt.hybridcompute.models.OsProfileLinuxConfiguration
"""
_validation = {
@@ -1190,6 +1342,8 @@ class OsProfile(msrest.serialization.Model):
_attribute_map = {
'computer_name': {'key': 'computerName', 'type': 'str'},
+ 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'OsProfileWindowsConfiguration'},
+ 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'OsProfileLinuxConfiguration'},
}
def __init__(
@@ -1198,6 +1352,58 @@ def __init__(
):
super(OsProfile, self).__init__(**kwargs)
self.computer_name = None
+ self.windows_configuration = kwargs.get('windows_configuration', None)
+ self.linux_configuration = kwargs.get('linux_configuration', None)
+
+
+class OsProfileLinuxConfiguration(msrest.serialization.Model):
+ """Specifies the linux configuration for update management.
+
+ :param assessment_mode: Specifies the assessment mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform".
+ :type assessment_mode: str or ~azure.mgmt.hybridcompute.models.AssessmentModeTypes
+ :param patch_mode: Specifies the patch mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform", "AutomaticByOS", "Manual".
+ :type patch_mode: str or ~azure.mgmt.hybridcompute.models.PatchModeTypes
+ """
+
+ _attribute_map = {
+ 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'},
+ 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(OsProfileLinuxConfiguration, self).__init__(**kwargs)
+ self.assessment_mode = kwargs.get('assessment_mode', None)
+ self.patch_mode = kwargs.get('patch_mode', None)
+
+
+class OsProfileWindowsConfiguration(msrest.serialization.Model):
+ """Specifies the windows configuration for update management.
+
+ :param assessment_mode: Specifies the assessment mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform".
+ :type assessment_mode: str or ~azure.mgmt.hybridcompute.models.AssessmentModeTypes
+ :param patch_mode: Specifies the patch mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform", "AutomaticByOS", "Manual".
+ :type patch_mode: str or ~azure.mgmt.hybridcompute.models.PatchModeTypes
+ """
+
+ _attribute_map = {
+ 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'},
+ 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(OsProfileWindowsConfiguration, self).__init__(**kwargs)
+ self.assessment_mode = kwargs.get('assessment_mode', None)
+ self.patch_mode = kwargs.get('patch_mode', None)
class PrivateEndpointConnection(Resource):
@@ -1243,6 +1449,45 @@ def __init__(
self.system_data = None
+class PrivateEndpointConnectionDataModel(msrest.serialization.Model):
+ """The Data Model for a Private Endpoint Connection associated with a Private Link Scope.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: The ARM Resource Id of the Private Endpoint.
+ :vartype id: str
+ :ivar name: The Name of the Private Endpoint.
+ :vartype name: str
+ :ivar type: Azure resource type.
+ :vartype type: str
+ :param properties: The Private Endpoint Connection properties.
+ :type properties: ~azure.mgmt.hybridcompute.models.PrivateEndpointConnectionProperties
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnectionProperties'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(PrivateEndpointConnectionDataModel, self).__init__(**kwargs)
+ self.id = None
+ self.name = None
+ self.type = None
+ self.properties = kwargs.get('properties', None)
+
+
class PrivateEndpointConnectionListResult(msrest.serialization.Model):
"""A list of private endpoint connections.
@@ -1286,16 +1531,20 @@ class PrivateEndpointConnectionProperties(msrest.serialization.Model):
~azure.mgmt.hybridcompute.models.PrivateLinkServiceConnectionStateProperty
:ivar provisioning_state: State of the private endpoint connection.
:vartype provisioning_state: str
+ :ivar group_ids: List of group IDs.
+ :vartype group_ids: list[str]
"""
_validation = {
'provisioning_state': {'readonly': True},
+ 'group_ids': {'readonly': True},
}
_attribute_map = {
'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpointProperty'},
'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionStateProperty'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'group_ids': {'key': 'groupIds', 'type': '[str]'},
}
def __init__(
@@ -1306,6 +1555,7 @@ def __init__(
self.private_endpoint = kwargs.get('private_endpoint', None)
self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None)
self.provisioning_state = None
+ self.group_ids = None
class PrivateEndpointProperty(msrest.serialization.Model):
@@ -1541,6 +1791,53 @@ def __init__(
super(ProxyResource, self).__init__(**kwargs)
+class ServiceStatus(msrest.serialization.Model):
+ """Describes the status and behavior of a service.
+
+ :param status: The current status of the service.
+ :type status: str
+ :param startup_type: The behavior of the service when the Arc-enabled machine starts up.
+ :type startup_type: str
+ """
+
+ _attribute_map = {
+ 'status': {'key': 'status', 'type': 'str'},
+ 'startup_type': {'key': 'startupType', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(ServiceStatus, self).__init__(**kwargs)
+ self.status = kwargs.get('status', None)
+ self.startup_type = kwargs.get('startup_type', None)
+
+
+class ServiceStatuses(msrest.serialization.Model):
+ """Reports the state and behavior of dependent services.
+
+ :param extension_service: The state of the extension service on the Arc-enabled machine.
+ :type extension_service: ~azure.mgmt.hybridcompute.models.ServiceStatus
+ :param guest_configuration_service: The state of the guest configuration service on the Arc-
+ enabled machine.
+ :type guest_configuration_service: ~azure.mgmt.hybridcompute.models.ServiceStatus
+ """
+
+ _attribute_map = {
+ 'extension_service': {'key': 'extensionService', 'type': 'ServiceStatus'},
+ 'guest_configuration_service': {'key': 'guestConfigurationService', 'type': 'ServiceStatus'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(ServiceStatuses, self).__init__(**kwargs)
+ self.extension_service = kwargs.get('extension_service', None)
+ self.guest_configuration_service = kwargs.get('guest_configuration_service', None)
+
+
class SystemData(msrest.serialization.Model):
"""Metadata pertaining to creation and last modification of the resource.
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models_py3.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models_py3.py
index 53262b0d285..0d76e93a88f 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models_py3.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/models/_models_py3.py
@@ -15,6 +15,119 @@
from ._connected_machine_enums import *
+class AgentConfiguration(msrest.serialization.Model):
+ """Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar proxy_url: Specifies the URL of the proxy to be used.
+ :vartype proxy_url: str
+ :ivar incoming_connections_ports: Specifies the list of ports that the agent will be able to
+ listen on.
+ :vartype incoming_connections_ports: list[str]
+ :ivar extensions_allow_list: Array of extensions that are allowed to be installed or updated.
+ :vartype extensions_allow_list: list[~azure.mgmt.hybridcompute.models.ConfigurationExtension]
+ :ivar extensions_block_list: Array of extensions that are blocked (cannot be installed or
+ updated).
+ :vartype extensions_block_list: list[~azure.mgmt.hybridcompute.models.ConfigurationExtension]
+ :ivar proxy_bypass: List of service names which should not use the specified proxy server.
+ :vartype proxy_bypass: list[str]
+ :ivar extensions_enabled: Specifies whether the extension service is enabled or disabled.
+ :vartype extensions_enabled: str
+ :ivar guest_configuration_enabled: Specified whether the guest configuration service is enabled
+ or disabled.
+ :vartype guest_configuration_enabled: str
+ """
+
+ _validation = {
+ 'proxy_url': {'readonly': True},
+ 'incoming_connections_ports': {'readonly': True},
+ 'extensions_allow_list': {'readonly': True},
+ 'extensions_block_list': {'readonly': True},
+ 'proxy_bypass': {'readonly': True},
+ 'extensions_enabled': {'readonly': True},
+ 'guest_configuration_enabled': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'proxy_url': {'key': 'proxyUrl', 'type': 'str'},
+ 'incoming_connections_ports': {'key': 'incomingConnectionsPorts', 'type': '[str]'},
+ 'extensions_allow_list': {'key': 'extensionsAllowList', 'type': '[ConfigurationExtension]'},
+ 'extensions_block_list': {'key': 'extensionsBlockList', 'type': '[ConfigurationExtension]'},
+ 'proxy_bypass': {'key': 'proxyBypass', 'type': '[str]'},
+ 'extensions_enabled': {'key': 'extensionsEnabled', 'type': 'str'},
+ 'guest_configuration_enabled': {'key': 'guestConfigurationEnabled', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(AgentConfiguration, self).__init__(**kwargs)
+ self.proxy_url = None
+ self.incoming_connections_ports = None
+ self.extensions_allow_list = None
+ self.extensions_block_list = None
+ self.proxy_bypass = None
+ self.extensions_enabled = None
+ self.guest_configuration_enabled = None
+
+
+class CloudMetadata(msrest.serialization.Model):
+ """The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provider: Specifies the cloud provider (Azure/AWS/GCP...).
+ :vartype provider: str
+ """
+
+ _validation = {
+ 'provider': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provider': {'key': 'provider', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(CloudMetadata, self).__init__(**kwargs)
+ self.provider = None
+
+
+class ConfigurationExtension(msrest.serialization.Model):
+ """Describes properties that can identify extensions.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar publisher: Publisher of the extension.
+ :vartype publisher: str
+ :ivar type: Type of the extension.
+ :vartype type: str
+ """
+
+ _validation = {
+ 'publisher': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'publisher': {'key': 'publisher', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(ConfigurationExtension, self).__init__(**kwargs)
+ self.publisher = None
+ self.type = None
+
+
class ConnectionDetail(msrest.serialization.Model):
"""ConnectionDetail.
@@ -328,17 +441,22 @@ class HybridComputePrivateLinkScopeProperties(msrest.serialization.Model):
:vartype provisioning_state: str
:ivar private_link_scope_id: The Guid id of the private link scope.
:vartype private_link_scope_id: str
+ :ivar private_endpoint_connections: The collection of associated Private Endpoint Connections.
+ :vartype private_endpoint_connections:
+ list[~azure.mgmt.hybridcompute.models.PrivateEndpointConnectionDataModel]
"""
_validation = {
'provisioning_state': {'readonly': True},
'private_link_scope_id': {'readonly': True},
+ 'private_endpoint_connections': {'readonly': True},
}
_attribute_map = {
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'private_link_scope_id': {'key': 'privateLinkScopeId', 'type': 'str'},
+ 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnectionDataModel]'},
}
def __init__(
@@ -351,6 +469,7 @@ def __init__(
self.public_network_access = public_network_access
self.provisioning_state = None
self.private_link_scope_id = None
+ self.private_endpoint_connections = None
class Identity(msrest.serialization.Model):
@@ -724,9 +843,9 @@ class MachineExtensionProperties(msrest.serialization.Model):
:type type: str
:param type_handler_version: Specifies the version of the script handler.
:type type_handler_version: str
- :param enable_auto_upgrade: Indicates whether the extension should be automatically
+ :param enable_automatic_upgrade: Indicates whether the extension should be automatically
upgraded by the platform if there is a newer version available.
- :type enable_auto_upgrade: bool
+ :type enable_automatic_upgrade: bool
:param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor
version if one is available at deployment time. Once deployed, however, the extension will not
upgrade minor versions unless redeployed, even with this property set to true.
@@ -751,7 +870,7 @@ class MachineExtensionProperties(msrest.serialization.Model):
'publisher': {'key': 'publisher', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'},
- 'enable_auto_upgrade': {'key': 'enableAutomaticUpgrade', 'type': 'bool'},
+ 'enable_automatic_upgrade': {'key': 'enableAutomaticUpgrade', 'type': 'bool'},
'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'},
'settings': {'key': 'settings', 'type': 'object'},
'protected_settings': {'key': 'protectedSettings', 'type': 'object'},
@@ -766,7 +885,7 @@ def __init__(
publisher: Optional[str] = None,
type: Optional[str] = None,
type_handler_version: Optional[str] = None,
- enable_auto_upgrade: Optional[bool] = None,
+ enable_automatic_upgrade: Optional[bool] = None,
auto_upgrade_minor_version: Optional[bool] = None,
settings: Optional[object] = None,
protected_settings: Optional[object] = None,
@@ -778,7 +897,7 @@ def __init__(
self.publisher = publisher
self.type = type
self.type_handler_version = type_handler_version
- self.enable_auto_upgrade = enable_auto_upgrade
+ self.enable_automatic_upgrade = enable_automatic_upgrade
self.auto_upgrade_minor_version = auto_upgrade_minor_version
self.settings = settings
self.protected_settings = protected_settings
@@ -871,9 +990,6 @@ class MachineExtensionUpdateProperties(msrest.serialization.Model):
:type type: str
:param type_handler_version: Specifies the version of the script handler.
:type type_handler_version: str
- :param enable_auto_upgrade: Indicates whether the extension should be automatically
- upgraded by the platform if there is a newer version available.
- :type enable_auto_upgrade: bool
:param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor
version if one is available at deployment time. Once deployed, however, the extension will not
upgrade minor versions unless redeployed, even with this property set to true.
@@ -890,7 +1006,6 @@ class MachineExtensionUpdateProperties(msrest.serialization.Model):
'publisher': {'key': 'publisher', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'},
- 'enable_auto_upgrade': {'key': 'enableAutomaticUpgrade', 'type': 'bool'},
'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'},
'settings': {'key': 'settings', 'type': 'object'},
'protected_settings': {'key': 'protectedSettings', 'type': 'object'},
@@ -903,7 +1018,6 @@ def __init__(
publisher: Optional[str] = None,
type: Optional[str] = None,
type_handler_version: Optional[str] = None,
- enable_auto_upgrade: Optional[bool] = None,
auto_upgrade_minor_version: Optional[bool] = None,
settings: Optional[object] = None,
protected_settings: Optional[object] = None,
@@ -914,7 +1028,6 @@ def __init__(
self.publisher = publisher
self.type = type
self.type_handler_version = type_handler_version
- self.enable_auto_upgrade = enable_auto_upgrade
self.auto_upgrade_minor_version = auto_upgrade_minor_version
self.settings = settings
self.protected_settings = protected_settings
@@ -981,8 +1094,15 @@ class MachineProperties(msrest.serialization.Model):
:param location_data: Metadata pertaining to the geographic location of the resource.
:type location_data: ~azure.mgmt.hybridcompute.models.LocationData
- :ivar os_profile: Specifies the operating system settings for the hybrid machine.
- :vartype os_profile: ~azure.mgmt.hybridcompute.models.OsProfile
+ :ivar agent_configuration: Configurable properties that the user can set locally via the
+ azcmagent config command, or remotely via ARM.
+ :vartype agent_configuration: ~azure.mgmt.hybridcompute.models.AgentConfiguration
+ :param service_statuses: Statuses of dependent services that are reported back to ARM.
+ :type service_statuses: ~azure.mgmt.hybridcompute.models.ServiceStatuses
+ :param cloud_metadata: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ :type cloud_metadata: ~azure.mgmt.hybridcompute.models.CloudMetadata
+ :param os_profile: Specifies the operating system settings for the hybrid machine.
+ :type os_profile: ~azure.mgmt.hybridcompute.models.OsProfile
:ivar provisioning_state: The provisioning state, which only appears in the response.
:vartype provisioning_state: str
:ivar status: The status of the hybrid machine agent. Possible values include: "Connected",
@@ -1007,6 +1127,8 @@ class MachineProperties(msrest.serialization.Model):
:vartype os_name: str
:ivar os_version: The version of Operating System running on the hybrid machine.
:vartype os_version: str
+ :param os_type: The type of Operating System (windows/linux).
+ :type os_type: str
:ivar vm_uuid: Specifies the Arc Machine's unique SMBIOS ID.
:vartype vm_uuid: str
:param extensions: Machine Extensions information.
@@ -1025,12 +1147,14 @@ class MachineProperties(msrest.serialization.Model):
:param parent_cluster_resource_id: The resource id of the parent cluster (Azure HCI) this
machine is assigned to, if any.
:type parent_cluster_resource_id: str
+ :param mssql_discovered: Specifies whether any MS SQL instance is discovered on the machine.
+ :type mssql_discovered: str
:ivar detected_properties: Detected properties from the machine.
:vartype detected_properties: dict[str, str]
"""
_validation = {
- 'os_profile': {'readonly': True},
+ 'agent_configuration': {'readonly': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'last_status_change': {'readonly': True},
@@ -1050,6 +1174,9 @@ class MachineProperties(msrest.serialization.Model):
_attribute_map = {
'location_data': {'key': 'locationData', 'type': 'LocationData'},
+ 'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentConfiguration'},
+ 'service_statuses': {'key': 'serviceStatuses', 'type': 'ServiceStatuses'},
+ 'cloud_metadata': {'key': 'cloudMetadata', 'type': 'CloudMetadata'},
'os_profile': {'key': 'osProfile', 'type': 'OsProfile'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
@@ -1062,6 +1189,7 @@ class MachineProperties(msrest.serialization.Model):
'client_public_key': {'key': 'clientPublicKey', 'type': 'str'},
'os_name': {'key': 'osName', 'type': 'str'},
'os_version': {'key': 'osVersion', 'type': 'str'},
+ 'os_type': {'key': 'osType', 'type': 'str'},
'vm_uuid': {'key': 'vmUuid', 'type': 'str'},
'extensions': {'key': 'extensions', 'type': '[MachineExtensionInstanceView]'},
'os_sku': {'key': 'osSku', 'type': 'str'},
@@ -1070,6 +1198,7 @@ class MachineProperties(msrest.serialization.Model):
'dns_fqdn': {'key': 'dnsFqdn', 'type': 'str'},
'private_link_scope_resource_id': {'key': 'privateLinkScopeResourceId', 'type': 'str'},
'parent_cluster_resource_id': {'key': 'parentClusterResourceId', 'type': 'str'},
+ 'mssql_discovered': {'key': 'mssqlDiscovered', 'type': 'str'},
'detected_properties': {'key': 'detectedProperties', 'type': '{str}'},
}
@@ -1077,16 +1206,24 @@ def __init__(
self,
*,
location_data: Optional["LocationData"] = None,
+ service_statuses: Optional["ServiceStatuses"] = None,
+ cloud_metadata: Optional["CloudMetadata"] = None,
+ os_profile: Optional["OsProfile"] = None,
vm_id: Optional[str] = None,
client_public_key: Optional[str] = None,
+ os_type: Optional[str] = None,
extensions: Optional[List["MachineExtensionInstanceView"]] = None,
private_link_scope_resource_id: Optional[str] = None,
parent_cluster_resource_id: Optional[str] = None,
+ mssql_discovered: Optional[str] = None,
**kwargs
):
super(MachineProperties, self).__init__(**kwargs)
self.location_data = location_data
- self.os_profile = None
+ self.agent_configuration = None
+ self.service_statuses = service_statuses
+ self.cloud_metadata = cloud_metadata
+ self.os_profile = os_profile
self.provisioning_state = None
self.status = None
self.last_status_change = None
@@ -1098,6 +1235,7 @@ def __init__(
self.client_public_key = client_public_key
self.os_name = None
self.os_version = None
+ self.os_type = os_type
self.vm_uuid = None
self.extensions = extensions
self.os_sku = None
@@ -1106,6 +1244,7 @@ def __init__(
self.dns_fqdn = None
self.private_link_scope_resource_id = private_link_scope_resource_id
self.parent_cluster_resource_id = parent_cluster_resource_id
+ self.mssql_discovered = mssql_discovered
self.detected_properties = None
@@ -1144,6 +1283,10 @@ class MachineUpdateProperties(msrest.serialization.Model):
:param location_data: Metadata pertaining to the geographic location of the resource.
:type location_data: ~azure.mgmt.hybridcompute.models.LocationData
+ :param os_profile: Specifies the operating system settings for the hybrid machine.
+ :type os_profile: ~azure.mgmt.hybridcompute.models.OsProfile
+ :param cloud_metadata: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ :type cloud_metadata: ~azure.mgmt.hybridcompute.models.CloudMetadata
:param parent_cluster_resource_id: The resource id of the parent cluster (Azure HCI) this
machine is assigned to, if any.
:type parent_cluster_resource_id: str
@@ -1154,6 +1297,8 @@ class MachineUpdateProperties(msrest.serialization.Model):
_attribute_map = {
'location_data': {'key': 'locationData', 'type': 'LocationData'},
+ 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'},
+ 'cloud_metadata': {'key': 'cloudMetadata', 'type': 'CloudMetadata'},
'parent_cluster_resource_id': {'key': 'parentClusterResourceId', 'type': 'str'},
'private_link_scope_resource_id': {'key': 'privateLinkScopeResourceId', 'type': 'str'},
}
@@ -1162,12 +1307,16 @@ def __init__(
self,
*,
location_data: Optional["LocationData"] = None,
+ os_profile: Optional["OsProfile"] = None,
+ cloud_metadata: Optional["CloudMetadata"] = None,
parent_cluster_resource_id: Optional[str] = None,
private_link_scope_resource_id: Optional[str] = None,
**kwargs
):
super(MachineUpdateProperties, self).__init__(**kwargs)
self.location_data = location_data
+ self.os_profile = os_profile
+ self.cloud_metadata = cloud_metadata
self.parent_cluster_resource_id = parent_cluster_resource_id
self.private_link_scope_resource_id = private_link_scope_resource_id
@@ -1208,17 +1357,21 @@ class OperationValue(msrest.serialization.Model):
:vartype name: str
:param display: Display properties.
:type display: ~azure.mgmt.hybridcompute.models.OperationValueDisplay
+ :ivar is_data_action: This property indicates if the operation is an action or a data action.
+ :vartype is_data_action: bool
"""
_validation = {
'origin': {'readonly': True},
'name': {'readonly': True},
+ 'is_data_action': {'readonly': True},
}
_attribute_map = {
'origin': {'key': 'origin', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationValueDisplay'},
+ 'is_data_action': {'key': 'isDataAction', 'type': 'bool'},
}
def __init__(
@@ -1231,6 +1384,7 @@ def __init__(
self.origin = None
self.name = None
self.display = display
+ self.is_data_action = None
class OperationValueDisplay(msrest.serialization.Model):
@@ -1280,6 +1434,10 @@ class OsProfile(msrest.serialization.Model):
:ivar computer_name: Specifies the host OS name of the hybrid machine.
:vartype computer_name: str
+ :param windows_configuration: Specifies the windows configuration for update management.
+ :type windows_configuration: ~azure.mgmt.hybridcompute.models.OsProfileWindowsConfiguration
+ :param linux_configuration: Specifies the linux configuration for update management.
+ :type linux_configuration: ~azure.mgmt.hybridcompute.models.OsProfileLinuxConfiguration
"""
_validation = {
@@ -1288,14 +1446,77 @@ class OsProfile(msrest.serialization.Model):
_attribute_map = {
'computer_name': {'key': 'computerName', 'type': 'str'},
+ 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'OsProfileWindowsConfiguration'},
+ 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'OsProfileLinuxConfiguration'},
}
def __init__(
self,
+ *,
+ windows_configuration: Optional["OsProfileWindowsConfiguration"] = None,
+ linux_configuration: Optional["OsProfileLinuxConfiguration"] = None,
**kwargs
):
super(OsProfile, self).__init__(**kwargs)
self.computer_name = None
+ self.windows_configuration = windows_configuration
+ self.linux_configuration = linux_configuration
+
+
+class OsProfileLinuxConfiguration(msrest.serialization.Model):
+ """Specifies the linux configuration for update management.
+
+ :param assessment_mode: Specifies the assessment mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform".
+ :type assessment_mode: str or ~azure.mgmt.hybridcompute.models.AssessmentModeTypes
+ :param patch_mode: Specifies the patch mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform", "AutomaticByOS", "Manual".
+ :type patch_mode: str or ~azure.mgmt.hybridcompute.models.PatchModeTypes
+ """
+
+ _attribute_map = {
+ 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'},
+ 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ assessment_mode: Optional[Union[str, "AssessmentModeTypes"]] = None,
+ patch_mode: Optional[Union[str, "PatchModeTypes"]] = None,
+ **kwargs
+ ):
+ super(OsProfileLinuxConfiguration, self).__init__(**kwargs)
+ self.assessment_mode = assessment_mode
+ self.patch_mode = patch_mode
+
+
+class OsProfileWindowsConfiguration(msrest.serialization.Model):
+ """Specifies the windows configuration for update management.
+
+ :param assessment_mode: Specifies the assessment mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform".
+ :type assessment_mode: str or ~azure.mgmt.hybridcompute.models.AssessmentModeTypes
+ :param patch_mode: Specifies the patch mode. Possible values include: "ImageDefault",
+ "AutomaticByPlatform", "AutomaticByOS", "Manual".
+ :type patch_mode: str or ~azure.mgmt.hybridcompute.models.PatchModeTypes
+ """
+
+ _attribute_map = {
+ 'assessment_mode': {'key': 'patchSettings.assessmentMode', 'type': 'str'},
+ 'patch_mode': {'key': 'patchSettings.patchMode', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ assessment_mode: Optional[Union[str, "AssessmentModeTypes"]] = None,
+ patch_mode: Optional[Union[str, "PatchModeTypes"]] = None,
+ **kwargs
+ ):
+ super(OsProfileWindowsConfiguration, self).__init__(**kwargs)
+ self.assessment_mode = assessment_mode
+ self.patch_mode = patch_mode
class PrivateEndpointConnection(Resource):
@@ -1343,6 +1564,47 @@ def __init__(
self.system_data = None
+class PrivateEndpointConnectionDataModel(msrest.serialization.Model):
+ """The Data Model for a Private Endpoint Connection associated with a Private Link Scope.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar id: The ARM Resource Id of the Private Endpoint.
+ :vartype id: str
+ :ivar name: The Name of the Private Endpoint.
+ :vartype name: str
+ :ivar type: Azure resource type.
+ :vartype type: str
+ :param properties: The Private Endpoint Connection properties.
+ :type properties: ~azure.mgmt.hybridcompute.models.PrivateEndpointConnectionProperties
+ """
+
+ _validation = {
+ 'id': {'readonly': True},
+ 'name': {'readonly': True},
+ 'type': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'id': {'key': 'id', 'type': 'str'},
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnectionProperties'},
+ }
+
+ def __init__(
+ self,
+ *,
+ properties: Optional["PrivateEndpointConnectionProperties"] = None,
+ **kwargs
+ ):
+ super(PrivateEndpointConnectionDataModel, self).__init__(**kwargs)
+ self.id = None
+ self.name = None
+ self.type = None
+ self.properties = properties
+
+
class PrivateEndpointConnectionListResult(msrest.serialization.Model):
"""A list of private endpoint connections.
@@ -1386,16 +1648,20 @@ class PrivateEndpointConnectionProperties(msrest.serialization.Model):
~azure.mgmt.hybridcompute.models.PrivateLinkServiceConnectionStateProperty
:ivar provisioning_state: State of the private endpoint connection.
:vartype provisioning_state: str
+ :ivar group_ids: List of group IDs.
+ :vartype group_ids: list[str]
"""
_validation = {
'provisioning_state': {'readonly': True},
+ 'group_ids': {'readonly': True},
}
_attribute_map = {
'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpointProperty'},
'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionStateProperty'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'group_ids': {'key': 'groupIds', 'type': '[str]'},
}
def __init__(
@@ -1409,6 +1675,7 @@ def __init__(
self.private_endpoint = private_endpoint
self.private_link_service_connection_state = private_link_service_connection_state
self.provisioning_state = None
+ self.group_ids = None
class PrivateEndpointProperty(msrest.serialization.Model):
@@ -1654,6 +1921,59 @@ def __init__(
super(ProxyResource, self).__init__(**kwargs)
+class ServiceStatus(msrest.serialization.Model):
+ """Describes the status and behavior of a service.
+
+ :param status: The current status of the service.
+ :type status: str
+ :param startup_type: The behavior of the service when the Arc-enabled machine starts up.
+ :type startup_type: str
+ """
+
+ _attribute_map = {
+ 'status': {'key': 'status', 'type': 'str'},
+ 'startup_type': {'key': 'startupType', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ status: Optional[str] = None,
+ startup_type: Optional[str] = None,
+ **kwargs
+ ):
+ super(ServiceStatus, self).__init__(**kwargs)
+ self.status = status
+ self.startup_type = startup_type
+
+
+class ServiceStatuses(msrest.serialization.Model):
+ """Reports the state and behavior of dependent services.
+
+ :param extension_service: The state of the extension service on the Arc-enabled machine.
+ :type extension_service: ~azure.mgmt.hybridcompute.models.ServiceStatus
+ :param guest_configuration_service: The state of the guest configuration service on the Arc-
+ enabled machine.
+ :type guest_configuration_service: ~azure.mgmt.hybridcompute.models.ServiceStatus
+ """
+
+ _attribute_map = {
+ 'extension_service': {'key': 'extensionService', 'type': 'ServiceStatus'},
+ 'guest_configuration_service': {'key': 'guestConfigurationService', 'type': 'ServiceStatus'},
+ }
+
+ def __init__(
+ self,
+ *,
+ extension_service: Optional["ServiceStatus"] = None,
+ guest_configuration_service: Optional["ServiceStatus"] = None,
+ **kwargs
+ ):
+ super(ServiceStatuses, self).__init__(**kwargs)
+ self.extension_service = extension_service
+ self.guest_configuration_service = guest_configuration_service
+
+
class SystemData(msrest.serialization.Model):
"""Metadata pertaining to creation and last modification of the resource.
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_connected_machine_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_connected_machine_operations.py
index a3ba7e9ea79..5f958e2a2c3 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_connected_machine_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_connected_machine_operations.py
@@ -39,7 +39,7 @@ def _upgrade_extensions_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -68,7 +68,7 @@ def _upgrade_extensions_initial(
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
- if response.status_code not in [202]:
+ if response.status_code not in [200, 202]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(models.ErrorResponse, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machine_extensions_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machine_extensions_operations.py
index 63bc7c881c3..d25ff8a68f0 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machine_extensions_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machine_extensions_operations.py
@@ -61,7 +61,7 @@ def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -197,7 +197,7 @@ def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -332,7 +332,7 @@ def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -463,7 +463,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -527,7 +527,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machines_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machines_operations.py
index 2c809786d69..07363987d22 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machines_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_machines_operations.py
@@ -68,7 +68,7 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -128,7 +128,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -188,7 +188,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -258,7 +258,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_operations.py
index d5605a36454..05a1c555a5f 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_operations.py
@@ -62,7 +62,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_endpoint_connections_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_endpoint_connections_operations.py
index 48c2e530400..d3cbcd3d380 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_endpoint_connections_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_endpoint_connections_operations.py
@@ -73,7 +73,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -125,7 +125,7 @@ def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -260,7 +260,7 @@ def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -388,7 +388,7 @@ def list_by_private_link_scope(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_resources_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_resources_operations.py
index 07efc46cf79..b3da8697616 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_resources_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_resources_operations.py
@@ -68,7 +68,7 @@ def list_by_private_link_scope(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -147,7 +147,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_scopes_operations.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_scopes_operations.py
index 547e69394c8..416b5f99784 100644
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_scopes_operations.py
+++ b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/operations/_private_link_scopes_operations.py
@@ -64,7 +64,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -135,7 +135,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
def prepare_request(next_link=None):
@@ -199,7 +199,7 @@ def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -321,7 +321,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -386,7 +386,7 @@ def create_or_update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -460,7 +460,7 @@ def update_tags(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -525,7 +525,7 @@ def get_validation_details(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
@@ -586,7 +586,7 @@ def get_validation_details_for_machine(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-05-20"
+ api_version = "2022-03-10"
accept = "application/json"
# Construct URL
diff --git a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/setup.py b/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/setup.py
deleted file mode 100644
index f0a42bc98f8..00000000000
--- a/src/connectedmachine/azext_connectedmachine/vendored_sdks/connectedmachine/setup.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# coding=utf-8
-# --------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-# coding: utf-8
-
-from setuptools import setup, find_packages
-
-NAME = "azure-mgmt-hybridcompute"
-VERSION = "1.0.0b1"
-
-# To install the library, run the following
-#
-# python setup.py install
-#
-# prerequisite: setuptools
-# http://pypi.python.org/pypi/setuptools
-
-REQUIRES = ["msrest>=0.6.18", "azure-core<2.0.0,>=1.8.2", "azure-mgmt-core<2.0.0,>=1.2.1"]
-
-setup(
- name=NAME,
- version=VERSION,
- description="azure-mgmt-hybridcompute",
- author_email="",
- url="",
- keywords=["Swagger", "ConnectedMachine"],
- install_requires=REQUIRES,
- packages=find_packages(),
- include_package_data=True,
- long_description="""\
- The Hybrid Compute Management Client.
- """
-)
diff --git a/src/connectedmachine/report.md b/src/connectedmachine/report.md
index ac7b1f45059..dd8f0cd8b15 100644
--- a/src/connectedmachine/report.md
+++ b/src/connectedmachine/report.md
@@ -179,6 +179,7 @@ az connectedmachine extension create --name "CustomScriptExtension" --location "
|**--publisher**|string|The name of the extension handler publisher.|publisher|publisher|
|**--type**|string|Specifies the type of the extension; an example is "CustomScriptExtension".|type|type|
|**--type-handler-version**|string|Specifies the version of the script handler.|type_handler_version|typeHandlerVersion|
+|**--enable-auto-upgrade**|boolean|Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.|enable_auto_upgrade|enableAutomaticUpgrade|
|**--auto-upgrade-minor**|boolean|Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.|auto_upgrade_minor|autoUpgradeMinorVersion|
|**--settings**|any|Json formatted public settings for the extension.|settings|settings|
|**--protected-settings**|any|The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.|protected_settings|protectedSettings|
@@ -207,7 +208,6 @@ $_.CPU -lt 100 }\\\\\\"\\"}" --type-handler-version "1.10" --machine-name "myMac
|**--publisher**|string|The name of the extension handler publisher.|publisher|publisher|
|**--type**|string|Specifies the type of the extension; an example is "CustomScriptExtension".|type|type|
|**--type-handler-version**|string|Specifies the version of the script handler.|type_handler_version|typeHandlerVersion|
-|**--enable-auto-upgrade**|boolean|Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.|enable_auto_upgrade|enableAutomaticUpgrade|
|**--auto-upgrade-minor**|boolean|Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.|auto_upgrade_minor|autoUpgradeMinorVersion|
|**--settings**|any|Json formatted public settings for the extension.|settings|settings|
|**--protected-settings**|any|The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.|protected_settings|protectedSettings|
diff --git a/src/connectedmachine/setup.py b/src/connectedmachine/setup.py
index 2248468b82f..64d52b0dbe6 100644
--- a/src/connectedmachine/setup.py
+++ b/src/connectedmachine/setup.py
@@ -10,7 +10,7 @@
from setuptools import setup, find_packages
# HISTORY.rst entry.
-VERSION = '0.4.1'
+VERSION = '0.5.0'
try:
from azext_connectedmachine.manual.version import VERSION
except ImportError: