diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0b32ce07d27..eef2d49d302 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -198,4 +198,6 @@ /src/diskpool/ @Juliehzl -/src/dataprotection/ @sambitratha +/src/serial-console/ @adrianabedon + +/src/dataprotection/ @sambitratha \ No newline at end of file diff --git a/src/serial-console/HISTORY.rst b/src/serial-console/HISTORY.rst new file mode 100644 index 00000000000..8c34bccfff8 --- /dev/null +++ b/src/serial-console/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. \ No newline at end of file diff --git a/src/serial-console/README.md b/src/serial-console/README.md new file mode 100644 index 00000000000..c7120d36390 --- /dev/null +++ b/src/serial-console/README.md @@ -0,0 +1,35 @@ +# Azure CLI Serial Console Extension # +This is a extension for Serial Console Connections + +### How to use ### +Install this extension using the CLI command below +``` +az extension add --name serial-console +``` + +### Included Features ### +#### Connect to the text-based Serial Console of a VM or VMSS Instance #### +To exit serial console type Ctrl + ] and then q. To send an NMI/SysRq/Reset type Ctrl + ] and then n/s/r respectively. +``` +az serial-console connect -n MyVM -g MyResourceGroup +``` +#### Enable the serial console service for an entire subscription #### +``` +az serial-console enable +``` +#### Disable the serial console service for an entire subscription #### +``` +az serial-console disable +``` +#### Send a Non-Maskable Interrupt (NMI) to a VM or VMSS Instance #### +``` +az serial-console send nmi -n MyVM -g MyResourceGroup +``` +#### Send SysRq sequence to a VM or VMSS Instance #### +``` +az serial-console send sysrq -n MyVM -g MyResourceGroup --input c +``` +#### Perform a "hard" restart of the VM or VMSS Instance #### +``` +az serial-console send reset -n MyVM -g MyResourceGroup +``` \ No newline at end of file diff --git a/src/serial-console/azext_serialconsole/__init__.py b/src/serial-console/azext_serialconsole/__init__.py new file mode 100644 index 00000000000..f0d09f209d0 --- /dev/null +++ b/src/serial-console/azext_serialconsole/__init__.py @@ -0,0 +1,28 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.core import AzCommandsLoader +from azext_serialconsole._help import helps # pylint: disable=unused-import + + +class SerialconsoleCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + serialconsole_custom = CliCommandType( + operations_tmpl='azext_serialconsole.custom#{}') + super().__init__(cli_ctx=cli_ctx, custom_command_type=serialconsole_custom) + + def load_command_table(self, args): + from azext_serialconsole.commands import load_command_table + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + from azext_serialconsole._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = SerialconsoleCommandsLoader diff --git a/src/serial-console/azext_serialconsole/_client_factory.py b/src/serial-console/azext_serialconsole/_client_factory.py new file mode 100644 index 00000000000..fbaed116da0 --- /dev/null +++ b/src/serial-console/azext_serialconsole/_client_factory.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +def _compute_client_factory(cli_ctx, **kwargs): + from azure.cli.core.profiles import ResourceType + from azure.cli.core.commands.client_factory import get_mgmt_service_client + return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_COMPUTE, + subscription_id=kwargs.get('subscription_id'), + aux_subscriptions=kwargs.get('aux_subscriptions')) + + +def cf_serialconsole(cli_ctx, *_): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from azext_serialconsole.vendored_sdks.serialconsole import MicrosoftSerialConsoleClient + return get_mgmt_service_client(cli_ctx, + MicrosoftSerialConsoleClient) + + +def cf_serial_port(cli_ctx, *_): + return cf_serialconsole(cli_ctx).serial_ports diff --git a/src/serial-console/azext_serialconsole/_help.py b/src/serial-console/azext_serialconsole/_help.py new file mode 100644 index 00000000000..e98c68c3312 --- /dev/null +++ b/src/serial-console/azext_serialconsole/_help.py @@ -0,0 +1,136 @@ +# 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. +# -------------------------------------------------------------------------------------------- + +from knack.help_files import helps # pylint: disable=unused-import + + +helps['serial-console'] = """ + type: group + short-summary: Connent to the Serial Console of a Linux/Windows Virtual Machine or VMSS Instance. +""" + +helps['serial-console send'] = """ + type: group + short-summary: Send NMI/SysRq/Reset to a VM or VMSS Instance. +""" + +helps['serial-console connect'] = """ + type: command + short-summary: Connect to Serial Console VM or VMSS Instance + long-summary: > + This command provides access to a text-based console for Linux and Windows virtual machines (VMs) and virtual machine scale set instances. This serial connection connects to the ttys0 serial port of the VM or virtual machine scale set instance, providing access to it independent of the network or operating system state. To exit serial console type Ctrl + ] and then q. To send an NMI/SysRq/Reset type Ctrl + ] and then n/s/r respectively. + parameters: + - name: --name -n + short-summary: Name of the Virtual Machine or Virtual Machine Scale Set. + - name: --resource-group -g + short-summary: Name of resource group. You can configure the default group using `az configure --defaults group=`. + - name: --instance-id + short-summary: ID of VMSS instance. Not needed when connecting to the serialport of a Virtual Machine. + - name: --subscription + short-summary: Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID. + examples: + - name: Connect to Serial Console of a VM + text: > + az serial-console connect -n MyVM -g MyResourceGroup + - name: Connect to Serial Console of a VMSS Instance with ID 2 + text: > + az serial-console connect -n MyVMSS -g MyResourceGroup --instance-id 2 +""" + +helps['serial-console enable'] = """ + type: command + short-summary: Enable the serial console service for an entire subscription. + parameters: + - name: --subscription + short-summary: Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID. + examples: + - name: Enable Serial Console for a subscription + text: > + az serial-console enable +""" + +helps['serial-console disable'] = """ + type: command + short-summary: Disable the serial console service for an entire subscription. + parameters: + - name: --subscription + short-summary: Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID. + examples: + - name: Disable Serial Console for a subscription + text: > + az serial-console disable +""" + +helps['serial-console send nmi'] = """ + type: command + short-summary: Send a Non-Maskable Interrupt (NMI) to a VM or VMSS Instance + long-summary: > + A Non-Maskable Interrupt (NMI) is used in debugging scenarios and is designed to crash your target Virtual Machine. + parameters: + - name: --name -n + short-summary: Name of the Virtual Machine or Virtual Machine Scale Set. + - name: --resource-group -g + short-summary: Name of resource group. You can configure the default group using `az configure --defaults group=`. + - name: --instance-id + short-summary: ID of VMSS instance. Not needed when connecting to the serialport of a Virtual Machine. + - name: --subscription + short-summary: Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID. + examples: + - name: Send NMI to VM + text: > + az serial-console send nmi -n MyVM -g MyResourceGroup + - name: Send NMI to VMSS Instance with ID 2 + text: > + az serial-console send nmi -n MyVMSS -g MyResourceGroup --instance-id 2 +""" + +helps['serial-console send sysrq'] = """ + type: command + short-summary: Send SysRq sequence to a VM or VMSS Instance + long-summary: + A SysRq is a sequence of keys understood by the Linux operation system kernel, which can trigger a set of pre-defined actions. These commands are often used when virtual machine troubleshooting or recovery can't be performed through traditional administration (for example, if the VM is not responding). + parameters: + - name: --name -n + short-summary: Name of the Virtual Machine or Virtual Machine Scale Set. + - name: --resource-group -g + short-summary: Name of resource group. You can configure the default group using `az configure --defaults group=`. + - name: --instance-id + short-summary: ID of VMSS instance. Not needed when connecting to the serialport of a Virtual Machine. + - name: --subscription + short-summary: Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID. + - name: --input + short-summary: Input key to send over serial console. Must be one character. + examples: + - name: Send SysRq to VM to crash system + text: > + az serial-console send sysrq -n MyVM -g MyResourceGroup --input c + - name: Send SysRq to VMSS Instance with ID 2 to crash system + text: > + az serial-console send sysrq -n MyVMSS -g MyResourceGroup --instance-id 2 --input c +""" + +helps['serial-console send reset'] = """ + type: command + short-summary: Perform a "hard" restart of the VM or VMSS Instance + long-summary: > + This results in a "hard" restart, like powering the computer down, then back up again. This can result in data loss in the virtual machine. You should only perform this operation if a graceful restart is not effective. + parameters: + - name: --name -n + short-summary: Name of the Virtual Machine or Virtual Machine Scale Set. + - name: --resource-group -g + short-summary: Name of resource group. You can configure the default group using `az configure --defaults group=`. + - name: --instance-id + short-summary: ID of VMSS instance. Not needed when connecting to the serialport of a Virtual Machine. + - name: --subscription + short-summary: Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID. + examples: + - name: Hard reset a VM + text: > + az serial-console send reset -n MyVM -g MyResourceGroup + - name: Hard rest a VMSS Instance with ID 2 + text: > + az serial-console send reset -n MyVMSS -g MyResourceGroup --instance-id 2 +""" diff --git a/src/serial-console/azext_serialconsole/_params.py b/src/serial-console/azext_serialconsole/_params.py new file mode 100644 index 00000000000..ed096975944 --- /dev/null +++ b/src/serial-console/azext_serialconsole/_params.py @@ -0,0 +1,29 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=line-too-long + +from knack.arguments import CLIArgumentType + + +name_arg_type = CLIArgumentType( + options_list=('--name', '-n'), help='Name of the VM or VMSS') +vmss_instance_arg_type = CLIArgumentType( + options_list=('--instance-id'), + help='ID of VMSS instance. Not needed when connecting to the serial port of a VM') +sysrq_input_arg_type = CLIArgumentType( + options_list=('--input'), help='SysRq Input Key') + + +def load_arguments(self, _): + + from azure.cli.core.commands.parameters import resource_group_name_type + + with self.argument_context('serial-console') as c: + c.argument('resource_group_name', arg_type=resource_group_name_type) + c.argument('vm_vmss_name', arg_type=name_arg_type) + c.argument('vmss_instanceid', arg_type=vmss_instance_arg_type) + + with self.argument_context('serial-console send sysrq') as c: + c.argument('sysrqinput', arg_type=sysrq_input_arg_type) diff --git a/src/serial-console/azext_serialconsole/azext_metadata.json b/src/serial-console/azext_serialconsole/azext_metadata.json new file mode 100644 index 00000000000..30fdaf614ee --- /dev/null +++ b/src/serial-console/azext_serialconsole/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.15.0" +} \ No newline at end of file diff --git a/src/serial-console/azext_serialconsole/commands.py b/src/serial-console/azext_serialconsole/commands.py new file mode 100644 index 00000000000..d3bad63cf97 --- /dev/null +++ b/src/serial-console/azext_serialconsole/commands.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +def load_command_table(self, _): + + with self.command_group('serial-console') as g: + g.custom_command('connect', 'connect_serialconsole') + g.custom_command('enable', 'enable_serialconsole') + g.custom_command('disable', 'disable_serialconsole') + + with self.command_group('serial-console send') as g: + g.custom_command('nmi', 'send_nmi_serialconsole') + g.custom_command('reset', 'send_reset_serialconsole') + g.custom_command('sysrq', 'send_sysrq_serialconsole') diff --git a/src/serial-console/azext_serialconsole/custom.py b/src/serial-console/azext_serialconsole/custom.py new file mode 100644 index 00000000000..c225b61b2a8 --- /dev/null +++ b/src/serial-console/azext_serialconsole/custom.py @@ -0,0 +1,697 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +import json +import threading +import sys +import uuid +import time +import re +import textwrap +import websocket +import requests +from azure.cli.core.azclierror import UnclassifiedUserFault +from azure.cli.core.azclierror import ResourceNotFoundError +from azure.cli.core.azclierror import AzureConnectionError +from azure.cli.core.azclierror import ForbiddenError +from azure.cli.core._profile import Profile +from azure.core.exceptions import ResourceNotFoundError as ComputeClientResourceNotFoundError +from azext_serialconsole._client_factory import _compute_client_factory +from azext_serialconsole._client_factory import cf_serialconsole +from azext_serialconsole._client_factory import cf_serial_port + + +# pylint: disable=too-few-public-methods +# pylint: disable=too-many-instance-attributes +class GlobalVariables: + def __init__(self): + self.websocket_instance = None + self.terminal_instance = None + self.serial_console_instance = None + self.terminating_app = False + self.loading = True + self.first_message = True + self.block_print = False + self.trycount = 0 + self.os_is_windows = False + + +class PrintClass: + CYAN = 36 + YELLOW = 33 + RED = 91 + + def __init__(self): + self.message_buffer = "" + + def print(self, message, color=None, buffer=True): + if color: + message = "\x1b[" + str(color) + "m" + message + "\x1b[0m" + if GV.block_print and buffer: + self.message_buffer += message + else: + if not GV.block_print: + self.empty_message_buffer() + print(message, end="", flush=True) + + def clear_screen(self, buffer=True): + self.print("\x1b[2J\x1b[0;0H", buffer=buffer) + + def clear_line(self, buffer=True): + self.print("\x1b[2K\x1b[1G", buffer=buffer) + + def cursor_up(self, buffer=True): + self.print("\x1b[A", buffer=buffer) + + def set_cursor_horizontal_position(self, col, buffer=True): + self.print("\x1b[" + str(col) + "G", buffer=buffer) + + def empty_message_buffer(self): + print(self.message_buffer, end="", flush=True) + self.message_buffer = "" + + def get_cursor_position(self, getch): + self.print("\x1b[6n", buffer=False) + buf = "" + while True: + c = getch().decode() + buf += c + if c == "R": + break + try: + matches = re.match(r"^\x1b\[(\d*);(\d*)R", buf) + groups = matches.groups() + except AttributeError: + return 1, 1 + return int(groups[0]), int(groups[1]) + + def get_terminal_width(self, getch): + self.hide_cursor(buffer=False) + _, original_col = self.get_cursor_position(getch) + self.set_cursor_horizontal_position(999, buffer=False) + _, width = self.get_cursor_position(getch) + self.set_cursor_horizontal_position(original_col, buffer=False) + self.show_cursor(buffer=False) + return width + + def hide_cursor(self, buffer=True): + self.print("\x1b[?25l", buffer=buffer) + + def show_cursor(self, buffer=True): + self.print("\x1b[?25h", buffer=buffer) + + @staticmethod + def _get_max_width_of_string(s): + max_width = -1 + curr_width = 0 + i = 0 + while i < len(s): + if s[i] == '\r' or s[i] == '\n': + i += 2 + max_width = max(curr_width, max_width) + curr_width = 0 + else: + i += 1 + curr_width += 1 + return max(max_width, curr_width) + + def prompt(self, getch, message): + GV.block_print = True + width = self.get_terminal_width(getch) + _, col = self.get_cursor_position(getch) + # adjust message if it is too wide to fit in console + if width < self._get_max_width_of_string(message): + wrapped = textwrap.wrap(message.replace( + "\r\n", " ").replace("\n\r", " "), width=width) + message = "\r\n".join(wrapped) + lines = message.count("\r\n") + message.count("\n\r") + 1 + self.print("\r\n" + message, color=PrintClass.YELLOW, buffer=False) + c = getch() + self.hide_cursor(buffer=False) + for _ in range(lines): + self.clear_line(buffer=False) + self.cursor_up(buffer=False) + self.set_cursor_horizontal_position(col, buffer=False) + self.show_cursor(buffer=False) + self.empty_message_buffer() + GV.block_print = False + return c + + +def quitapp(from_websocket=False, message="", error_message=None, error_recommendation=None, error_func=None): + PC.print(message + "\r\n", color=PrintClass.RED) + GV.terminating_app = True + GV.loading = False + if GV.terminal_instance: + GV.terminal_instance.revert_terminal() + GV.terminal_instance = None + if not from_websocket and GV.websocket_instance: + GV.websocket_instance.close() + GV.websocket_instance = None + if error_message and error_func: + raise error_func(error_message, error_recommendation) + sys.exit() + + +GV = GlobalVariables() +PC = PrintClass() + + +# pylint: disable=too-few-public-methods +class _Getch: + def __init__(self): + if sys.platform.startswith('win'): + import ctypes + from ctypes import wintypes + STD_INPUT_HANDLE = -10 + self.h_in = ctypes.windll.kernel32.GetStdHandle(STD_INPUT_HANDLE) + self.lp_buffer = ctypes.create_string_buffer(1) + self.lp_number_of_chars_read = wintypes.DWORD() + self.n_number_of_chars_to_read = wintypes.DWORD() + self.n_number_of_chars_to_read.value = 1 + self.impl = self._getch_windows + else: + self.impl = self._getch_unix + + def __call__(self): + return self.impl() + + @staticmethod + def _getch_unix(): + return sys.stdin.read(1).encode() + + def _getch_windows(self): + import ctypes + status = ctypes.windll.kernel32.ReadConsoleW(self.h_in, + self.lp_buffer, + self.n_number_of_chars_to_read, + ctypes.byref( + self.lp_number_of_chars_read), + None) + if status == 0: + quitapp() + return chr(self.lp_buffer.raw[0]).encode() + + +class Terminal: + ERROR_MESSAGE = "Unable to configure terminal." + RECOMENDATION = ("Make sure that app in running in a terminal on a Windows 10 " + "or Unix based machine. Versions earlier than Windows 10 are not supported.") + + def __init__(self): + self.win_original_out_mode = None + self.win_original_in_mode = None + self.win_out = None + self.win_in = None + self.unix_original_mode = None + + def configure_terminal(self): + if sys.platform.startswith('win'): + import colorama + import ctypes + from ctypes import wintypes + colorama.deinit() + ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004 + ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200 + ENABLE_ECHO_INPUT = 0x0004 + ENABLE_LINE_INPUT = 0x0002 + ENABLE_PROCESSED_INPUT = 0x0001 + STD_OUTPUT_HANDLE = -11 + STD_INPUT_HANDLE = -10 + DISABLE = ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT | + ENABLE_PROCESSED_INPUT) + + kernel32 = ctypes.windll.kernel32 + dw_original_out_mode = wintypes.DWORD() + dw_original_in_mode = wintypes.DWORD() + self.win_out = kernel32.GetStdHandle(STD_OUTPUT_HANDLE) + self.win_in = kernel32.GetStdHandle(STD_INPUT_HANDLE) + if (not kernel32.GetConsoleMode(self.win_out, ctypes.byref(dw_original_out_mode)) or + not kernel32.GetConsoleMode(self.win_in, ctypes.byref(dw_original_in_mode))): + quitapp(error_message=Terminal.ERROR_MESSAGE, + error_recommendation=Terminal.RECOMENDATION, error_func=UnclassifiedUserFault) + + self.win_original_out_mode = dw_original_out_mode.value + self.win_original_in_mode = dw_original_in_mode.value + + dw_out_mode = self.win_original_out_mode | ENABLE_VIRTUAL_TERMINAL_PROCESSING + dw_in_mode = (self.win_original_in_mode | + ENABLE_VIRTUAL_TERMINAL_INPUT) & DISABLE + + if (not kernel32.SetConsoleMode(self.win_out, dw_out_mode) or + not kernel32.SetConsoleMode(self.win_in, dw_in_mode)): + quitapp(error_message=Terminal.ERROR_MESSAGE, + error_recommendation=Terminal.RECOMENDATION, error_func=UnclassifiedUserFault) + else: + try: + import tty + import termios # pylint: disable=import-error + fd = sys.stdin.fileno() + except (ModuleNotFoundError, ValueError): + quitapp(error_message=Terminal.ERROR_MESSAGE, + error_recommendation=Terminal.RECOMENDATION, error_func=UnclassifiedUserFault) + + self.unix_original_mode = termios.tcgetattr(fd) + tty.setraw(fd) + + def revert_terminal(self): + if sys.platform.startswith('win'): + import ctypes + kernel32 = ctypes.windll.kernel32 + if self.win_original_out_mode: + kernel32.SetConsoleMode(self.win_out, self.win_original_out_mode) + if self.win_original_in_mode: + kernel32.SetConsoleMode(self.win_in, self.win_original_in_mode) + else: + if self.unix_original_mode: + import termios # pylint: disable=import-error + try: + fd = sys.stdin.fileno() + except ValueError: + return + termios.tcsetattr(fd, termios.TCSADRAIN, self.unix_original_mode) + + +class SerialConsole: + def __init__(self, cmd, resource_group_name, vm_vmss_name, vmss_instanceid): + client = cf_serial_port(cmd.cli_ctx) + if vmss_instanceid is None: + self.connect_func = lambda: client.connect( + resource_group_name=resource_group_name, + resource_provider_namespace="Microsoft.Compute", + parent_resource_type="virtualMachines", + parent_resource=vm_vmss_name, + serial_port="0").connection_string + else: + self.connect_func = lambda: client.connect( + resource_group_name=resource_group_name, + resource_provider_namespace="Microsoft.Compute", + parent_resource_type="virtualMachineScaleSets", + parent_resource=f"{vm_vmss_name}/virtualMachines/{vmss_instanceid}", + serial_port="0").connection_string + + self.websocket_url = None + self.access_token = None + + @staticmethod + def listen_for_keys(): + getch = _Getch() + while True: + c = getch() + if GV.websocket_instance and not GV.first_message: + if c == b'\x1d': + if GV.os_is_windows: + message = ("| Press n for NMI | r to Reset VM |\r\n" + "| q to quit Console | CTRL + ] to forward input |") + else: + message = ("| Press n for NMI | s for SysRq | r to Reset VM |\r\n" + "| q to quit Console | CTRL + ] to forward input |") + c = PC.prompt(getch, message) + if c == b'n': + message = ("Warning: A Non-Maskable Interrupt (NMI) is used in debugging\r\n" + "scenarios and is designed to crash your target Virtual Machine.\r\n" + "Are you sure you want to send an NMI? (Y/n): ") + c = PC.prompt(getch, message) + if c == b"Y": + GV.serial_console_instance.send_nmi() + continue + if c == b'r': + message = ("Warning: This results in a hard restart, like powering the computer\r\n" + "down, then back up again. This can result in data loss in the virtual\r\n" + "machine. You should only perform this operation if a graceful restart\r\n" + "is not effective.\r\n" + "Are you sure you want to Hard Reset the VM? (Y/n): ") + c = PC.prompt(getch, message) + if c == b"Y": + GV.serial_console_instance.send_reset() + continue + if not GV.os_is_windows and c == b's': + message = "Which SysRq command would you like to send? Press h for help: " + c = PC.prompt(getch, message) + GV.serial_console_instance.send_sys_rq(c.decode()) + continue + if c == b'q': + quitapp() + return + if c != b'\x1d': + continue + try: + if GV.websocket_instance: + GV.websocket_instance.send(c) + except (AttributeError, websocket.WebSocketConnectionClosedException): + pass + else: + if c == b'\r' and not GV.loading: + GV.serial_console_instance.connect() + elif c == b'\x1d': + c = PC.prompt(getch, "| Press q to quit Console |") + if c == b'q': + quitapp() + return + + @staticmethod + def connect_loading_message_linux(): + PC.clear_screen() + PC.print("For more information on the Azure Serial Console, see .\r\n", + color=PrintClass.YELLOW) + indx = 0 + number_of_squares = 3 + chars = ["\u25A1"] * number_of_squares + while GV.loading: + PC.hide_cursor() + chars_copy = chars.copy() + chars_copy[indx] = "\u25A0" + squares = " ".join(chars_copy) + PC.clear_line() + PC.print("Connecting to console of VM " + + squares, color=PrintClass.CYAN) + PC.show_cursor() + indx = (indx + 1) % number_of_squares + time.sleep(0.5) + + @staticmethod + def connect_loading_message_windows(): + PC.clear_screen() + message1 = ("Windows Serial Console requires Special Administration Console (SAC) to be enabled within " + "the Windows VM.\r\nIf you do not see SAC> in the console below after the connection is made, " + "SAC is not enabled.\r\n\r\n") + message2 = ("For more information on the Azure Serial Console and SAC, " + "see .\r\n") + PC.print(message1) + PC.print(message2, color=PrintClass.YELLOW) + indx = 0 + number_of_squares = 3 + chars = ["\u25A1"] * number_of_squares + while GV.loading: + PC.hide_cursor() + chars_copy = chars.copy() + chars_copy[indx] = "\u25A0" + squares = " ".join(chars_copy) + PC.clear_line() + PC.print("Connecting to console of VM " + + squares, color=PrintClass.CYAN) + PC.show_cursor() + indx = (indx + 1) % number_of_squares + time.sleep(0.5) + + @staticmethod + def send_loading_message(loading_text): + indx = 0 + number_of_squares = 3 + chars = ["\u25A1"] * number_of_squares + while GV.loading: + chars_copy = chars.copy() + chars_copy[indx] = "\u25A0" + squares = " ".join(chars_copy) + print(loading_text + " " + squares, end="\r") + indx = (indx + 1) % number_of_squares + time.sleep(0.5) + + # Returns True if successful, False otherwise + def load_websocket_url(self): + token_info, _, _ = Profile().get_raw_token() + self.access_token = token_info[1] + try: + self.websocket_url = self.connect_func() + except: # pylint: disable=bare-except + return False + return True + + def connect(self): + def on_open(_): + pass + + def on_message(_, message): + if GV.first_message: + PC.clear_screen() + GV.first_message = False + GV.loading = False + PC.print(message) + + def on_error(*_): + pass + + def on_close(_): + GV.loading = False + if not GV.terminating_app: + if GV.first_message: + message = ("\r\nCould not establish connection to VM or VMSS. " + "Make sure that it is powered on and press \"Enter\" try again...") + PC.print(message, color=PrintClass.RED) + else: + PC.print( + "\r\nConnection Closed: Press \"Enter\" to reconnect...", color=PrintClass.RED) + GV.websocket_instance = None + + def connect_thread(): + if self.load_websocket_url(): + GV.websocket_instance = websocket.WebSocketApp( + self.websocket_url + "?authorization=" + self.access_token, + on_open=on_open, + on_message=on_message, + on_error=on_error, + on_close=on_close) + GV.websocket_instance.run_forever(skip_utf8_validation=True) + else: + GV.loading = False + message = ("\r\nAn unexpected error occured. Could not establish connection to VM or VMSS. " + "Check network connection and press \"Enter\" to try again...") + PC.print(message, color=PrintClass.RED) + + GV.loading = True + GV.first_message = True + + if GV.os_is_windows: + th1 = threading.Thread( + target=self.connect_loading_message_windows, args=()) + else: + th1 = threading.Thread( + target=self.connect_loading_message_linux, args=()) + th1.daemon = True + th1.start() + + th2 = threading.Thread(target=connect_thread, args=()) + th2.daemon = True + th2.start() + + def launch_console(self): + GV.terminal_instance = Terminal() + GV.terminal_instance.configure_terminal() + th = threading.Thread(target=self.listen_for_keys, args=()) + th.daemon = True + th.start() + self.connect() + th.join() + + def send_admin_command(self, command, commandParameters): + if self.websocket_url and self.access_token: + url = self.websocket_url.replace("wss", "https").replace( + "ws", "http").replace("/client", "/adminCommand/" + command) + headers = {'accept': "application/json", + 'authorization': "Bearer " + self.access_token, + 'accept-language': "en", + 'content-type': "application/json"} + data = {'command': command, + 'requestId': str(uuid.uuid4()), + 'commandParameters': commandParameters} + result = requests.post(url, headers=headers, data=json.dumps(data)) + return result.status_code == 200 + return False + + def send_nmi(self): + return self.send_admin_command("nmi", {}) + + def send_reset(self): + return self.send_admin_command("reset", {}) + + def send_sys_rq(self, key): + return self.send_admin_command("sysrq", {"SysRqCommand": key}) + + def connect_and_send_admin_command(self, command, arg_characters=None): + if command == "nmi": + func = self.send_nmi + success_message = "NMI sent successfully \r\n" + failure_message = "Failed to send NMI \r\n" + loading_text = "Sending NMI to VM" + elif command == "reset": + func = self.send_reset + success_message = "Successfully Hard Reset VM \r\n" + failure_message = "Failed to Hard Reset VM \r\n" + loading_text = "Forcing VM to Hard Reset" + elif command == "sysrq" and arg_characters is not None: + def wrapper(): + return self.send_sys_rq(arg_characters) + func = wrapper + success_message = "Successfully sent SysRq command\r\n" + failure_message = "Failed to send SysRq command. Make sure the input only contains numbers and letters.\r\n" + loading_text = "Sending SysRq to VM" + else: + return + + GV.loading = True + + th1 = threading.Thread( + target=self.send_loading_message, args=(loading_text,)) + th1.daemon = True + th1.start() + + if self.load_websocket_url(): + def on_message(ws, _): + GV.trycount += 1 + if func(): + GV.loading = False + GV.terminating_app = True + print(success_message, end="") + ws.close() + elif GV.trycount >= 2: + GV.loading = False + GV.terminating_app = True + print(failure_message, end="") + ws.close() + + wsapp = websocket.WebSocketApp( + self.websocket_url + "?authorization=" + self.access_token, on_message=on_message) + wsapp.run_forever() + GV.loading = False + if GV.trycount == 0: + error_message = "Could not establish connection to VM or VMSS." + recommendation = 'Try restarting it with "az vm restart".' + raise AzureConnectionError( + error_message, recommendation=recommendation) + else: + GV.loading = False + error_message = "An unexpected error occured. Could not establish connection to VM or VMSS." + recommendation = "Check network connection and try again." + raise ResourceNotFoundError( + error_message, recommendation=recommendation) + + +def check_serial_console_enabled(cli_ctx): + client = cf_serialconsole(cli_ctx) + result = client.get_console_status().additional_properties + if ("properties" in result and "disabled" in result["properties"] and + not result["properties"]["disabled"]): + return + error_message = "Azure Serial Console is not enabled for this subscription." + recommendation = 'Enable Serial Console with "az serial-console enable".' + raise ForbiddenError(error_message, recommendation=recommendation) + + +def check_resource(cli_ctx, resource_group_name, vm_vmss_name, vmss_instanceid): + check_serial_console_enabled(cli_ctx) + client = _compute_client_factory(cli_ctx) + if vmss_instanceid: + result = client.virtual_machine_scale_set_vms.get_instance_view( + resource_group_name, vm_vmss_name, vmss_instanceid) + if 'osName' in result.additional_properties and "windows" in result.additional_properties['osName'].lower(): + GV.os_is_windows = True + + power_state = ','.join( + [s.display_status for s in result.statuses if s.code.startswith('PowerState/')]).lower() + if "deallocating" in power_state or "deallocated" in power_state: + error_message = "Azure Serial Console requires a virtual machine to be running." + recommendation = 'Use "az vmss start" to start the Virtual Machine.' + raise AzureConnectionError( + error_message, recommendation=recommendation) + + if result.boot_diagnostics is None: + error_message = ("Azure Serial Console requires boot diagnostics to be enabled.") + recommendation = ('Use "az vmss update --name MyScaleSet --resource-group MyResourceGroup --set ' + 'virtualMachineProfile.diagnosticsProfile="{\\"bootDiagnostics\\": {\\"Enabled\\" : ' + '\\"True\\",\\"StorageUri\\" : null}}"" to enable boot diagnostics. ' + 'You can replace "null" with a custom storage account ' + '\\"https://mystor.blob.windows.net/"\\. Then run "az vmss update-instances -n ' + 'MyScaleSet -g MyResourceGroup --instance-ids *".') + raise AzureConnectionError( + error_message, recommendation=recommendation) + else: + try: + result = client.virtual_machines.get( + resource_group_name, vm_vmss_name, expand='instanceView') + except ComputeClientResourceNotFoundError as e: + try: + client.virtual_machine_scale_sets.get( + resource_group_name, vm_vmss_name) + except ComputeClientResourceNotFoundError: + raise e from e + error_message = e.message + recommendation = ("We found that you specified a Virtual Machine Scale Set and not a VM. " + "Use the --instance-id parameter to select the VMSS instance you want to connect to.") + raise ResourceNotFoundError( + error_message, recommendation=recommendation) from e + if (result.instance_view is not None and + result.instance_view.os_name is not None and + "windows" in result.instance_view.os_name.lower()): + GV.os_is_windows = True + if (result.storage_profile is not None and + result.storage_profile.image_reference is not None and + result.storage_profile.image_reference.offer is not None and + "windows" in result.storage_profile.image_reference.offer.lower()): + GV.os_is_windows = True + + power_state = ','.join( + [s.display_status for s in result.instance_view.statuses if s.code.startswith('PowerState/')]) + if "deallocating" in power_state or "deallocated" in power_state: + error_message = "Azure Serial Console requires a virtual machine to be running." + recommendation = 'Use "az vm start" to start the Virtual Machine.' + raise AzureConnectionError( + error_message, recommendation=recommendation) + + if (result.diagnostics_profile is None or + result.diagnostics_profile.boot_diagnostics is None or + not result.diagnostics_profile.boot_diagnostics.enabled): + error_message = ("Azure Serial Console requires boot diagnostics to be enabled.") + recommendation = ('Use "az vm boot-diagnostics enable --name MyVM --resource-group MyResourceGroup" ' + 'to enable boot diagnostics. You can specify a custom storage account with the ' + 'parameter "--storage https://mystor.blob.windows.net/".') + raise AzureConnectionError( + error_message, recommendation=recommendation) + + +def connect_serialconsole(cmd, resource_group_name, vm_vmss_name, vmss_instanceid=None): + check_resource(cmd.cli_ctx, resource_group_name, + vm_vmss_name, vmss_instanceid) + GV.serial_console_instance = SerialConsole( + cmd, resource_group_name, vm_vmss_name, vmss_instanceid) + GV.serial_console_instance.launch_console() + + +def send_nmi_serialconsole(cmd, resource_group_name, vm_vmss_name, vmss_instanceid=None): + check_resource(cmd.cli_ctx, resource_group_name, + vm_vmss_name, vmss_instanceid) + GV.serial_console_instance = SerialConsole( + cmd, resource_group_name, vm_vmss_name, vmss_instanceid) + GV.serial_console_instance.connect_and_send_admin_command("nmi") + + +def send_reset_serialconsole(cmd, resource_group_name, vm_vmss_name, vmss_instanceid=None): + check_resource(cmd.cli_ctx, resource_group_name, + vm_vmss_name, vmss_instanceid) + GV.serial_console_instance = SerialConsole( + cmd, resource_group_name, vm_vmss_name, vmss_instanceid) + GV.serial_console_instance.connect_and_send_admin_command("reset") + + +def send_sysrq_serialconsole(cmd, resource_group_name, vm_vmss_name, sysrqinput, vmss_instanceid=None): + check_resource(cmd.cli_ctx, resource_group_name, + vm_vmss_name, vmss_instanceid) + if GV.os_is_windows: + error_message = "You can only send a SysRq to a Linux VM." + raise ForbiddenError(error_message) + GV.serial_console_instance = SerialConsole( + cmd, resource_group_name, vm_vmss_name, vmss_instanceid) + GV.serial_console_instance.connect_and_send_admin_command( + "sysrq", arg_characters=sysrqinput) + + +def enable_serialconsole(cmd): + client = cf_serialconsole(cmd.cli_ctx) + return client.enable_console() + + +def disable_serialconsole(cmd): + client = cf_serialconsole(cmd.cli_ctx) + return client.disable_console() diff --git a/src/serial-console/azext_serialconsole/tests/__init__.py b/src/serial-console/azext_serialconsole/tests/__init__.py new file mode 100644 index 00000000000..99c0f28cd71 --- /dev/null +++ b/src/serial-console/azext_serialconsole/tests/__init__.py @@ -0,0 +1,5 @@ +# ----------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ----------------------------------------------------------------------------- diff --git a/src/serial-console/azext_serialconsole/tests/latest/__init__.py b/src/serial-console/azext_serialconsole/tests/latest/__init__.py new file mode 100644 index 00000000000..2dcf9bb68b3 --- /dev/null +++ b/src/serial-console/azext_serialconsole/tests/latest/__init__.py @@ -0,0 +1,5 @@ +# ----------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ----------------------------------------------------------------------------- \ No newline at end of file diff --git a/src/serial-console/azext_serialconsole/tests/latest/recordings/test_check_resource_VM.yaml b/src/serial-console/azext_serialconsole/tests/latest/recordings/test_check_resource_VM.yaml new file mode 100644 index 00000000000..927010705f8 --- /dev/null +++ b/src/serial-console/azext_serialconsole/tests/latest/recordings/test_check_resource_VM.yaml @@ -0,0 +1,4048 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:37:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachines/cli000003'' + under resource group ''cli_test_serialconsole000001'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '305' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachineScaleSets/cli000003'' + under resource group ''cli_test_serialconsole000001'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:37:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/0/instanceView?api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''cli000003'' not + found."}}' + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\": + \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"latest\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\"\n },\n \"openSUSE-Leap\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n + \ \"sku\": \"42.3\",\n \"version\": \"latest\"\n },\n + \ \"RHEL\": {\n \"publisher\": \"RedHat\",\n \"offer\": + \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n + \ },\n \"SLES\": {\n \"publisher\": \"SUSE\",\n + \ \"offer\": \"SLES\",\n \"sku\": \"15\",\n \"version\": + \"latest\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\"\n }\n },\n + \ \"Windows\": {\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2016Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2012R2Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2012-R2-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2008R2SP1\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n + \ \"version\": \"latest\"\n }\n }\n }\n }\n + \ }\n}\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2525' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:46 GMT + etag: + - W/"54bceef15b892f2aa7f4c2145a49f1b5e33608722acdbb47933d7b6cbebbd7f4" + expires: + - Wed, 07 Jul 2021 21:42:46 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - f32aec5bec85ebf98b7eb3e7ebea8cf25d419d05 + x-frame-options: + - deny + x-github-request-id: + - ABBE:0CCC:316D69:7C8907:60E5A579 + x-served-by: + - cache-sea4468-SEA + x-timer: + - S1625693866.373760,VS0,VE1 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 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: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "cli000003VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus2", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "cli000003Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "cli000003NSG", "apiVersion": + "2015-06-15", "location": "westus2", "tags": {}, "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"protocol": + "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": + "Inbound"}}]}}, {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "cli000003PublicIP", "location": "westus2", "tags": {}, "dependsOn": + [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", + "type": "Microsoft.Network/networkInterfaces", "name": "cli000003VMNic", "location": + "westus2", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/cli000003VNET", + "Microsoft.Network/networkSecurityGroups/cli000003NSG", "Microsoft.Network/publicIpAddresses/cli000003PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigcli000003", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkSecurityGroups/cli000003NSG"}}}, + {"apiVersion": "2021-03-01", "type": "Microsoft.Compute/virtualMachines", "name": + "cli000003", "location": "westus2", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/cli000003VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic", + "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": + "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", + "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "cli000003", + "adminUsername": "useraabedon", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3", + "path": "/home/useraabedon/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '4063' + Content-Type: + - application/json + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/vm_deploy_yGVVs680OiJaXmb0skaUh5XHGaArZd1E","name":"vm_deploy_yGVVs680OiJaXmb0skaUh5XHGaArZd1E","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13770419332165188274","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-07-07T21:37:47.2395501Z","duration":"PT0.5927537S","correlationId":"86d7ec4d-9362-41e8-8fac-c922dc83d30e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]},{"resourceType":"networkSecurityGroups","locations":["westus2"]},{"resourceType":"publicIPAddresses","locations":["westus2"]},{"resourceType":"networkInterfaces","locations":["westus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"cli000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkSecurityGroups/cli000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"cli000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"cli000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"cli000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"cli000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"cli000003"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/vm_deploy_yGVVs680OiJaXmb0skaUh5XHGaArZd1E/operationStatuses/08585759130188308424?api-version=2020-10-01 + cache-control: + - no-cache + content-length: + - '3000' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:46 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: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585759130188308424?api-version=2020-10-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/vm_deploy_yGVVs680OiJaXmb0skaUh5XHGaArZd1E","name":"vm_deploy_yGVVs680OiJaXmb0skaUh5XHGaArZd1E","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13770419332165188274","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2021-07-07T21:38:15.8634946Z","duration":"PT29.2166982S","correlationId":"86d7ec4d-9362-41e8-8fac-c922dc83d30e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]},{"resourceType":"networkSecurityGroups","locations":["westus2"]},{"resourceType":"publicIPAddresses","locations":["westus2"]},{"resourceType":"networkInterfaces","locations":["westus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"cli000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkSecurityGroups/cli000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"cli000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"cli000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"cli000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"cli000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"cli000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkSecurityGroups/cli000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '4170' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\": + {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n + \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not + Ready\",\r\n \"message\": \"VM status blob is found but not yet + populated.\",\r\n \"time\": \"2021-07-07T21:38:17+00:00\"\r\n }\r\n + \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": + \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:37:59.34167+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:38:15.138811+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4051' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31933 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"cli000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\",\r\n + \ \"etag\": \"W/\\\"2354d280-2cb6-4c1e-81c3-00ee0054454a\\\"\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"3e3b2edc-426c-4475-b580-2c68d37fcaa8\",\r\n + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigcli000003\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic/ipConfigurations/ipconfigcli000003\",\r\n + \ \"etag\": \"W/\\\"2354d280-2cb6-4c1e-81c3-00ee0054454a\\\"\",\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": + \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"\r\n + \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": + \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": + [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": + \"rg3xcmgxsyuu1ppmfgcihspsme.xx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-78-C8-3A\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkSecurityGroups/cli000003NSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2779' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:17 GMT + etag: + - W/"2354d280-2cb6-4c1e-81c3-00ee0054454a" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/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: + - 152cee44-91b6-4ec6-b97d-e012cbde3bd4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"cli000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003PublicIP\",\r\n + \ \"etag\": \"W/\\\"bd6f61a3-f55a-4cc3-80e1-5051e3c2b7bf\\\"\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"149dfa6a-a335-417b-b9cc-23ee95b2f6b0\",\r\n + \ \"ipAddress\": \"52.183.118.109\",\r\n \"publicIPAddressVersion\": + \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic/ipConfigurations/ipconfigcli000003\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n + \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1083' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:17 GMT + etag: + - W/"bd6f61a3-f55a-4cc3-80e1-5051e3c2b7bf" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/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: + - 9499de1c-bf9b-4806-8396-27c9294a2a9b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:38:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image -l --generate-ssh-keys + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\": + {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n + \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not + Ready\",\r\n \"message\": \"VM status blob is found but not yet + populated.\",\r\n \"time\": \"2021-07-07T21:38:18+00:00\"\r\n }\r\n + \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": + \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:37:59.34167+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:38:15.138811+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4051' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31932 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2830' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3991,Microsoft.Compute/LowCostGet30Min;31930 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": + {"osDisk": {"osType": "Linux", "name": "cli000003_disk1_c31150ae03d94164a46c567623e1e39a", + "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a", + "storageAccountType": "Premium_LRS"}}, "dataDisks": []}, "osProfile": {"computerName": + "cli000003", "adminUsername": "useraabedon", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}}, "secrets": [], "allowExtensionOperations": true, "requireGuestProvisionSignal": + true}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic"}]}, + "diagnosticsProfile": {"bootDiagnostics": {"enabled": true}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + Content-Length: + - '1880' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"provisioningState\": \"Updating\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/21e9a0ad-c02f-44b9-9780-4121a6d52b1a?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '2928' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38: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-ratelimit-remaining-resource: + - Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1193 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/21e9a0ad-c02f-44b9-9780-4121a6d52b1a?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:38:18.6386809+00:00\",\r\n \"endTime\": + \"2021-07-07T21:38:28.4200001+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"21e9a0ad-c02f-44b9-9780-4121a6d52b1a\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29845 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2929' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3988,Microsoft.Compute/LowCostGet30Min;31927 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:38:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"instanceView\": {\r\n \"computerName\": \"cli000003\",\r\n \"osName\": + \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n + \ \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:38:26+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": []\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:38:19.2011715+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": + {},\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:38:28.4200001+00:00\"\r\n },\r\n + \ {\r\n \"code\": \"PowerState/running\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n + \ ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4291' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3987,Microsoft.Compute/LowCostGet30Min;31926 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003/deallocate?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8fc77fc8-9824-4e13-b302-6252ce98573b?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:38:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8fc77fc8-9824-4e13-b302-6252ce98573b?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1196 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8fc77fc8-9824-4e13-b302-6252ce98573b?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:38:49.8889176+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"8fc77fc8-9824-4e13-b302-6252ce98573b\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29844 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8fc77fc8-9824-4e13-b302-6252ce98573b?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:38:49.8889176+00:00\",\r\n \"endTime\": + \"2021-07-07T21:39:17.5921974+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"8fc77fc8-9824-4e13-b302-6252ce98573b\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29837 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8fc77fc8-9824-4e13-b302-6252ce98573b?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:39:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29836 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:39:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"cli000003\",\r\n \"adminUsername\": \"useraabedon\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"instanceView\": {\r\n \"disks\": [\r\n {\r\n \"name\": + \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:39:15.5140408+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": + {},\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:39:15.5297015+00:00\"\r\n },\r\n + \ {\r\n \"code\": \"PowerState/deallocated\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM deallocated\"\r\n }\r\n + \ ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3735' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31917 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c93356fb-9f5f-4578-81a9-19af95738af8?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:39:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c93356fb-9f5f-4578-81a9-19af95738af8?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1195 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c93356fb-9f5f-4578-81a9-19af95738af8?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:39:36.6391987+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"c93356fb-9f5f-4578-81a9-19af95738af8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29833 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c93356fb-9f5f-4578-81a9-19af95738af8?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:39:36.6391987+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"c93356fb-9f5f-4578-81a9-19af95738af8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29831 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c93356fb-9f5f-4578-81a9-19af95738af8?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:39:36.6391987+00:00\",\r\n \"endTime\": + \"2021-07-07T21:39:55.8112154+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"c93356fb-9f5f-4578-81a9-19af95738af8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29851 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c93356fb-9f5f-4578-81a9-19af95738af8?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:40:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14973,Microsoft.Compute/GetOperation30Min;29850 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm stop + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003/powerOff?skipShutdown=false&api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/97840bb9-abec-4a69-a182-e52b239e6bb5?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:40:25 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/97840bb9-abec-4a69-a182-e52b239e6bb5?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1194 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm stop + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/97840bb9-abec-4a69-a182-e52b239e6bb5?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:40:26.1082916+00:00\",\r\n \"endTime\": + \"2021-07-07T21:40:33.155202+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"97840bb9-abec-4a69-a182-e52b239e6bb5\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14966,Microsoft.Compute/GetOperation30Min;29843 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm stop + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/97840bb9-abec-4a69-a182-e52b239e6bb5?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:40:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14965,Microsoft.Compute/GetOperation30Min;29842 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm stop + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:40:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm stop + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"instanceView\": {\r\n \"computerName\": \"cli000003\",\r\n \"osName\": + \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n + \ \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:40:11+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": []\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:39:41.373608+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": + {},\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:40:33.1396008+00:00\"\r\n },\r\n + \ {\r\n \"code\": \"PowerState/stopped\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM stopped\"\r\n }\r\n + \ ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4290' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31917 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics disable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2929' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3973,Microsoft.Compute/LowCostGet30Min;31916 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": + {"osDisk": {"osType": "Linux", "name": "cli000003_disk1_c31150ae03d94164a46c567623e1e39a", + "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a", + "storageAccountType": "Premium_LRS"}}, "dataDisks": []}, "osProfile": {"computerName": + "cli000003", "adminUsername": "useraabedon", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}}, "secrets": [], "allowExtensionOperations": true, "requireGuestProvisionSignal": + true}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic"}]}, + "diagnosticsProfile": {"bootDiagnostics": {"enabled": false}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics disable + Connection: + - keep-alive + Content-Length: + - '1881' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false\r\n }\r\n },\r\n \"provisioningState\": \"Updating\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5fb7b8f3-6c5b-4d23-ba84-3a60118f2226?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '2929' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1192 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics disable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5fb7b8f3-6c5b-4d23-ba84-3a60118f2226?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:40:57.4522282+00:00\",\r\n \"endTime\": + \"2021-07-07T21:40:59.6710432+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5fb7b8f3-6c5b-4d23-ba84-3a60118f2226\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14962,Microsoft.Compute/GetOperation30Min;29834 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics disable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2930' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31911 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics disable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:41:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics disable + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"instanceView\": {\r\n \"computerName\": \"cli000003\",\r\n \"osName\": + \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n + \ \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:40:11+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": []\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:40:57.9678985+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:40:59.6554671+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/stopped\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM stopped\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4262' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31910 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8e353ef4-1658-4947-82b6-98796c2b19a6?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:41:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8e353ef4-1658-4947-82b6-98796c2b19a6?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/UpdateVM3Min;237,Microsoft.Compute/UpdateVM30Min;1193 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8e353ef4-1658-4947-82b6-98796c2b19a6?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:41:28.8431363+00:00\",\r\n \"endTime\": + \"2021-07-07T21:41:33.9056432+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"8e353ef4-1658-4947-82b6-98796c2b19a6\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14963,Microsoft.Compute/GetOperation30Min;29833 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8e353ef4-1658-4947-82b6-98796c2b19a6?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:41:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14962,Microsoft.Compute/GetOperation30Min;29832 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:41:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm start + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"instanceView\": {\r\n \"computerName\": \"cli000003\",\r\n \"osName\": + \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n + \ \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:40:11+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": []\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:40:57.9678985+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:41:33.9056432+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4262' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31907 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2930' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31906 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-storage/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts?api-version=2021-04-01 + response: + body: + string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/craigw/providers/Microsoft.Storage/storageAccounts/craigwendpointtest","name":"craigwendpointtest","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_2","allowBlobPublicAccess":true,"allowSharedKeyAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-01-15T21:56:49.8049186Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-01-15T21:56:49.8049186Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2021-01-15T21:56:49.7111640Z","primaryEndpoints":{"dfs":"https://craigwendpointtest.dfs.core.windows.net/","web":"https://craigwendpointtest.z13.web.core.windows.net/","blob":"https://craigwendpointtest.blob.core.windows.net/","queue":"https://craigwendpointtest.queue.core.windows.net/","table":"https://craigwendpointtest.table.core.windows.net/","file":"https://craigwendpointtest.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://craigwendpointtest-secondary.dfs.core.windows.net/","web":"https://craigwendpointtest-secondary.z13.web.core.windows.net/","blob":"https://craigwendpointtest-secondary.blob.core.windows.net/","queue":"https://craigwendpointtest-secondary.queue.core.windows.net/","table":"https://craigwendpointtest-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/craigw-win10test/providers/Microsoft.Storage/storageAccounts/craigwwin10test","name":"craigwwin10test","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":"2021-05-17T23:02:04.3032505Z","key2":"2021-05-17T23:02:04.3032505Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-17T23:02:04.3032505Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-17T23:02:04.3032505Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-05-17T23:02:04.1938884Z","primaryEndpoints":{"blob":"https://craigwwin10test.blob.core.windows.net/","queue":"https://craigwwin10test.queue.core.windows.net/","table":"https://craigwwin10test.table.core.windows.net/","file":"https://craigwwin10test.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kustoflow/providers/Microsoft.Storage/storageAccounts/csslinuxkustoflow","name":"csslinuxkustoflow","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{"CreatedBy":"craigw"},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-01T20:08:38.6849654Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-01T20:08:38.6849654Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-01T20:08:38.5912170Z","primaryEndpoints":{"dfs":"https://csslinuxkustoflow.dfs.core.windows.net/","web":"https://csslinuxkustoflow.z13.web.core.windows.net/","blob":"https://csslinuxkustoflow.blob.core.windows.net/","queue":"https://csslinuxkustoflow.queue.core.windows.net/","table":"https://csslinuxkustoflow.table.core.windows.net/","file":"https://csslinuxkustoflow.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://csslinuxkustoflow-secondary.dfs.core.windows.net/","web":"https://csslinuxkustoflow-secondary.z13.web.core.windows.net/","blob":"https://csslinuxkustoflow-secondary.blob.core.windows.net/","queue":"https://csslinuxkustoflow-secondary.queue.core.windows.net/","table":"https://csslinuxkustoflow-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/davidli2/providers/Microsoft.Storage/storageAccounts/davidli2diag","name":"davidli2diag","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-05-13T18:58:09.7400040Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-05-13T18:58:09.7400040Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-05-13T18:58:09.6618549Z","primaryEndpoints":{"blob":"https://davidli2diag.blob.core.windows.net/","queue":"https://davidli2diag.queue.core.windows.net/","table":"https://davidli2diag.table.core.windows.net/","file":"https://davidli2diag.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gen2-linux/providers/Microsoft.Storage/storageAccounts/gen2linux3be402a0b8","name":"gen2linux3be402a0b8","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-10-09T22:30:46.7307987Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-10-09T22:30:46.7307987Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-10-09T22:30:46.6214203Z","primaryEndpoints":{"blob":"https://gen2linux3be402a0b8.blob.core.windows.net/","queue":"https://gen2linux3be402a0b8.queue.core.windows.net/","table":"https://gen2linux3be402a0b8.table.core.windows.net/","file":"https://gen2linux3be402a0b8.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scrunnertestvmrg-eastus/providers/Microsoft.Storage/storageAccounts/scrunnercrkwpdn5nhtgg","name":"scrunnercrkwpdn5nhtgg","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-05-12T20:03:57.6389684Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-05-12T20:03:57.6389684Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-05-12T20:03:57.5451905Z","primaryEndpoints":{"blob":"https://scrunnercrkwpdn5nhtgg.blob.core.windows.net/","queue":"https://scrunnercrkwpdn5nhtgg.queue.core.windows.net/","table":"https://scrunnercrkwpdn5nhtgg.table.core.windows.net/","file":"https://scrunnercrkwpdn5nhtgg.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-RG/providers/Microsoft.Storage/storageAccounts/serialconsolepreview","name":"serialconsolepreview","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":"2021-05-07T21:41:56.3607334Z","key2":"2021-05-07T21:41:56.3607334Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_2","allowBlobPublicAccess":true,"allowSharedKeyAccess":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-07T21:41:56.3607334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-07T21:41:56.3607334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2021-05-07T21:41:56.2513536Z","primaryEndpoints":{"dfs":"https://serialconsolepreview.dfs.core.windows.net/","web":"https://serialconsolepreview.z13.web.core.windows.net/","blob":"https://serialconsolepreview.blob.core.windows.net/","queue":"https://serialconsolepreview.queue.core.windows.net/","table":"https://serialconsolepreview.table.core.windows.net/","file":"https://serialconsolepreview.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://serialconsolepreview-secondary.dfs.core.windows.net/","web":"https://serialconsolepreview-secondary.z13.web.core.windows.net/","blob":"https://serialconsolepreview-secondary.blob.core.windows.net/","queue":"https://serialconsolepreview-secondary.queue.core.windows.net/","table":"https://serialconsolepreview-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/serialconsole-test/providers/Microsoft.Storage/storageAccounts/serialconsoletestdiag","name":"serialconsoletestdiag","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-06T20:21:39.7019315Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-06T20:21:39.7019315Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-02-06T20:21:39.5925779Z","primaryEndpoints":{"blob":"https://serialconsoletestdiag.blob.core.windows.net/","queue":"https://serialconsoletestdiag.queue.core.windows.net/","table":"https://serialconsoletestdiag.table.core.windows.net/","file":"https://serialconsoletestdiag.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/serialTest-EastUS/providers/Microsoft.Storage/storageAccounts/serialtesta8d7fdee41","name":"serialtesta8d7fdee41","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-07-11T00:38:13.5389932Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-07-11T00:38:13.5389932Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-07-11T00:38:13.4452119Z","primaryEndpoints":{"blob":"https://serialtesta8d7fdee41.blob.core.windows.net/","queue":"https://serialtesta8d7fdee41.queue.core.windows.net/","table":"https://serialtesta8d7fdee41.table.core.windows.net/","file":"https://serialtesta8d7fdee41.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-RG/providers/Microsoft.Storage/storageAccounts/serialtestbootdiag123","name":"serialtestbootdiag123","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-01-23T04:03:01.3263151Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-01-23T04:03:01.3263151Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-01-23T04:03:01.2951106Z","primaryEndpoints":{"blob":"https://serialtestbootdiag123.blob.core.windows.net/","queue":"https://serialtestbootdiag123.queue.core.windows.net/","table":"https://serialtestbootdiag123.table.core.windows.net/","file":"https://serialtestbootdiag123.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/craigw-scaleset2_group/providers/Microsoft.Storage/storageAccounts/craigwvmss2","name":"craigwvmss2","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-05-06T20:19:17.6441402Z","key2":"2021-05-06T20:19:17.6441402Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-06T20:19:17.6441402Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-06T20:19:17.6441402Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-05-06T20:19:17.5347608Z","primaryEndpoints":{"blob":"https://craigwvmss2.blob.core.windows.net/","queue":"https://craigwvmss2.queue.core.windows.net/","table":"https://craigwvmss2.table.core.windows.net/","file":"https://craigwvmss2.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eastus2-bootdiagfirewall_group/providers/Microsoft.Storage/storageAccounts/eastus2bootdiagfirewall","name":"eastus2bootdiagfirewall","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"resourceAccessRules":[],"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eastus2-bootdiagfirewall_group/providers/Microsoft.Network/virtualNetworks/eastus2-bootdiagfirewall_group-vnet/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"40.91.126.232","action":"Allow"},{"value":"52.247.38.231","action":"Allow"},{"value":"67.197.218.105","action":"Allow"}],"defaultAction":"Deny"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-03-01T16:04:42.6507688Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-03-01T16:04:42.6507688Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-03-01T16:04:42.5571491Z","primaryEndpoints":{"blob":"https://eastus2bootdiagfirewall.blob.core.windows.net/","queue":"https://eastus2bootdiagfirewall.queue.core.windows.net/","table":"https://eastus2bootdiagfirewall.table.core.windows.net/","file":"https://eastus2bootdiagfirewall.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rhel-test/providers/Microsoft.Storage/storageAccounts/rhel77acct","name":"rhel77acct","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-08-13T20:31:30.8995173Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-08-13T20:31:30.8995173Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-08-13T20:31:30.8215811Z","primaryEndpoints":{"blob":"https://rhel77acct.blob.core.windows.net/","queue":"https://rhel77acct.queue.core.windows.net/","table":"https://rhel77acct.table.core.windows.net/","file":"https://rhel77acct.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scrunnertestvmrg-eastus2/providers/Microsoft.Storage/storageAccounts/scrunnersisx4cox63rpm","name":"scrunnersisx4cox63rpm","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-11-16T18:41:45.7023674Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-11-16T18:41:45.7023674Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-11-16T18:41:45.6085609Z","primaryEndpoints":{"blob":"https://scrunnersisx4cox63rpm.blob.core.windows.net/","queue":"https://scrunnersisx4cox63rpm.queue.core.windows.net/","table":"https://scrunnersisx4cox63rpm.table.core.windows.net/","file":"https://scrunnersisx4cox63rpm.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-westus/providers/Microsoft.Storage/storageAccounts/cs410037ffea943c134","name":"cs410037ffea943c134","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-23T23:07:16.0114253Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-23T23:07:16.0114253Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-23T23:07:15.9333036Z","primaryEndpoints":{"dfs":"https://cs410037ffea943c134.dfs.core.windows.net/","web":"https://cs410037ffea943c134.z22.web.core.windows.net/","blob":"https://cs410037ffea943c134.blob.core.windows.net/","queue":"https://cs410037ffea943c134.queue.core.windows.net/","table":"https://cs410037ffea943c134.table.core.windows.net/","file":"https://cs410037ffea943c134.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-westus/providers/Microsoft.Storage/storageAccounts/cs4aa22d82de270x4becxb48","name":"cs4aa22d82de270x4becxb48","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-11-29T23:39:30.3657182Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-11-29T23:39:30.3657182Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-11-29T23:39:30.2563159Z","primaryEndpoints":{"blob":"https://cs4aa22d82de270x4becxb48.blob.core.windows.net/","queue":"https://cs4aa22d82de270x4becxb48.queue.core.windows.net/","table":"https://cs4aa22d82de270x4becxb48.table.core.windows.net/","file":"https://cs4aa22d82de270x4becxb48.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SCRunner/providers/Microsoft.Storage/storageAccounts/scrunnerstorage","name":"scrunnerstorage","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":false,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-03-06T00:42:11.7016543Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2018-03-06T00:42:11.7016543Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2018-03-06T00:42:11.6234985Z","primaryEndpoints":{"blob":"https://scrunnerstorage.blob.core.windows.net/","queue":"https://scrunnerstorage.queue.core.windows.net/","table":"https://scrunnerstorage.table.core.windows.net/","file":"https://scrunnerstorage.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ubuntu-westeurope/providers/Microsoft.Storage/storageAccounts/craigwubuntu1","name":"craigwubuntu1","type":"Microsoft.Storage/storageAccounts","location":"westeurope","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-09-27T17:09:08.0955260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-09-27T17:09:08.0955260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-09-27T17:09:08.0330220Z","primaryEndpoints":{"blob":"https://craigwubuntu1.blob.core.windows.net/","queue":"https://craigwubuntu1.queue.core.windows.net/","table":"https://craigwubuntu1.table.core.windows.net/","file":"https://craigwubuntu1.file.core.windows.net/"},"primaryLocation":"westeurope","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-southcentralus/providers/Microsoft.Storage/storageAccounts/cs710032001417ec1a8","name":"cs710032001417ec1a8","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"keyCreationTime":{"key1":"2021-05-18T22:07:33.4170256Z","key2":"2021-05-18T22:07:33.4170256Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_2","allowBlobPublicAccess":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-18T22:07:33.4170256Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-18T22:07:33.4170256Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2021-05-18T22:07:33.3389725Z","primaryEndpoints":{"dfs":"https://cs710032001417ec1a8.dfs.core.windows.net/","web":"https://cs710032001417ec1a8.z21.web.core.windows.net/","blob":"https://cs710032001417ec1a8.blob.core.windows.net/","queue":"https://cs710032001417ec1a8.queue.core.windows.net/","table":"https://cs710032001417ec1a8.table.core.windows.net/","file":"https://cs710032001417ec1a8.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SCRunnertestvmrg-AustraliaEast/providers/Microsoft.Storage/storageAccounts/scrunner4p3t72mzheluc","name":"scrunner4p3t72mzheluc","type":"Microsoft.Storage/storageAccounts","location":"australiaeast","tags":{},"properties":{"keyCreationTime":{"key1":"2021-04-13T22:35:36.6210942Z","key2":"2021-04-13T22:35:36.6210942Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-04-13T22:35:36.6210942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-04-13T22:35:36.6210942Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-04-13T22:35:36.5429508Z","primaryEndpoints":{"blob":"https://scrunner4p3t72mzheluc.blob.core.windows.net/","queue":"https://scrunner4p3t72mzheluc.queue.core.windows.net/","table":"https://scrunner4p3t72mzheluc.table.core.windows.net/","file":"https://scrunner4p3t72mzheluc.file.core.windows.net/"},"primaryLocation":"australiaeast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aabedon/providers/Microsoft.Storage/storageAccounts/aabedondiag","name":"aabedondiag","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-05-18T23:08:58.5284733Z","key2":"2021-05-18T23:08:58.5284733Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-18T23:08:58.5284733Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-18T23:08:58.5284733Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-05-18T23:08:58.4503170Z","primaryEndpoints":{"blob":"https://aabedondiag.blob.core.windows.net/","queue":"https://aabedondiag.queue.core.windows.net/","table":"https://aabedondiag.table.core.windows.net/","file":"https://aabedondiag.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-07-07T21:37:25.8668137Z","key2":"2021-07-07T21:37:25.8668137Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:37:25.8668137Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:37:25.8668137Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-07-07T21:37:25.8043462Z","primaryEndpoints":{"blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsolekeqxnqvpb5nk3ioubqx2mboruuup2udh7noysbjstmo44mwdpof3s/providers/Microsoft.Storage/storageAccounts/clicmlw74i5bocqmquqlfihg","name":"clicmlw74i5bocqmquqlfihg","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-07-07T21:37:26.5543149Z","key2":"2021-07-07T21:37:26.5543149Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:37:26.5543149Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:37:26.5543149Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-07-07T21:37:26.4918159Z","primaryEndpoints":{"blob":"https://clicmlw74i5bocqmquqlfihg.blob.core.windows.net/","queue":"https://clicmlw74i5bocqmquqlfihg.queue.core.windows.net/","table":"https://clicmlw74i5bocqmquqlfihg.table.core.windows.net/","file":"https://clicmlw74i5bocqmquqlfihg.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsolejo7rqwkkpscvutdavpu6o7btpqy2u74eyrjtrjrqldkkezxkd6oaf/providers/Microsoft.Storage/storageAccounts/clieekxh4h4r4abkskt5ki56","name":"clieekxh4h4r4abkskt5ki56","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-07-07T21:37:25.8824435Z","key2":"2021-07-07T21:37:25.8824435Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:37:25.8824435Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:37:25.8824435Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-07-07T21:37:25.8199469Z","primaryEndpoints":{"blob":"https://clieekxh4h4r4abkskt5ki56.blob.core.windows.net/","queue":"https://clieekxh4h4r4abkskt5ki56.queue.core.windows.net/","table":"https://clieekxh4h4r4abkskt5ki56.table.core.windows.net/","file":"https://clieekxh4h4r4abkskt5ki56.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsoleczaq7w35hrmhsuqkzok7gw7bv3ve7tyhexzmtzca62lklro34oskb/providers/Microsoft.Storage/storageAccounts/cliepavefijbrxgz2ic23rib","name":"cliepavefijbrxgz2ic23rib","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-07-07T21:40:41.8616087Z","key2":"2021-07-07T21:40:41.8616087Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:40:41.8771843Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-07-07T21:40:41.8771843Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-07-07T21:40:41.7834301Z","primaryEndpoints":{"blob":"https://cliepavefijbrxgz2ic23rib.blob.core.windows.net/","queue":"https://cliepavefijbrxgz2ic23rib.queue.core.windows.net/","table":"https://cliepavefijbrxgz2ic23rib.table.core.windows.net/","file":"https://cliepavefijbrxgz2ic23rib.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/craigw-gui-test_group/providers/Microsoft.Storage/storageAccounts/craigwguitestgroupdiag","name":"craigwguitestgroupdiag","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-06-25T20:43:28.9782992Z","key2":"2021-06-25T20:43:28.9782992Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_2","networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-06-25T20:43:28.9782992Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-06-25T20:43:28.9782992Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-06-25T20:43:28.9001463Z","primaryEndpoints":{"blob":"https://craigwguitestgroupdiag.blob.core.windows.net/","queue":"https://craigwguitestgroupdiag.queue.core.windows.net/","table":"https://craigwguitestgroupdiag.table.core.windows.net/","file":"https://craigwguitestgroupdiag.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/craigw-win2016_group/providers/Microsoft.Storage/storageAccounts/craigwwin2016groupdiag","name":"craigwwin2016groupdiag","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":"2021-04-20T19:30:51.9126006Z","key2":"2021-04-20T19:30:51.9126006Z"},"privateEndpointConnections":[],"minimumTlsVersion":"TLS1_2","networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-04-20T19:30:51.9126006Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-04-20T19:30:51.9126006Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-04-20T19:30:51.8344874Z","primaryEndpoints":{"blob":"https://craigwwin2016groupdiag.blob.core.windows.net/","queue":"https://craigwwin2016groupdiag.queue.core.windows.net/","table":"https://craigwwin2016groupdiag.table.core.windows.net/","file":"https://craigwwin2016groupdiag.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jaolmste/providers/Microsoft.Storage/storageAccounts/jaolmstediag","name":"jaolmstediag","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-23T23:13:21.4837277Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-23T23:13:21.4837277Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-23T23:13:21.4212653Z","primaryEndpoints":{"blob":"https://jaolmstediag.blob.core.windows.net/","queue":"https://jaolmstediag.queue.core.windows.net/","table":"https://jaolmstediag.table.core.windows.net/","file":"https://jaolmstediag.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scrunnertestvmrg-westus2/providers/Microsoft.Storage/storageAccounts/scrunnerqxoorwnvnig3e","name":"scrunnerqxoorwnvnig3e","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-11-12T21:37:33.9638456Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-11-12T21:37:33.9638456Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-11-12T21:37:33.8857017Z","primaryEndpoints":{"blob":"https://scrunnerqxoorwnvnig3e.blob.core.windows.net/","queue":"https://scrunnerqxoorwnvnig3e.queue.core.windows.net/","table":"https://scrunnerqxoorwnvnig3e.table.core.windows.net/","file":"https://scrunnerqxoorwnvnig3e.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scrunnertestvmrg-westcentralus/providers/Microsoft.Storage/storageAccounts/scrunnerrfscmqxeni3uq","name":"scrunnerrfscmqxeni3uq","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-10T22:28:55.2104910Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-10T22:28:55.2104910Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-10T22:28:55.1479670Z","primaryEndpoints":{"blob":"https://scrunnerrfscmqxeni3uq.blob.core.windows.net/","queue":"https://scrunnerrfscmqxeni3uq.queue.core.windows.net/","table":"https://scrunnerrfscmqxeni3uq.table.core.windows.net/","file":"https://scrunnerrfscmqxeni3uq.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scrunnertestvmrg-eastus2euap/providers/Microsoft.Storage/storageAccounts/scrunner4b2ydmou4cdic","name":"scrunner4b2ydmou4cdic","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"keyCreationTime":{"key1":null,"key2":null},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-02-01T23:39:10.1050496Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-02-01T23:39:10.1050496Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2021-02-01T23:39:10.0300734Z","primaryEndpoints":{"blob":"https://scrunner4b2ydmou4cdic.blob.core.windows.net/","queue":"https://scrunner4b2ydmou4cdic.queue.core.windows.net/","table":"https://scrunner4b2ydmou4cdic.table.core.windows.net/","file":"https://scrunner4b2ydmou4cdic.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '40910' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 77c3d2c8-d01f-4733-ba45-e272c7550ec7 + - 591d5f4e-3531-456c-a9f3-14c970ba5ddc + - 3bc435d1-a5c2-4a51-93fb-05efcb06ef62 + - f063392a-03a1-4db4-9a18-a68113adea9b + - 9e35d630-1333-4999-a20e-943ae94c8c4e + - 94ff2715-4649-421f-9a72-49ea7af56da4 + - 6b339abc-3113-4b7a-8faa-a16957e2de8e + - 4dfa8b39-6679-4c1a-959a-8f6ac5ec6192 + - ae42feb6-134e-4536-a777-1ed31edc027d + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": + {"osDisk": {"osType": "Linux", "name": "cli000003_disk1_c31150ae03d94164a46c567623e1e39a", + "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a", + "storageAccountType": "Premium_LRS"}}, "dataDisks": []}, "osProfile": {"computerName": + "cli000003", "adminUsername": "useraabedon", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}}, "secrets": [], "allowExtensionOperations": true, "requireGuestProvisionSignal": + true}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic"}]}, + "diagnosticsProfile": {"bootDiagnostics": {"enabled": true, "storageUri": "https://cli000002.blob.core.windows.net/"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + Content-Length: + - '1953' + Content-Type: + - application/json + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"provisioningState\": \"Updating\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/cf2d74b0-43b6-43b6-8e2a-297894184b66?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '3010' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1190 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/cf2d74b0-43b6-43b6-8e2a-297894184b66?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:41:40.4837937+00:00\",\r\n \"endTime\": + \"2021-07-07T21:41:49.4213442+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"cf2d74b0-43b6-43b6-8e2a-297894184b66\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14957,Microsoft.Compute/GetOperation30Min;29823 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3011' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31902 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:42:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm boot-diagnostics enable + Connection: + - keep-alive + ParameterSetName: + - -g -n --storage + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": + {\r\n \"computerName\": \"cli000003\",\r\n \"osName\": \"ubuntu\",\r\n + \ \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": + \"2.3.1.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": + \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \"time\": + \"2021-07-07T21:41:52+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:40:57.9678985+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": + {\r\n \"consoleScreenshotBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-clizkwe2c-905d02e7-1f14-4116-a7c7-73d63520272c/cli000003.905d02e7-1f14-4116-a7c7-73d63520272c.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-clizkwe2c-905d02e7-1f14-4116-a7c7-73d63520272c/cli000003.905d02e7-1f14-4116-a7c7-73d63520272c.serialconsole.log\"\r\n + \ },\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:41:49.405708+00:00\"\r\n },\r\n + \ {\r\n \"code\": \"PowerState/running\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n + \ ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4851' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31901 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console disable + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": true\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '46' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:42:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console disable + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": true\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '46' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:42:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/enableConsole?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:42:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:42:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"cli000003\",\r\n + \ \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": + {\r\n \"computerName\": \"cli000003\",\r\n \"osName\": \"ubuntu\",\r\n + \ \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": + \"2.3.1.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": + \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"Ready\",\r\n \"message\": \"Guest Agent is running\",\r\n \"time\": + \"2021-07-07T21:41:52+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:40:57.9678985+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": + {\r\n \"consoleScreenshotBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-clizkwe2c-905d02e7-1f14-4116-a7c7-73d63520272c/cli000003.905d02e7-1f14-4116-a7c7-73d63520272c.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-clizkwe2c-905d02e7-1f14-4116-a7c7-73d63520272c/cli000003.905d02e7-1f14-4116-a7c7-73d63520272c.serialconsole.log\"\r\n + \ },\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:41:49.405708+00:00\"\r\n },\r\n + \ {\r\n \"code\": \"PowerState/running\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n + \ ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4851' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31900 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003/deallocate?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ef978655-a840-443b-bd99-7cc5269d6f87?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:42:11 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ef978655-a840-443b-bd99-7cc5269d6f87?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVM3Min;238,Microsoft.Compute/DeleteVM30Min;1194 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ef978655-a840-443b-bd99-7cc5269d6f87?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:42:12.5152831+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"ef978655-a840-443b-bd99-7cc5269d6f87\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42: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-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14955,Microsoft.Compute/GetOperation30Min;29821 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ef978655-a840-443b-bd99-7cc5269d6f87?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:42:12.5152831+00:00\",\r\n \"endTime\": + \"2021-07-07T21:42:46.4374074+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"ef978655-a840-443b-bd99-7cc5269d6f87\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14954,Microsoft.Compute/GetOperation30Min;29811 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ef978655-a840-443b-bd99-7cc5269d6f87?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:42:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14953,Microsoft.Compute/GetOperation30Min;29810 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:42:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus2\",\r\n + \ \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"properties\": {\r\n \"vmId\": \"905d02e7-1f14-4116-a7c7-73d63520272c\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202106220\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_SERIALCONSOLES63AC7EFQBSUAEOSCXNWF3EHWXFBZDJ36X6IDSNZWDTS4WTDHLXJ5/providers/Microsoft.Compute/disks/cli000003_disk1_c31150ae03d94164a46c567623e1e39a\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"cli000003\",\r\n \"adminUsername\": \"useraabedon\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/networkInterfaces/cli000003VMNic\"}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": + {\r\n \"disks\": [\r\n {\r\n \"name\": \"cli000003_disk1_c31150ae03d94164a46c567623e1e39a\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:42:44.3592818+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": + {\r\n \"consoleScreenshotBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-clizkwe2c-905d02e7-1f14-4116-a7c7-73d63520272c/cli000003.905d02e7-1f14-4116-a7c7-73d63520272c.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-clizkwe2c-905d02e7-1f14-4116-a7c7-73d63520272c/cli000003.905d02e7-1f14-4116-a7c7-73d63520272c.serialconsole.log\"\r\n + \ },\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:42:44.3749057+00:00\"\r\n },\r\n + \ {\r\n \"code\": \"PowerState/deallocated\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM deallocated\"\r\n }\r\n + \ ]\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4296' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3973,Microsoft.Compute/LowCostGet30Min;31894 + status: + code: 200 + message: OK +version: 1 diff --git a/src/serial-console/azext_serialconsole/tests/latest/recordings/test_check_resource_VMSS.yaml b/src/serial-console/azext_serialconsole/tests/latest/recordings/test_check_resource_VMSS.yaml new file mode 100644 index 00000000000..d802885b3ca --- /dev/null +++ b/src/serial-console/azext_serialconsole/tests/latest/recordings/test_check_resource_VMSS.yaml @@ -0,0 +1,6661 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:37:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachines/cli000003'' + under resource group ''cli_test_serialconsole000001'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '305' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachineScaleSets/cli000003'' + under resource group ''cli_test_serialconsole000001'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '313' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/0/instanceView?api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''cli000003'' not + found."}}' + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.25.1 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\": + \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"latest\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\"\n },\n \"openSUSE-Leap\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n + \ \"sku\": \"42.3\",\n \"version\": \"latest\"\n },\n + \ \"RHEL\": {\n \"publisher\": \"RedHat\",\n \"offer\": + \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n + \ },\n \"SLES\": {\n \"publisher\": \"SUSE\",\n + \ \"offer\": \"SLES\",\n \"sku\": \"15\",\n \"version\": + \"latest\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\"\n }\n },\n + \ \"Windows\": {\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2016Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2012R2Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2012-R2-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2008R2SP1\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n + \ \"version\": \"latest\"\n }\n }\n }\n }\n + \ }\n}\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2525' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:46 GMT + etag: + - W/"54bceef15b892f2aa7f4c2145a49f1b5e33608722acdbb47933d7b6cbebbd7f4" + expires: + - Wed, 07 Jul 2021 21:42:46 GMT + source-age: + - '1' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - e99095e370db6d8112c9f0d79e650d04d872df8f + x-frame-options: + - deny + x-github-request-id: + - ABBE:0CCC:316D69:7C8907:60E5A579 + x-served-by: + - cache-sea4444-SEA + x-timer: + - S1625693867.506653,VS0,VE1 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:46 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: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "cli000003VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus2", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "cli000003Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion": + "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "cli000003LBPublicIP", + "location": "westus2", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": + "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", "name": "cli000003LB", + "location": "westus2", "tags": {}, "apiVersion": "2018-01-01", "dependsOn": + ["Microsoft.Network/virtualNetworks/cli000003VNET", "Microsoft.Network/publicIpAddresses/cli000003LBPublicIP"], + "properties": {"backendAddressPools": [{"name": "cli000003LBBEPool"}], "inboundNatPools": + [{"name": "cli000003LBNatPool", "properties": {"frontendIPConfiguration": {"id": + "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''cli000003LB''), ''/frontendIPConfigurations/'', + ''loadBalancerFrontEnd'')]"}, "protocol": "tcp", "frontendPortRangeStart": "50000", + "frontendPortRangeEnd": "50119", "backendPort": 22}}], "frontendIPConfigurations": + [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003LBPublicIP"}}}]}}, + {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "cli000003", "location": + "westus2", "tags": {}, "apiVersion": "2021-03-01", "dependsOn": ["Microsoft.Network/virtualNetworks/cli000003VNET", + "Microsoft.Network/loadBalancers/cli000003LB"], "sku": {"name": "Standard_DS1_v2", + "capacity": 2}, "properties": {"overprovision": true, "upgradePolicy": {"mode": + "manual", "rollingUpgradePolicy": {}}, "virtualMachineProfile": {"storageProfile": + {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": + {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", + "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}}, "networkProfile": + {"networkInterfaceConfigurations": [{"name": "cli751a50Nic", "properties": {"primary": + "true", "ipConfigurations": [{"name": "cli751a50IPConfig", "properties": {"subnet": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"}, + "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool"}]}}]}}]}, + "osProfile": {"computerNamePrefix": "cli751a50", "adminUsername": "useraabedon", + "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": + [{"path": "/home/useraabedon/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}}}}, + "singlePlacementGroup": null}}], "outputs": {"VMSS": {"type": "object", "value": + "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', ''cli000003''),providers(''Microsoft.Compute'', + ''virtualMachineScaleSets'').apiVersions[0])]"}}}, "parameters": {}, "mode": + "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + Content-Length: + - '4578' + Content-Type: + - application/json + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/vmss_deploy_wBHMItBZwAt7IWUNo86kEIcaTJwqqPbn","name":"vmss_deploy_wBHMItBZwAt7IWUNo86kEIcaTJwqqPbn","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16411889795931879184","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-07-07T21:37:48.4041415Z","duration":"PT0.59784S","correlationId":"fffce82c-fe03-44b7-bda4-8e16a3cdf20a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]},{"resourceType":"publicIPAddresses","locations":["westus2"]},{"resourceType":"loadBalancers","locations":["westus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"cli000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"cli000003LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"cli000003LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"cli000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"cli000003LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"cli000003"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/vmss_deploy_wBHMItBZwAt7IWUNo86kEIcaTJwqqPbn/operationStatuses/08585759130176713322?api-version=2020-10-01 + cache-control: + - no-cache + content-length: + - '2923' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:37:47 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: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585759130176713322?api-version=2020-10-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585759130176713322?api-version=2020-10-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:38:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585759130176713322?api-version=2020-10-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585759130176713322?api-version=2020-10-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Resources/deployments/vmss_deploy_wBHMItBZwAt7IWUNo86kEIcaTJwqqPbn","name":"vmss_deploy_wBHMItBZwAt7IWUNo86kEIcaTJwqqPbn","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16411889795931879184","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2021-07-07T21:39:38.7459092Z","duration":"PT1M50.9396077S","correlationId":"fffce82c-fe03-44b7-bda4-8e16a3cdf20a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]},{"resourceType":"publicIPAddresses","locations":["westus2"]},{"resourceType":"loadBalancers","locations":["westus2"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"cli000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"cli000003LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"cli000003LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"cli000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"cli000003LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"cli000003"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","rollingUpgradePolicy":{"maxBatchInstancePercent":20,"maxUnhealthyInstancePercent":20,"maxUnhealthyUpgradedInstancePercent":20,"pauseTimeBetweenBatches":"PT0S"}},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"cli751a50","adminUsername":"useraabedon","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/useraabedon/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"osType":"Linux","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":30},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"cli751a50Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"cli751a50IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool"}]}}]}}]},"extensionProfile":{"extensions":[{"name":"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent","properties":{"autoUpgradeMinorVersion":true,"publisher":"Microsoft.Azure.Monitor","type":"AzureMonitorLinuxAgent","typeHandlerVersion":"1.0","settings":{"GCS_AUTO_CONFIG":true}}},{"name":"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent","properties":{"autoUpgradeMinorVersion":true,"publisher":"Microsoft.Azure.Security.Monitoring","type":"AzureSecurityLinuxAgent","typeHandlerVersion":"2.0","settings":{"enableGenevaUpload":true}}}]}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"5ce176b1-00e5-4a47-93e1-42470f29e358"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/publicIPAddresses/cli000003LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '7002' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:39:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003?$expand=instanceView&api-version=2021-03-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachines/cli000003'' + under resource group ''cli_test_serialconsole000001'' was not found. For more + details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '305' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --instance-count -l + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4638' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1252 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss list-instances + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --query + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualMachines?api-version=2021-03-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"cli000003_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualMachines/1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n + \ \"location\": \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": + \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"instanceId\": \"1\",\r\n \"sku\": {\r\n + \ \"name\": \"Standard_DS1_v2\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"latestModelApplied\": true,\r\n + \ \"modelDefinitionApplied\": \"VirtualMachineScaleSet\",\r\n \"networkProfileConfiguration\": + {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"vmId\": \"58edc68e-3556-4441-b04c-53dabb86d406\",\r\n \"hardwareProfile\": + {},\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n + \ \"exactVersion\": \"18.04.202106220\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_5349f8c0d10b437f8eced8e4e91a971a\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_5349f8c0d10b437f8eced8e4e91a971a\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"cli751a50000001\",\r\n \"adminUsername\": \"useraabedon\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/useraabedon/.ssh/authorized_keys\",\r\n + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualMachines/1/networkInterfaces/cli751a50Nic\"}]},\r\n + \ \"provisioningState\": \"Updating\"\r\n },\r\n \"resources\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003_1/extensions/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n + \ \"location\": \"westus2\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"provisioningState\": \"Updating\",\r\n \"publisher\": + \"Microsoft.Azure.Monitor\",\r\n \"type\": \"AzureMonitorLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"1.0\",\r\n \"settings\": + {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n },\r\n {\r\n \"name\": + \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003_1/extensions/Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n + \ \"location\": \"westus2\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"provisioningState\": \"Updating\",\r\n \"publisher\": + \"Microsoft.Azure.Security.Monitoring\",\r\n \"type\": \"AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"enableGenevaUpload\":true}\r\n }\r\n }\r\n ]\r\n },\r\n + \ {\r\n \"name\": \"cli000003_2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualMachines/2\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n + \ \"location\": \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": + \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"instanceId\": \"2\",\r\n \"sku\": {\r\n + \ \"name\": \"Standard_DS1_v2\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"latestModelApplied\": true,\r\n + \ \"modelDefinitionApplied\": \"VirtualMachineScaleSet\",\r\n \"networkProfileConfiguration\": + {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"vmId\": \"870318e7-04e3-4fb8-8563-f8f6324520d7\",\r\n \"hardwareProfile\": + {},\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n + \ \"exactVersion\": \"18.04.202106220\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/disks/cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"cli751a50000002\",\r\n \"adminUsername\": \"useraabedon\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/useraabedon/.ssh/authorized_keys\",\r\n + \ \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualMachines/2/networkInterfaces/cli751a50Nic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003_2/extensions/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n + \ \"location\": \"westus2\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": + \"Microsoft.Azure.Monitor\",\r\n \"type\": \"AzureMonitorLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"1.0\",\r\n \"settings\": + {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n },\r\n {\r\n \"name\": + \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachines/cli000003_2/extensions/Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n + \ \"location\": \"westus2\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": + \"Microsoft.Azure.Security.Monitoring\",\r\n \"type\": \"AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"enableGenevaUpload\":true}\r\n }\r\n }\r\n ]\r\n }\r\n + \ ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '12289' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostGetVMScaleSet3Min;170,Microsoft.Compute/HighCostGetVMScaleSet30Min;805,Microsoft.Compute/VMScaleSetVMViews3Min;4990 + x-ms-request-charge: + - '4' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4638' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;187,Microsoft.Compute/GetVMScaleSet30Min;1251 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "sku": {"name": "Standard_DS1_v2", "tier": "Standard", "capacity": + 2}, "properties": {"upgradePolicy": {"mode": "Manual", "rollingUpgradePolicy": + {"maxBatchInstancePercent": 20, "maxUnhealthyInstancePercent": 20, "maxUnhealthyUpgradedInstancePercent": + 20, "pauseTimeBetweenBatches": "PT0S"}}, "virtualMachineProfile": {"osProfile": + {"computerNamePrefix": "cli751a50", "adminUsername": "useraabedon", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true}, "secrets": []}, "storageProfile": {"osDisk": {"caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "osType": "Linux", + "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": + [{"name": "cli751a50Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "cli751a50IPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "diagnosticsProfile": {"bootDiagnostics": {"enabled": + true}}, "extensionProfile": {"extensions": [{"name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", + "properties": {"publisher": "Microsoft.Azure.Monitor", "type": "AzureMonitorLinuxAgent", + "typeHandlerVersion": "1.0", "autoUpgradeMinorVersion": true, "settings": {"GCS_AUTO_CONFIG": + true}}}, {"name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", + "properties": {"publisher": "Microsoft.Azure.Security.Monitoring", "type": "AzureSecurityLinuxAgent", + "typeHandlerVersion": "2.0", "autoUpgradeMinorVersion": true, "settings": {"enableGenevaUpload": + true}}}]}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '3245' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/a0a26038-ee98-4c48-82b2-8fca51711fa2?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '4746' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:39:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;56,Microsoft.Compute/CreateVMScaleSet30Min;291,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/a0a26038-ee98-4c48-82b2-8fca51711fa2?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:39:50.5455727+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"a0a26038-ee98-4c48-82b2-8fca51711fa2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29856 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/a0a26038-ee98-4c48-82b2-8fca51711fa2?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:39:50.5455727+00:00\",\r\n \"endTime\": + \"2021-07-07T21:40:26.6082678+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a0a26038-ee98-4c48-82b2-8fca51711fa2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14969,Microsoft.Compute/GetOperation30Min;29846 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4747' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:40:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;182,Microsoft.Compute/GetVMScaleSet30Min;1249 + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/manualupgrade?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c8f81c49-aa8e-4c0b-ad18-786bbe2d9a1d?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:40:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c8f81c49-aa8e-4c0b-ad18-786bbe2d9a1d?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1189,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1190,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c8f81c49-aa8e-4c0b-ad18-786bbe2d9a1d?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:40:38.3896188+00:00\",\r\n \"endTime\": + \"2021-07-07T21:40:44.6708934+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"c8f81c49-aa8e-4c0b-ad18-786bbe2d9a1d\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14968,Microsoft.Compute/GetOperation30Min;29840 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c8f81c49-aa8e-4c0b-ad18-786bbe2d9a1d?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14967,Microsoft.Compute/GetOperation30Min;29839 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:40:51+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:40:39.1395816+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {},\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:40:44.6396422+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2808' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;499,Microsoft.Compute/GetVMScaleSetVM30Min;2487,Microsoft.Compute/VMScaleSetVMViews3Min;4993 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/deallocate?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8af66b6d-83ad-49aa-ace6-a9afb6ca6bfb?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:41:08 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8af66b6d-83ad-49aa-ace6-a9afb6ca6bfb?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVMScaleSetVM3Min;239,Microsoft.Compute/DeleteVMScaleSetVM30Min;1196,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1189,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8af66b6d-83ad-49aa-ace6-a9afb6ca6bfb?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:41:09.6398384+00:00\",\r\n \"endTime\": + \"2021-07-07T21:41:34.9056834+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"8af66b6d-83ad-49aa-ace6-a9afb6ca6bfb\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14960,Microsoft.Compute/GetOperation30Min;29830 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/8af66b6d-83ad-49aa-ace6-a9afb6ca6bfb?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:41:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14959,Microsoft.Compute/GetOperation30Min;29829 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:41:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 2,\r\n \"platformFaultDomain\": 2,\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:41:34.6868912+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {},\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:41:34.7181451+00:00\"\r\n },\r\n {\r\n + \ \"code\": \"PowerState/deallocated\",\r\n \"level\": \"Info\",\r\n + \ \"displayStatus\": \"VM deallocated\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '880' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:41:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;495,Microsoft.Compute/GetVMScaleSetVM30Min;2483,Microsoft.Compute/VMScaleSetVMViews3Min;4989 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/77827b2e-3daa-49a1-9479-4f6a1aa6314e?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:41:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/77827b2e-3daa-49a1-9479-4f6a1aa6314e?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1188,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1188,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/77827b2e-3daa-49a1-9479-4f6a1aa6314e?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:41:40.4369162+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"77827b2e-3daa-49a1-9479-4f6a1aa6314e\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14958,Microsoft.Compute/GetOperation30Min;29824 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/77827b2e-3daa-49a1-9479-4f6a1aa6314e?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:41:40.4369162+00:00\",\r\n \"endTime\": + \"2021-07-07T21:42:22.7965865+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"77827b2e-3daa-49a1-9479-4f6a1aa6314e\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:42:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14959,Microsoft.Compute/GetOperation30Min;29816 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/77827b2e-3daa-49a1-9479-4f6a1aa6314e?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:42:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14958,Microsoft.Compute/GetOperation30Min;29815 + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/poweroff?skipShutdown=false&api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/50518163-42a0-441f-aac5-f86ad1e74b89?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:42:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/50518163-42a0-441f-aac5-f86ad1e74b89?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVMScaleSet3Min;78,Microsoft.Compute/DeleteVMScaleSet30Min;394,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1189,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/50518163-42a0-441f-aac5-f86ad1e74b89?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:42:41.0154935+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"50518163-42a0-441f-aac5-f86ad1e74b89\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:43:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14960,Microsoft.Compute/GetOperation30Min;29809 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/50518163-42a0-441f-aac5-f86ad1e74b89?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:42:41.0154935+00:00\",\r\n \"endTime\": + \"2021-07-07T21:43:19.4376046+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"50518163-42a0-441f-aac5-f86ad1e74b89\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:43:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14963,Microsoft.Compute/GetOperation30Min;29805 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/50518163-42a0-441f-aac5-f86ad1e74b89?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:43:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14962,Microsoft.Compute/GetOperation30Min;29804 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:43:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:42:21+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:41:42.2181749+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {},\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:43:19.4063364+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/stopped\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM stopped\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2808' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:43:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;493,Microsoft.Compute/GetVMScaleSetVM30Min;2481,Microsoft.Compute/VMScaleSetVMViews3Min;4986 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/74beccdc-7bcc-48fd-9bef-325fa33b9688?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:43:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/74beccdc-7bcc-48fd-9bef-325fa33b9688?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1187,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1184,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/74beccdc-7bcc-48fd-9bef-325fa33b9688?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:43:41.7815012+00:00\",\r\n \"endTime\": + \"2021-07-07T21:43:48.4378409+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"74beccdc-7bcc-48fd-9bef-325fa33b9688\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14966,Microsoft.Compute/GetOperation30Min;29800 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/74beccdc-7bcc-48fd-9bef-325fa33b9688?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:44:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14965,Microsoft.Compute/GetOperation30Min;29799 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4747' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;195,Microsoft.Compute/GetVMScaleSet30Min;1244 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "sku": {"name": "Standard_DS1_v2", "tier": "Standard", "capacity": + 2}, "properties": {"upgradePolicy": {"mode": "Manual", "rollingUpgradePolicy": + {"maxBatchInstancePercent": 20, "maxUnhealthyInstancePercent": 20, "maxUnhealthyUpgradedInstancePercent": + 20, "pauseTimeBetweenBatches": "PT0S"}}, "virtualMachineProfile": {"osProfile": + {"computerNamePrefix": "cli751a50", "adminUsername": "useraabedon", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true}, "secrets": []}, "storageProfile": {"osDisk": {"caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "osType": "Linux", + "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": + [{"name": "cli751a50Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "cli751a50IPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "diagnosticsProfile": {"bootDiagnostics": {"enabled": + true, "storageUri": "https://cli000002.blob.core.windows.net/"}}, "extensionProfile": + {"extensions": [{"name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", "properties": + {"publisher": "Microsoft.Azure.Monitor", "type": "AzureMonitorLinuxAgent", "typeHandlerVersion": + "1.0", "autoUpgradeMinorVersion": true, "settings": {"GCS_AUTO_CONFIG": true}}}, + {"name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", "properties": + {"publisher": "Microsoft.Azure.Security.Monitoring", "type": "AzureSecurityLinuxAgent", + "typeHandlerVersion": "2.0", "autoUpgradeMinorVersion": true, "settings": {"enableGenevaUpload": + true}}}]}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '3318' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ffad4599-fa52-4592-99d1-faae992fc254?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '4830' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;288,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ffad4599-fa52-4592-99d1-faae992fc254?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:44:13.5317787+00:00\",\r\n \"endTime\": + \"2021-07-07T21:44:13.8286274+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"ffad4599-fa52-4592-99d1-faae992fc254\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14962,Microsoft.Compute/GetOperation30Min;29796 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;187,Microsoft.Compute/GetVMScaleSet30Min;1236 + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/manualupgrade?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/db0fce0b-6b44-4889-82bf-c0760e8d33a4?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:44:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/db0fce0b-6b44-4889-82bf-c0760e8d33a4?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1186,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1183,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/db0fce0b-6b44-4889-82bf-c0760e8d33a4?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:44:24.2818752+00:00\",\r\n \"endTime\": + \"2021-07-07T21:44:33.000694+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"db0fce0b-6b44-4889-82bf-c0760e8d33a4\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14964,Microsoft.Compute/GetOperation30Min;29789 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/db0fce0b-6b44-4889-82bf-c0760e8d33a4?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:44:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14963,Microsoft.Compute/GetOperation30Min;29788 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:44:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:44:36+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:44:25.156837+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {\r\n \"consoleScreenshotBlobUri\": + \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.serialconsole.log\"\r\n + \ },\r\n \"extensions\": [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:44:32.9537689+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3278' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;498,Microsoft.Compute/GetVMScaleSetVM30Min;2480,Microsoft.Compute/VMScaleSetVMViews3Min;4992 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console disable + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": true\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '46' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:44:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console disable + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": true\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '46' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:44:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/enableConsole?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:44:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:44:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:44:36+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:44:25.156837+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {\r\n \"consoleScreenshotBlobUri\": + \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.serialconsole.log\"\r\n + \ },\r\n \"extensions\": [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:44:32.9537689+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3278' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:44:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;497,Microsoft.Compute/GetVMScaleSetVM30Min;2479,Microsoft.Compute/VMScaleSetVMViews3Min;4991 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/deallocate?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5ca3dc44-a5be-43d0-a699-7e1101beb737?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:44:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5ca3dc44-a5be-43d0-a699-7e1101beb737?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVMScaleSetVM3Min;239,Microsoft.Compute/DeleteVMScaleSetVM30Min;1195,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1182,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5ca3dc44-a5be-43d0-a699-7e1101beb737?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:44:56.2820083+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"5ca3dc44-a5be-43d0-a699-7e1101beb737\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:45:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14963,Microsoft.Compute/GetOperation30Min;29787 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5ca3dc44-a5be-43d0-a699-7e1101beb737?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:44:56.2820083+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"5ca3dc44-a5be-43d0-a699-7e1101beb737\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:45:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14966,Microsoft.Compute/GetOperation30Min;29781 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5ca3dc44-a5be-43d0-a699-7e1101beb737?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:44:56.2820083+00:00\",\r\n \"endTime\": + \"2021-07-07T21:46:06.7360122+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5ca3dc44-a5be-43d0-a699-7e1101beb737\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:46:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14964,Microsoft.Compute/GetOperation30Min;29776 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5ca3dc44-a5be-43d0-a699-7e1101beb737?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:46:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14963,Microsoft.Compute/GetOperation30Min;29775 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:46:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:46:05.6734733+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {\r\n \"consoleScreenshotBlobUri\": + \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.serialconsole.log\"\r\n + \ },\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n + \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2021-07-07T21:46:05.704755+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/deallocated\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"VM deallocated\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1350' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:46:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;496,Microsoft.Compute/GetVMScaleSetVM30Min;2478,Microsoft.Compute/VMScaleSetVMViews3Min;4992 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5947a38f-e0ad-48ac-8ee5-fa2693011d72?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:46:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5947a38f-e0ad-48ac-8ee5-fa2693011d72?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;235,Microsoft.Compute/VMScaleSetActions30Min;1183,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1183,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5947a38f-e0ad-48ac-8ee5-fa2693011d72?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:46:27.0956849+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"5947a38f-e0ad-48ac-8ee5-fa2693011d72\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:46:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14964,Microsoft.Compute/GetOperation30Min;29770 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5947a38f-e0ad-48ac-8ee5-fa2693011d72?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:46:27.0956849+00:00\",\r\n \"endTime\": + \"2021-07-07T21:47:24.096226+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5947a38f-e0ad-48ac-8ee5-fa2693011d72\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:47:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14967,Microsoft.Compute/GetOperation30Min;29767 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5947a38f-e0ad-48ac-8ee5-fa2693011d72?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:47:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14966,Microsoft.Compute/GetOperation30Min;29766 + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/poweroff?skipShutdown=false&api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/225730c2-7891-4f5e-ae03-78bbc6e049a6?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:47:27 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/225730c2-7891-4f5e-ae03-78bbc6e049a6?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;394,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1189,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/225730c2-7891-4f5e-ae03-78bbc6e049a6?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:47:27.6587463+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"225730c2-7891-4f5e-ae03-78bbc6e049a6\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:47:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14970,Microsoft.Compute/GetOperation30Min;29763 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/225730c2-7891-4f5e-ae03-78bbc6e049a6?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:47:27.6587463+00:00\",\r\n \"endTime\": + \"2021-07-07T21:48:10.268402+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"225730c2-7891-4f5e-ae03-78bbc6e049a6\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:48:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14972,Microsoft.Compute/GetOperation30Min;29758 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/225730c2-7891-4f5e-ae03-78bbc6e049a6?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:48:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14971,Microsoft.Compute/GetOperation30Min;29757 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:48:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:47:14+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:46:27.7988417+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {\r\n \"consoleScreenshotBlobUri\": + \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.serialconsole.log\"\r\n + \ },\r\n \"extensions\": [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:48:10.2527906+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/stopped\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM stopped\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3279' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:48:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;486,Microsoft.Compute/GetVMScaleSetVM30Min;2465,Microsoft.Compute/VMScaleSetVMViews3Min;4977 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/0f9ad396-357b-4338-9c73-2d0854baf2d6?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:48:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/0f9ad396-357b-4338-9c73-2d0854baf2d6?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1182,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1191,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/0f9ad396-357b-4338-9c73-2d0854baf2d6?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:48:28.5185229+00:00\",\r\n \"endTime\": + \"2021-07-07T21:48:40.4404814+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"0f9ad396-357b-4338-9c73-2d0854baf2d6\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:48:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14975,Microsoft.Compute/GetOperation30Min;29755 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/0f9ad396-357b-4338-9c73-2d0854baf2d6?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:48:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29754 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:48:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1225 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "sku": {"name": "Standard_DS1_v2", "tier": "Standard", "capacity": + 2}, "properties": {"upgradePolicy": {"mode": "Manual", "rollingUpgradePolicy": + {"maxBatchInstancePercent": 20, "maxUnhealthyInstancePercent": 20, "maxUnhealthyUpgradedInstancePercent": + 20, "pauseTimeBetweenBatches": "PT0S"}}, "virtualMachineProfile": {"osProfile": + {"computerNamePrefix": "cli751a50", "adminUsername": "useraabedon", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true}, "secrets": []}, "storageProfile": {"osDisk": {"caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "osType": "Linux", + "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": + [{"name": "cli751a50Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "cli751a50IPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "diagnosticsProfile": {"bootDiagnostics": {"enabled": + false}}, "extensionProfile": {"extensions": [{"name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", + "properties": {"publisher": "Microsoft.Azure.Monitor", "type": "AzureMonitorLinuxAgent", + "typeHandlerVersion": "1.0", "autoUpgradeMinorVersion": true, "settings": {"GCS_AUTO_CONFIG": + true}}}, {"name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", + "properties": {"publisher": "Microsoft.Azure.Security.Monitoring", "type": "AzureSecurityLinuxAgent", + "typeHandlerVersion": "2.0", "autoUpgradeMinorVersion": true, "settings": {"enableGenevaUpload": + true}}}]}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '3246' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/54f91919-d8f9-4b0e-a8ad-bffa31816f1d?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '4831' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:49:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;59,Microsoft.Compute/CreateVMScaleSet30Min;286,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/54f91919-d8f9-4b0e-a8ad-bffa31816f1d?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:49:00.3000186+00:00\",\r\n \"endTime\": + \"2021-07-07T21:49:00.5343863+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"54f91919-d8f9-4b0e-a8ad-bffa31816f1d\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:49:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14977,Microsoft.Compute/GetOperation30Min;29752 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4832' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:49:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1221 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:49:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:49:00+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:46:27.7988417+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {\r\n \"consoleScreenshotBlobUri\": + \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.screenshot.bmp\",\r\n + \ \"serialConsoleLogBlobUri\": \"https://cli000002.blob.core.windows.net/bootdiagnostics-cli75nuzo-870318e7-04e3-4fb8-8563-f8f6324520d7/cli000003_2.870318e7-04e3-4fb8-8563-f8f6324520d7.serialconsole.log\"\r\n + \ },\r\n \"extensions\": [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:48:40.4092753+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3279' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:49:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;486,Microsoft.Compute/GetVMScaleSetVM30Min;2464,Microsoft.Compute/VMScaleSetVMViews3Min;4979 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/manualupgrade?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ee6218cd-5138-41bf-8fb7-b7906f415663?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:49:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ee6218cd-5138-41bf-8fb7-b7906f415663?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1181,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1190,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ee6218cd-5138-41bf-8fb7-b7906f415663?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:49:11.2531758+00:00\",\r\n \"endTime\": + \"2021-07-07T21:49:17.9719749+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"ee6218cd-5138-41bf-8fb7-b7906f415663\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:49:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29748 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/ee6218cd-5138-41bf-8fb7-b7906f415663?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:49:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14978,Microsoft.Compute/GetOperation30Min;29747 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:49:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:49:23+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:46:27.7988417+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:49:17.9407237+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2782' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:49:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;491,Microsoft.Compute/GetVMScaleSetVM30Min;2463,Microsoft.Compute/VMScaleSetVMViews3Min;4985 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/deallocate?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/3f725552-cfd4-4458-965b-0049e5746ae3?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:49:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/3f725552-cfd4-4458-965b-0049e5746ae3?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/DeleteVMScaleSetVM3Min;239,Microsoft.Compute/DeleteVMScaleSetVM30Min;1194,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1189,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/3f725552-cfd4-4458-965b-0049e5746ae3?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:49:42.3471993+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"3f725552-cfd4-4458-965b-0049e5746ae3\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:50:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29793 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/3f725552-cfd4-4458-965b-0049e5746ae3?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:49:42.3471993+00:00\",\r\n \"endTime\": + \"2021-07-07T21:50:17.9880817+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"3f725552-cfd4-4458-965b-0049e5746ae3\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:50:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29790 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/3f725552-cfd4-4458-965b-0049e5746ae3?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:50: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-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14978,Microsoft.Compute/GetOperation30Min;29789 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:50:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:50:16.9255601+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"time\": \"2021-07-07T21:50:16.9411709+00:00\"\r\n },\r\n {\r\n + \ \"code\": \"PowerState/deallocated\",\r\n \"level\": \"Info\",\r\n + \ \"displayStatus\": \"VM deallocated\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '854' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:50:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;495,Microsoft.Compute/GetVMScaleSetVM30Min;2464,Microsoft.Compute/VMScaleSetVMViews3Min;4995 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/start?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:50:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1182,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1189,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:50:43.1131801+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14980,Microsoft.Compute/GetOperation30Min;29786 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:50:43.1131801+00:00\",\r\n \"endTime\": + \"2021-07-07T21:51:26.4259801+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14980,Microsoft.Compute/GetOperation30Min;29783 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss start + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/5d5bdc4b-a249-4fc7-aaa0-7e6190a645fd?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:51: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-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29782 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + false,\r\n \"storageUri\": \"https://cli000002.blob.core.windows.net/\"\r\n + \ }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4832' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1229 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "tags": {"azsecpack": "nonprod", "platformsettings.host_environment.service.platform_optedin_for_rootcerts": + "true"}, "sku": {"name": "Standard_DS1_v2", "tier": "Standard", "capacity": + 2}, "properties": {"upgradePolicy": {"mode": "Manual", "rollingUpgradePolicy": + {"maxBatchInstancePercent": 20, "maxUnhealthyInstancePercent": 20, "maxUnhealthyUpgradedInstancePercent": + 20, "pauseTimeBetweenBatches": "PT0S"}}, "virtualMachineProfile": {"osProfile": + {"computerNamePrefix": "cli751a50", "adminUsername": "useraabedon", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/useraabedon/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3"}]}, + "provisionVMAgent": true}, "secrets": []}, "storageProfile": {"osDisk": {"caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "osType": "Linux", + "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": + [{"name": "cli751a50Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "cli751a50IPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "diagnosticsProfile": {"bootDiagnostics": {"enabled": + true}}, "extensionProfile": {"extensions": [{"name": "Microsoft.Azure.Monitor.AzureMonitorLinuxAgent", + "properties": {"publisher": "Microsoft.Azure.Monitor", "type": "AzureMonitorLinuxAgent", + "typeHandlerVersion": "1.0", "autoUpgradeMinorVersion": true, "settings": {"GCS_AUTO_CONFIG": + true}}}, {"name": "Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent", + "properties": {"publisher": "Microsoft.Azure.Security.Monitoring", "type": "AzureSecurityLinuxAgent", + "typeHandlerVersion": "2.0", "autoUpgradeMinorVersion": true, "settings": {"enableGenevaUpload": + true}}}]}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '3245' + Content-Type: + - application/json + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/f707f210-9dcc-450e-87de-38ae92d626c9?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '4746' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;286,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/f707f210-9dcc-450e-87de-38ae92d626c9?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:51:44.7386358+00:00\",\r\n \"endTime\": + \"2021-07-07T21:51:44.9417702+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"f707f210-9dcc-450e-87de-38ae92d626c9\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14977,Microsoft.Compute/GetOperation30Min;29780 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003?api-version=2021-03-01 + response: + body: + string: "{\r\n \"name\": \"cli000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"tags\": {\r\n \"azsecpack\": \"nonprod\",\r\n \"platformsettings.host_environment.service.platform_optedin_for_rootcerts\": + \"true\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": + {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": + 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"cli751a50\",\r\n \"adminUsername\": \"useraabedon\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/useraabedon/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0Gw3f0EtRO65EEYmPvlLEDipvXLlMW75hZpyuR5jAYFWTx1rHcLaUL9GtG+KQWtXBjVBTJzo3Srr4inbf1Mf21Vpy3JLfiwkN09PQlMIQXj1xgKwK6x5IXRr1+2i9VhcXQ05hsld5YPTqUW7wUIcdikQfwmHGtmZ92WiLdvAqODi9ceEcuJrABb14gquHnmbc9zVS3LhWGT+x8pvyw7co8IjmGfPuto+XbP+dOJUwNQ9nrdhhAkzHtAM5cfI5s974rREACnMszdOvszDPnL5YF6gnwHa4H1EGPfbdoV1nuSZbi9exSDP1qy3yUyJo5gI7VITgCHFyDWUAcOIlRBY3\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": + {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n + \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"cli751a50Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"cli751a50IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/virtualNetworks/cli000003VNET/subnets/cli000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/backendAddressPools/cli000003LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Network/loadBalancers/cli000003LB/inboundNatPools/cli000003LBNatPool\"}]}}]}}]},\r\n + \ \"diagnosticsProfile\": {\r\n \"bootDiagnostics\": {\r\n \"enabled\": + true\r\n }\r\n },\r\n \"extensionProfile\": {\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Monitor\",\r\n \"type\": + \"AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": \"1.0\",\r\n + \ \"settings\": {\"GCS_AUTO_CONFIG\":true}\r\n }\r\n + \ },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"properties\": {\r\n \"autoUpgradeMinorVersion\": + true,\r\n \"publisher\": \"Microsoft.Azure.Security.Monitoring\",\r\n + \ \"type\": \"AzureSecurityLinuxAgent\",\r\n \"typeHandlerVersion\": + \"2.0\",\r\n \"settings\": {\"enableGenevaUpload\":true}\r\n + \ }\r\n }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"5ce176b1-00e5-4a47-93e1-42470f29e358\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4747' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1225 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:51:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --set + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:51:19+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:50:43.6444547+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:51:26.3947253+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2782' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:51:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;496,Microsoft.Compute/GetVMScaleSetVM30Min;2463,Microsoft.Compute/VMScaleSetVMViews3Min;4995 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"instanceIds": ["2"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/manualupgrade?api-version=2021-03-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/52a59204-b3f3-4e2e-84c4-59b3b7303f76?api-version=2021-03-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:51:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/52a59204-b3f3-4e2e-84c4-59b3b7303f76?monitor=true&api-version=2021-03-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1181,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1190,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '1' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/52a59204-b3f3-4e2e-84c4-59b3b7303f76?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-07-07T21:51:55.6293662+00:00\",\r\n \"endTime\": + \"2021-07-07T21:52:04.3637067+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"52a59204-b3f3-4e2e-84c4-59b3b7303f76\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:52:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29778 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/52a59204-b3f3-4e2e-84c4-59b3b7303f76?monitor=true&api-version=2021-03-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 07 Jul 2021 21:52:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14978,Microsoft.Compute/GetOperation30Min;29777 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:52:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update-instances + Connection: + - keep-alive + ParameterSetName: + - -g -n --instance-ids + User-Agent: + - AZURECLI/2.25.0 azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Windows-10-10.0.19042-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_serialconsole000001/providers/Microsoft.Compute/virtualMachineScaleSets/cli000003/virtualmachines/2/instanceView?api-version=2021-03-01 + response: + body: + string: "{\r\n \"placementGroupId\": \"bedb4f4d-40dc-4cc4-b7a7-eda9d821e67d\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"cli751a50000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.1.1\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2021-07-07T21:52:05+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": + \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"status\": {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Plugin enabled\"\r\n }\r\n },\r\n {\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"status\": {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Plugin enabled\"\r\n }\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"cli75nuzosdxjfgbwwtlcli75nuzosdxjfgbwwtljOS__1_da7016de2b4a4e30848ddc5cba6b649c\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2021-07-07T21:51:56.3949606+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"bootDiagnostics\": {},\r\n \"extensions\": + [\r\n {\r\n \"name\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Monitor.AzureMonitorLinuxAgent\",\r\n \"typeHandlerVersion\": + \"1.10.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"message\": \"Enable succeeded\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"name\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"type\": \"Microsoft.Azure.Security.Monitoring.AzureSecurityLinuxAgent\",\r\n + \ \"typeHandlerVersion\": \"2.15.112\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n + \ \"message\": \"Enable ASM succeeded\"\r\n }\r\n ]\r\n + \ }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": + \"2021-07-07T21:52:04.3168295+00:00\"\r\n },\r\n {\r\n \"code\": + \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": + \"VM running\"\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2808' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 07 Jul 2021 21:52:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetVM3Min;496,Microsoft.Compute/GetVMScaleSetVM30Min;2462,Microsoft.Compute/VMScaleSetVMViews3Min;4989 + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +version: 1 diff --git a/src/serial-console/azext_serialconsole/tests/latest/recordings/test_enable_disable.yaml b/src/serial-console/azext_serialconsole/tests/latest/recordings/test_enable_disable.yaml new file mode 100644 index 00000000000..c24f9cb0969 --- /dev/null +++ b/src/serial-console/azext_serialconsole/tests/latest/recordings/test_enable_disable.yaml @@ -0,0 +1,108 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console disable + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": true\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '46' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:37:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - serial-console enable + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - AZURECLI/2.25.0 azsdk-python-microsoftserialconsoleclient/unknown Python/3.8.10 + (Windows-10-10.0.19042-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SerialConsole/consoleServices/default/enableConsole?api-version=2018-05-01 + response: + body: + string: "{\n \"properties\": {\n \"disabled\": false\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json; charset=UTF-8 + date: + - Wed, 07 Jul 2021 21:37:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +version: 1 diff --git a/src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py b/src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py new file mode 100644 index 00000000000..65d19b1b004 --- /dev/null +++ b/src/serial-console/azext_serialconsole/tests/latest/test_serialconsole_scenario.py @@ -0,0 +1,411 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import json +import time +import requests +import websocket +import pytest +from azext_serialconsole.custom import check_resource +from azure.cli.testsdk.base import ScenarioTest +from azure.cli.testsdk import ( + LiveScenarioTest, StorageAccountPreparer, ResourceGroupPreparer) +from azure.cli.testsdk.exceptions import JMESPathCheckAssertionError +from azure.cli.core.azclierror import ForbiddenError, ResourceNotFoundError +from azure.cli.core.azclierror import AzureConnectionError +from azure.cli.core.azclierror import ForbiddenError +from azure.core.exceptions import ResourceNotFoundError as ComputeClientResourceNotFoundError + +TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) + +class CheckResourceTest(ScenarioTest): + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_check_resource_VMSS(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + + with self.assertRaises(ComputeClientResourceNotFoundError): + check_resource(self.cli_ctx, resource_group, name, None) + with self.assertRaises(ComputeClientResourceNotFoundError): + check_resource(self.cli_ctx, resource_group, name, "0") + + self.cmd('az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') + + with self.assertRaises(ResourceNotFoundError): + check_resource(self.cli_ctx, resource_group, name, None) + + iid = self.cmd('vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json()[1] + self.kwargs.update({'id': iid}) + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\" : null}}}}"') + self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss deallocate -g {rg} -n {name} --instance-ids {id}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') + self.cmd('az vmss stop -g {rg} -n {name} --instance-ids {id}') + + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') + self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az serial-console disable') + + with self.assertRaises(ForbiddenError): + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az serial-console enable') + + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss deallocate -g {rg} -n {name} --instance-ids {id}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') + self.cmd('az vmss stop -g {rg} -n {name} --instance-ids {id}') + + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"False\\",\\"StorageUri\\" : null}}}}"') + + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss deallocate -g {rg} -n {name} --instance-ids {id}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss start -g {rg} -n {name} --instance-ids {id}') + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\" : null}}}}"') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, iid) + + self.cmd('az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + + check_resource(self.cli_ctx, resource_group, name, iid) + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_check_resource_VM(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + + with self.assertRaises(ComputeClientResourceNotFoundError): + check_resource(self.cli_ctx, resource_group, name, None) + with self.assertRaises(ComputeClientResourceNotFoundError): + check_resource(self.cli_ctx, resource_group, name, "0") + + self.cmd('az vm create -g {rg} -n {name} --image {urn} -l {loc} --generate-ssh-keys') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm boot-diagnostics enable -g {rg} -n {name}') + + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm deallocate -g {rg} -n {name}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm start -g {rg} -n {name}') + self.cmd('az vm stop -g {rg} -n {name}') + + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm boot-diagnostics disable -g {rg} -n {name}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm start -g {rg} -n {name}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm boot-diagnostics enable -g {rg} -n {name} --storage {sa}') + + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az serial-console disable') + + with self.assertRaises(ForbiddenError): + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az serial-console enable') + + check_resource(self.cli_ctx, resource_group, name, None) + + self.cmd('az vm deallocate -g {rg} -n {name}') + + with self.assertRaises(AzureConnectionError): + check_resource(self.cli_ctx, resource_group, name, None) + + +class SerialConsoleEnableDisableTest(ScenarioTest): + + def test_enable_disable(self): + self.cmd('az serial-console disable', checks=[ + self.check('properties.disabled', 'True') + ]) + self.cmd('az serial-console enable', checks=[ + self.check('properties.disabled', 'False') + ]) + + +class SerialconsoleAdminCommandsTest(LiveScenarioTest): + + def check_result(self, resource_group_name, vm_vmss_name, vmss_instanceid=None, message=""): + ARM_ENDPOINT = "https://management.azure.com" + RP_PROVIDER = "Microsoft.SerialConsole" + subscription_id = self.get_subscription_id() + vm_path = f"virtualMachineScaleSets/{vm_vmss_name}/virtualMachines/{vmss_instanceid}" \ + if vmss_instanceid else f"virtualMachines/{vm_vmss_name}" + connection_url = (f"{ARM_ENDPOINT}/subscriptions/{subscription_id}/resourcegroups/{resource_group_name}" + f"/providers/Microsoft.Compute/{vm_path}" + f"/providers/{RP_PROVIDER}/serialPorts/0" + f"/connect?api-version=2018-05-01") + + from azure.cli.core._profile import Profile + token_info, _, _ = Profile().get_raw_token() + access_token = token_info[1] + application_json_format = "application/json" + headers = {'authorization': "Bearer " + access_token, + 'accept': application_json_format, + 'content-type': application_json_format} + result = requests.post(connection_url, headers=headers) + json_results = json.loads(result.text) + self.assertTrue(result.status_code == + 200 and "connectionString" in json_results) + websocket_url = json_results["connectionString"] + + ws = websocket.WebSocket() + ws.connect(websocket_url + "?authorization=" + access_token, timeout=30) + buffer = "" + while True: + try: + buffer += ws.recv() + except (websocket.WebSocketTimeoutException, websocket.WebSocketConnectionClosedException): + break + + assert message in buffer + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_send_sysrq_VMSS(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + self.cmd( + 'az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') + result = self.cmd( + 'vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json() + self.kwargs.update({'id': result[1]}) + self.cmd( + 'az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + time.sleep(60) + for i in range(5): + try: + self.cmd('vmss get-instance-view --resource-group {rg} --name {name} --instance-id {id}', checks=[ + self.check('statuses[0].code', + 'ProvisioningState/succeeded'), + self.check('statuses[1].code', 'PowerState/running'), + ]) + break + except JMESPathCheckAssertionError: + time.sleep(30) + self.cmd( + 'serial-console send sysrq -g {rg} -n {name} --instance-id {id} --input h') + self.check_result(resource_group, name, + vmss_instanceid=result[1], message="sysrq: HELP") + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_send_nmi_VMSS(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + self.cmd( + 'az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') + result = self.cmd( + 'vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json() + self.kwargs.update({'id': result[1]}) + self.cmd( + 'az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + time.sleep(60) + for i in range(5): + try: + self.cmd('vmss get-instance-view --resource-group {rg} --name {name} --instance-id {id}', checks=[ + self.check('statuses[0].code', + 'ProvisioningState/succeeded'), + self.check('statuses[1].code', 'PowerState/running'), + ]) + break + except JMESPathCheckAssertionError: + time.sleep(30) + self.cmd( + 'serial-console send nmi -g {rg} -n {name} --instance-id {id}') + self.check_result(resource_group, name, + vmss_instanceid=result[1], message="NMI received") + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_send_reset_VMSS(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + self.cmd( + 'az vmss create -g {rg} -n {name} --image {urn} --instance-count 2 -l {loc}') + self.cmd('az vmss update --name {name} --resource-group {rg} --set virtualMachineProfile.diagnosticsProfile="{{\\"bootDiagnostics\\": {{\\"Enabled\\" : \\"True\\",\\"StorageUri\\":\\"https://{sa}.blob.core.windows.net/\\"}}}}"') + result = self.cmd( + 'vmss list-instances --resource-group {rg} --name {name} --query "[].instanceId"').get_output_in_json() + self.kwargs.update({'id': result[1]}) + self.cmd( + 'az vmss update-instances -g {rg} -n {name} --instance-ids {id}') + time.sleep(60) + for i in range(5): + try: + self.cmd('vmss get-instance-view --resource-group {rg} --name {name} --instance-id {id}', checks=[ + self.check('statuses[0].code', + 'ProvisioningState/succeeded'), + self.check('statuses[1].code', 'PowerState/running'), + ]) + break + except JMESPathCheckAssertionError: + time.sleep(30) + self.cmd('serial-console send reset -g {rg} -n {name} --instance-id {id}') + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_send_nmi_VM(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + self.cmd( + 'az vm create -g {rg} -n {name} --image {urn} --boot-diagnostics-storage {sa} -l {loc} --generate-ssh-keys') + time.sleep(60) + for i in range(5): + try: + self.cmd('vm get-instance-view --resource-group {rg} --name {name}', checks=[ + self.check( + 'instanceView.statuses[0].code', 'ProvisioningState/succeeded'), + self.check( + 'instanceView.statuses[1].code', 'PowerState/running'), + ]) + break + except JMESPathCheckAssertionError: + time.sleep(30) + self.cmd('serial-console send nmi -g {rg} -n {name}') + self.check_result(resource_group, name, message="NMI received") + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_send_sysrq_VM(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + self.cmd( + 'az vm create -g {rg} -n {name} --image {urn} --boot-diagnostics-storage {sa} -l {loc} --generate-ssh-keys') + time.sleep(60) + for i in range(5): + try: + self.cmd('vm get-instance-view --resource-group {rg} --name {name}', checks=[ + self.check( + 'instanceView.statuses[0].code', 'ProvisioningState/succeeded'), + self.check( + 'instanceView.statuses[1].code', 'PowerState/running'), + ]) + break + except JMESPathCheckAssertionError: + time.sleep(30) + self.cmd('serial-console send sysrq -g {rg} -n {name} --input h') + self.check_result(resource_group, name, message="sysrq: HELP") + + @ResourceGroupPreparer(name_prefix='cli_test_serialconsole', location='westus2') + @StorageAccountPreparer(name_prefix='cli', location="westus2") + def test_send_reset_VM(self, resource_group, storage_account): + name = self.create_random_name(prefix='cli', length=24) + self.kwargs.update({ + 'sa': storage_account, + 'rg': resource_group, + 'name': name, + 'urn': 'UbuntuLTS', + 'loc': 'westus2' + }) + self.cmd( + 'az vm create -g {rg} -n {name} --image {urn} --boot-diagnostics-storage {sa} -l {loc} --generate-ssh-keys') + time.sleep(60) + for i in range(5): + try: + self.cmd('vm get-instance-view --resource-group {rg} --name {name}', checks=[ + self.check( + 'instanceView.statuses[0].code', 'ProvisioningState/succeeded'), + self.check( + 'instanceView.statuses[1].code', 'PowerState/running'), + ]) + break + except JMESPathCheckAssertionError: + time.sleep(30) + self.cmd('serial-console send reset -g {rg} -n {name}') diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/__init__.py b/src/serial-console/azext_serialconsole/vendored_sdks/__init__.py new file mode 100644 index 00000000000..c9cfdc73e77 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/__init__.py @@ -0,0 +1,12 @@ +# 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. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/__init__.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/__init__.py new file mode 100644 index 00000000000..4c4341cce29 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/__init__.py @@ -0,0 +1,16 @@ +# 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. +# -------------------------------------------------------------------------- + +from ._microsoft_serial_console_client import MicrosoftSerialConsoleClient +__all__ = ['MicrosoftSerialConsoleClient'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/_configuration.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/_configuration.py new file mode 100644 index 00000000000..c457c24783e --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/_configuration.py @@ -0,0 +1,70 @@ +# 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. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +VERSION = "unknown" + +class MicrosoftSerialConsoleClientConfiguration(Configuration): + """Configuration for MicrosoftSerialConsoleClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: Subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call requiring it. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(MicrosoftSerialConsoleClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2018-05-01" + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'microsoftserialconsoleclient/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/_microsoft_serial_console_client.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/_microsoft_serial_console_client.py new file mode 100644 index 00000000000..3176195fef4 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/_microsoft_serial_console_client.py @@ -0,0 +1,69 @@ +# 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. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.mgmt.core import ARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential + +from ._configuration import MicrosoftSerialConsoleClientConfiguration +from .operations import MicrosoftSerialConsoleClientOperationsMixin +from .operations import SerialPortsOperations +from . import models + + +class MicrosoftSerialConsoleClient(MicrosoftSerialConsoleClientOperationsMixin): + """The Azure Serial Console allows you to access the serial console of a Virtual Machine or VM scale set instance. + + :ivar serial_ports: SerialPortsOperations operations + :vartype serial_ports: microsoft_serial_console_client.operations.SerialPortsOperations + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: Subscription ID which uniquely identifies the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call requiring it. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = MicrosoftSerialConsoleClientConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.serial_ports = SerialPortsOperations( + self._client, self._config, self._serialize, self._deserialize) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> MicrosoftSerialConsoleClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/__init__.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/__init__.py new file mode 100644 index 00000000000..68eace947f8 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/__init__.py @@ -0,0 +1,57 @@ +# 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. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import CloudErrorBody + from ._models_py3 import DisableSerialConsoleResult + from ._models_py3 import EnableSerialConsoleResult + from ._models_py3 import GetSerialConsoleSubscriptionNotFound + from ._models_py3 import ProxyResource + from ._models_py3 import Resource + from ._models_py3 import SerialConsoleOperations + from ._models_py3 import SerialConsoleOperationsValueItem + from ._models_py3 import SerialConsoleOperationsValueItemDisplay + from ._models_py3 import SerialConsoleStatus + from ._models_py3 import SerialPort + from ._models_py3 import SerialPortConnectResult + from ._models_py3 import SerialPortListResult +except (SyntaxError, ImportError): + from ._models import CloudErrorBody # type: ignore + from ._models import DisableSerialConsoleResult # type: ignore + from ._models import EnableSerialConsoleResult # type: ignore + from ._models import GetSerialConsoleSubscriptionNotFound # type: ignore + from ._models import ProxyResource # type: ignore + from ._models import Resource # type: ignore + from ._models import SerialConsoleOperations # type: ignore + from ._models import SerialConsoleOperationsValueItem # type: ignore + from ._models import SerialConsoleOperationsValueItemDisplay # type: ignore + from ._models import SerialConsoleStatus # type: ignore + from ._models import SerialPort # type: ignore + from ._models import SerialPortConnectResult # type: ignore + from ._models import SerialPortListResult # type: ignore + +from ._microsoft_serial_console_client_enums import ( + SerialPortState, +) + +__all__ = [ + 'CloudErrorBody', + 'DisableSerialConsoleResult', + 'EnableSerialConsoleResult', + 'GetSerialConsoleSubscriptionNotFound', + 'ProxyResource', + 'Resource', + 'SerialConsoleOperations', + 'SerialConsoleOperationsValueItem', + 'SerialConsoleOperationsValueItemDisplay', + 'SerialConsoleStatus', + 'SerialPort', + 'SerialPortConnectResult', + 'SerialPortListResult', + 'SerialPortState', +] diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_microsoft_serial_console_client_enums.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_microsoft_serial_console_client_enums.py new file mode 100644 index 00000000000..1125b26eca6 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_microsoft_serial_console_client_enums.py @@ -0,0 +1,34 @@ +# 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. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class SerialPortState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies whether the port is enabled for a serial console connection. + """ + + ENABLED = "enabled" + DISABLED = "disabled" diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_models.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_models.py new file mode 100644 index 00000000000..d4ec3a5821a --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_models.py @@ -0,0 +1,342 @@ +# 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. +# -------------------------------------------------------------------------- + +import msrest.serialization + + +class CloudErrorBody(msrest.serialization.Model): + """An error response from the Batch service. + + :param code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :type code: str + :param message: A message describing the error, intended to be suitable for display in a user + interface. + :type message: str + :param target: The target of the particular error. For example, the name of the property in + error. + :type target: str + :param details: A list of additional details about the error. + :type details: list[~microsoft_serial_console_client.models.CloudErrorBody] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudErrorBody, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + +class DisableSerialConsoleResult(msrest.serialization.Model): + """Returns whether or not Serial Console is disabled. + + :param disabled: Whether or not Serial Console is disabled. + :type disabled: bool + """ + + _attribute_map = { + 'disabled': {'key': 'disabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(DisableSerialConsoleResult, self).__init__(**kwargs) + self.disabled = kwargs.get('disabled', None) + + +class EnableSerialConsoleResult(msrest.serialization.Model): + """Returns whether or not Serial Console is disabled (enabled). + + :param disabled: Whether or not Serial Console is disabled (enabled). + :type disabled: bool + """ + + _attribute_map = { + 'disabled': {'key': 'disabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(EnableSerialConsoleResult, self).__init__(**kwargs) + self.disabled = kwargs.get('disabled', None) + + +class GetSerialConsoleSubscriptionNotFound(msrest.serialization.Model): + """Error saying that the provided subscription could not be found. + + :param code: Error code. + :type code: str + :param message: Subscription not found message. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(GetSerialConsoleSubscriptionNotFound, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class Resource(msrest.serialization.Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _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'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _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'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + +class SerialConsoleOperations(msrest.serialization.Model): + """Serial Console operations. + + :param value: A list of Serial Console operations. + :type value: list[~microsoft_serial_console_client.models.SerialConsoleOperationsValueItem] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SerialConsoleOperationsValueItem]'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialConsoleOperations, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class SerialConsoleOperationsValueItem(msrest.serialization.Model): + """SerialConsoleOperationsValueItem. + + :param name: + :type name: str + :param is_data_action: + :type is_data_action: str + :param display: + :type display: ~microsoft_serial_console_client.models.SerialConsoleOperationsValueItemDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'SerialConsoleOperationsValueItemDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialConsoleOperationsValueItem, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.is_data_action = kwargs.get('is_data_action', None) + self.display = kwargs.get('display', None) + + +class SerialConsoleOperationsValueItemDisplay(msrest.serialization.Model): + """SerialConsoleOperationsValueItemDisplay. + + :param provider: + :type provider: str + :param resource: + :type resource: str + :param operation: + :type operation: str + :param description: + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialConsoleOperationsValueItemDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class SerialConsoleStatus(msrest.serialization.Model): + """Returns whether or not Serial Console is disabled. + + :param disabled: Whether or not Serial Console is disabled. + :type disabled: bool + """ + + _attribute_map = { + 'disabled': {'key': 'disabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialConsoleStatus, self).__init__(**kwargs) + self.disabled = kwargs.get('disabled', None) + + +class SerialPort(Resource): + """Represents the serial port of the parent resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param state: Specifies whether the port is enabled for a serial console connection. Possible + values include: "enabled", "disabled". + :type state: str or ~microsoft_serial_console_client.models.SerialPortState + """ + + _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'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialPort, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + + +class SerialPortConnectResult(msrest.serialization.Model): + """Returns a connection string to the serial port of the resource. + + :param connection_string: Connection string to the serial port of the resource. + :type connection_string: str + """ + + _attribute_map = { + 'connection_string': {'key': 'connectionString', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialPortConnectResult, self).__init__(**kwargs) + self.connection_string = kwargs.get('connection_string', None) + + +class SerialPortListResult(msrest.serialization.Model): + """The list serial ports operation response. + + :param value: The list of serial ports. + :type value: list[~microsoft_serial_console_client.models.SerialPort] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SerialPort]'}, + } + + def __init__( + self, + **kwargs + ): + super(SerialPortListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_models_py3.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_models_py3.py new file mode 100644 index 00000000000..d0286cb3a64 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/models/_models_py3.py @@ -0,0 +1,377 @@ +# 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. +# -------------------------------------------------------------------------- + +from typing import List, Optional, Union + +import msrest.serialization + +from ._microsoft_serial_console_client_enums import * + + +class CloudErrorBody(msrest.serialization.Model): + """An error response from the Batch service. + + :param code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :type code: str + :param message: A message describing the error, intended to be suitable for display in a user + interface. + :type message: str + :param target: The target of the particular error. For example, the name of the property in + error. + :type target: str + :param details: A list of additional details about the error. + :type details: list[~microsoft_serial_console_client.models.CloudErrorBody] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + target: Optional[str] = None, + details: Optional[List["CloudErrorBody"]] = None, + **kwargs + ): + super(CloudErrorBody, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class DisableSerialConsoleResult(msrest.serialization.Model): + """Returns whether or not Serial Console is disabled. + + :param disabled: Whether or not Serial Console is disabled. + :type disabled: bool + """ + + _attribute_map = { + 'disabled': {'key': 'disabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + disabled: Optional[bool] = None, + **kwargs + ): + super(DisableSerialConsoleResult, self).__init__(**kwargs) + self.disabled = disabled + + +class EnableSerialConsoleResult(msrest.serialization.Model): + """Returns whether or not Serial Console is disabled (enabled). + + :param disabled: Whether or not Serial Console is disabled (enabled). + :type disabled: bool + """ + + _attribute_map = { + 'disabled': {'key': 'disabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + disabled: Optional[bool] = None, + **kwargs + ): + super(EnableSerialConsoleResult, self).__init__(**kwargs) + self.disabled = disabled + + +class GetSerialConsoleSubscriptionNotFound(msrest.serialization.Model): + """Error saying that the provided subscription could not be found. + + :param code: Error code. + :type code: str + :param message: Subscription not found message. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + **kwargs + ): + super(GetSerialConsoleSubscriptionNotFound, self).__init__(**kwargs) + self.code = code + self.message = message + + +class Resource(msrest.serialization.Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _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'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _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'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + +class SerialConsoleOperations(msrest.serialization.Model): + """Serial Console operations. + + :param value: A list of Serial Console operations. + :type value: list[~microsoft_serial_console_client.models.SerialConsoleOperationsValueItem] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SerialConsoleOperationsValueItem]'}, + } + + def __init__( + self, + *, + value: Optional[List["SerialConsoleOperationsValueItem"]] = None, + **kwargs + ): + super(SerialConsoleOperations, self).__init__(**kwargs) + self.value = value + + +class SerialConsoleOperationsValueItem(msrest.serialization.Model): + """SerialConsoleOperationsValueItem. + + :param name: + :type name: str + :param is_data_action: + :type is_data_action: str + :param display: + :type display: ~microsoft_serial_console_client.models.SerialConsoleOperationsValueItemDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'SerialConsoleOperationsValueItemDisplay'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + is_data_action: Optional[str] = None, + display: Optional["SerialConsoleOperationsValueItemDisplay"] = None, + **kwargs + ): + super(SerialConsoleOperationsValueItem, self).__init__(**kwargs) + self.name = name + self.is_data_action = is_data_action + self.display = display + + +class SerialConsoleOperationsValueItemDisplay(msrest.serialization.Model): + """SerialConsoleOperationsValueItemDisplay. + + :param provider: + :type provider: str + :param resource: + :type resource: str + :param operation: + :type operation: str + :param description: + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + **kwargs + ): + super(SerialConsoleOperationsValueItemDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class SerialConsoleStatus(msrest.serialization.Model): + """Returns whether or not Serial Console is disabled. + + :param disabled: Whether or not Serial Console is disabled. + :type disabled: bool + """ + + _attribute_map = { + 'disabled': {'key': 'disabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + disabled: Optional[bool] = None, + **kwargs + ): + super(SerialConsoleStatus, self).__init__(**kwargs) + self.disabled = disabled + + +class SerialPort(Resource): + """Represents the serial port of the parent resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param state: Specifies whether the port is enabled for a serial console connection. Possible + values include: "enabled", "disabled". + :type state: str or ~microsoft_serial_console_client.models.SerialPortState + """ + + _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'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + } + + def __init__( + self, + *, + state: Optional[Union[str, "SerialPortState"]] = None, + **kwargs + ): + super(SerialPort, self).__init__(**kwargs) + self.state = state + + +class SerialPortConnectResult(msrest.serialization.Model): + """Returns a connection string to the serial port of the resource. + + :param connection_string: Connection string to the serial port of the resource. + :type connection_string: str + """ + + _attribute_map = { + 'connection_string': {'key': 'connectionString', 'type': 'str'}, + } + + def __init__( + self, + *, + connection_string: Optional[str] = None, + **kwargs + ): + super(SerialPortConnectResult, self).__init__(**kwargs) + self.connection_string = connection_string + + +class SerialPortListResult(msrest.serialization.Model): + """The list serial ports operation response. + + :param value: The list of serial ports. + :type value: list[~microsoft_serial_console_client.models.SerialPort] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SerialPort]'}, + } + + def __init__( + self, + *, + value: Optional[List["SerialPort"]] = None, + **kwargs + ): + super(SerialPortListResult, self).__init__(**kwargs) + self.value = value diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/__init__.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/__init__.py new file mode 100644 index 00000000000..7c0e862d8de --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/__init__.py @@ -0,0 +1,15 @@ +# 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. +# -------------------------------------------------------------------------- + +from ._microsoft_serial_console_client_operations import MicrosoftSerialConsoleClientOperationsMixin +from ._serial_ports_operations import SerialPortsOperations + +__all__ = [ + 'MicrosoftSerialConsoleClientOperationsMixin', + 'SerialPortsOperations', +] diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/_microsoft_serial_console_client_operations.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/_microsoft_serial_console_client_operations.py new file mode 100644 index 00000000000..adde116812a --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/_microsoft_serial_console_client_operations.py @@ -0,0 +1,203 @@ +# 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. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class MicrosoftSerialConsoleClientOperationsMixin(object): + + def get_console_status( + self, + default="default", # type: str + **kwargs # type: Any + ): + # type: (...) -> Union["models.SerialConsoleStatus", "models.GetSerialConsoleSubscriptionNotFound"] + """Get the disabled status for a subscription. + + Gets whether or not Serial Console is disabled for a given subscription. + + :param default: Default parameter. Leave the value as "default". + :type default: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SerialConsoleStatus or GetSerialConsoleSubscriptionNotFound, or the result of cls(response) + :rtype: ~microsoft_serial_console_client.models.SerialConsoleStatus or ~microsoft_serial_console_client.models.GetSerialConsoleSubscriptionNotFound + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[Union["models.SerialConsoleStatus", "models.GetSerialConsoleSubscriptionNotFound"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2018-05-01" + accept = "application/json" + + # Construct URL + url = self.get_console_status.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'default': self._serialize.url("default", default, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('SerialConsoleStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_console_status.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/consoleServices/{default}'} # type: ignore + + def disable_console( + self, + default="default", # type: str + **kwargs # type: Any + ): + # type: (...) -> Union["models.DisableSerialConsoleResult", "models.GetSerialConsoleSubscriptionNotFound"] + """Disable Serial Console for a subscription. + + Disables the Serial Console service for all VMs and VM scale sets in the provided subscription. + + :param default: Default parameter. Leave the value as "default". + :type default: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DisableSerialConsoleResult or GetSerialConsoleSubscriptionNotFound, or the result of cls(response) + :rtype: ~microsoft_serial_console_client.models.DisableSerialConsoleResult or ~microsoft_serial_console_client.models.GetSerialConsoleSubscriptionNotFound + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[Union["models.DisableSerialConsoleResult", "models.GetSerialConsoleSubscriptionNotFound"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2018-05-01" + accept = "application/json" + content_type = "application/json" + + # Construct URL + url = self.disable_console.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'default': self._serialize.url("default", default, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + header_parameters['Content-Type'] = self._serialize.header("content-type", content_type, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DisableSerialConsoleResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + disable_console.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/consoleServices/{default}/disableConsole'} # type: ignore + + def enable_console( + self, + default="default", # type: str + **kwargs # type: Any + ): + # type: (...) -> Union["models.EnableSerialConsoleResult", "models.GetSerialConsoleSubscriptionNotFound"] + """Enable Serial Console for a subscription. + + Enables the Serial Console service for all VMs and VM scale sets in the provided subscription. + + :param default: Default parameter. Leave the value as "default". + :type default: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: EnableSerialConsoleResult or GetSerialConsoleSubscriptionNotFound, or the result of cls(response) + :rtype: ~microsoft_serial_console_client.models.EnableSerialConsoleResult or ~microsoft_serial_console_client.models.GetSerialConsoleSubscriptionNotFound + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[Union["models.EnableSerialConsoleResult", "models.GetSerialConsoleSubscriptionNotFound"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2018-05-01" + accept = "application/json" + content_type = "application/json" + + # Construct URL + url = self.enable_console.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'default': self._serialize.url("default", default, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + header_parameters['Content-Type'] = self._serialize.header("content-type", content_type, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('EnableSerialConsoleResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + enable_console.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.SerialConsole/consoleServices/{default}/enableConsole'} # type: ignore diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/_serial_ports_operations.py b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/_serial_ports_operations.py new file mode 100644 index 00000000000..b21ef7e93b6 --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/operations/_serial_ports_operations.py @@ -0,0 +1,122 @@ +# 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. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class SerialPortsOperations(object): + """SerialPortsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~microsoft_serial_console_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def connect( + self, + resource_group_name, # type: str + resource_provider_namespace, # type: str + parent_resource_type, # type: str + parent_resource, # type: str + serial_port, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.SerialPortConnectResult" + """Connect to serial port of the target resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_provider_namespace: The namespace of the resource provider. + :type resource_provider_namespace: str + :param parent_resource_type: The resource type of the parent resource. For example: + 'virtualMachines' or 'virtualMachineScaleSets'. + :type parent_resource_type: str + :param parent_resource: The resource name, or subordinate path, for the parent of the serial + port. For example: the name of the virtual machine. + :type parent_resource: str + :param serial_port: The name of the serial port to connect to. + :type serial_port: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SerialPortConnectResult, or the result of cls(response) + :rtype: ~microsoft_serial_console_client.models.SerialPortConnectResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.SerialPortConnectResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2018-05-01" + accept = "application/json" + accept_language = "en" + content_type = "application/json" + + # Construct URL + url = self.connect.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'parentResourceType': self._serialize.url("parent_resource_type", parent_resource_type, 'str', skip_quote=True), + 'parentResource': self._serialize.url("parent_resource", parent_resource, 'str'), + 'serialPort': self._serialize.url("serial_port", serial_port, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + header_parameters['Accept-Language'] = self._serialize.header("accept-language", accept_language, 'str') + header_parameters['Content-Type'] = self._serialize.header("content-type", content_type, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('SerialPortConnectResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + connect.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourceType}/{parentResource}/providers/Microsoft.SerialConsole/serialPorts/{serialPort}/connect'} # type: ignore diff --git a/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/py.typed b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/py.typed new file mode 100644 index 00000000000..e5aff4f83af --- /dev/null +++ b/src/serial-console/azext_serialconsole/vendored_sdks/serialconsole/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/src/serial-console/setup.cfg b/src/serial-console/setup.cfg new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/serial-console/setup.py b/src/serial-console/setup.py new file mode 100644 index 00000000000..0ea19bd2be1 --- /dev/null +++ b/src/serial-console/setup.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +from codecs import open +from setuptools import setup, find_packages +try: + from azure_bdist_wheel import cmdclass +except ImportError: + from distutils import log as logger + logger.warn("Wheel is not available, disabling bdist_wheel hook") + +# TODO: Confirm this is the right version number you want and it matches your +# HISTORY.rst entry. +VERSION = '0.1.0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', +] + +# TODO: Add any additional SDK dependencies here +DEPENDENCIES = ["websocket-client~=0.56.0"] + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='serial-console', + version=VERSION, + description='Microsoft Azure Command-Line Tools for Serial Console Extension', + # TODO: Update author and email, if applicable + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + # TODO: change to your extension source code repo if the code will not be put in azure-cli-extensions repo + url='https://github.com/Azure/azure-cli-extensions/tree/master/src/serialconsole', + long_description=README + '\n\n' + HISTORY, + license='MIT', + classifiers=CLASSIFIERS, + packages=find_packages(), + install_requires=DEPENDENCIES, + package_data={'azext_serialconsole': ['azext_metadata.json']}, +) diff --git a/src/service_name.json b/src/service_name.json index 95adf07ef57..2970319cb39 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -429,6 +429,11 @@ "AzureServiceName": "Azure Data Protection", "URL": "" }, + { + "Command": "az serial-console", + "AzureServiceName": "Azure Serial Console", + "URL": "https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-overview" + }, { "Command": "az arcdata", "AzureServiceName": "Azure Data Services",