diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..05ca725929f6 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view.py
@@ -15,12 +15,20 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
@@ -28,5 +36,5 @@ class BootDiagnosticsInstanceView(Model):
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..97e4cdba67c4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,26 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile.py
index d801c39f51d5..d8dbd83039f3 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2015_06_15.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile_py3.py
index c2fee8c4a669..474722c3fb39 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2015_06_15.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view.py
index 088d69be6a30..aea1d35f16ed 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view.py
@@ -33,8 +33,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2015_06_15.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view_py3.py
index 0583e610ceeb..20ca416f12f2 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_instance_view_py3.py
@@ -33,8 +33,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2015_06_15.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view.py
index f94d635b5955..91782b6a5a84 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view.py
@@ -31,8 +31,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2015_06_15.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view_py3.py
index f7c9071903cf..500dda482d10 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -31,8 +31,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
list[~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2015_06_15.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..05ca725929f6 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view.py
@@ -15,12 +15,20 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
@@ -28,5 +36,5 @@ class BootDiagnosticsInstanceView(Model):
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..97e4cdba67c4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,26 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile.py
index 5a14b0394223..a235ce0b5984 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_03_30.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile_py3.py
index 19ecbb17acbd..ccc65927c7b8 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_03_30.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view.py
index 966d3f09f313..0816555b120e 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view.py
@@ -33,8 +33,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view_py3.py
index ab733f0a765d..57a65fcad4d4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_instance_view_py3.py
@@ -33,8 +33,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view.py
index a99cbc4d022d..7fef2f141ea3 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view.py
@@ -31,8 +31,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py
index 9cc3a0c3b2be..0b80ed4fef79 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -31,8 +31,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
list[~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..05ca725929f6 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view.py
@@ -15,12 +15,20 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
@@ -28,5 +36,5 @@ class BootDiagnosticsInstanceView(Model):
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..97e4cdba67c4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,26 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile.py
index 7e52b45ee5c8..1f314d2ac244 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_04_30_preview.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile_py3.py
index f30752cea400..f7e18305b608 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_04_30_preview.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view.py
index c1e4c785527b..4666a4066364 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view.py
@@ -34,8 +34,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_04_30_preview.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view_py3.py
index 323a0e109a7a..6bf2e10a13a1 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_instance_view_py3.py
@@ -34,8 +34,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_04_30_preview.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view.py
index 641b2b535d0c..29157262456f 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view.py
@@ -32,8 +32,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_04_30_preview.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view_py3.py
index d16428111fc0..e7cd124f4320 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -32,8 +32,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
list[~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2016_04_30_preview.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..05ca725929f6 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view.py
@@ -15,12 +15,20 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
@@ -28,5 +36,5 @@ class BootDiagnosticsInstanceView(Model):
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..97e4cdba67c4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,26 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile.py
index 36c128097209..c4b515bfd411 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_03_30.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile_py3.py
index 30ba1b1a6c70..a3c64f8fd196 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_03_30.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view.py
index e6c6b90ec611..ceb11db65060 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view.py
@@ -37,8 +37,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view_py3.py
index 2466342d3503..20e30243b307 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_instance_view_py3.py
@@ -37,8 +37,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view.py
index 489f4fe28548..39df77241056 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view.py
@@ -37,8 +37,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2017_03_30.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py
index 25821e5bfe74..047be43143a2 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -37,8 +37,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2017_03_30.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_03_30.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/virtual_machines_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/virtual_machines_operations.py
index 0e91caa6f3e5..e34fd57b062c 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/virtual_machines_operations.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/virtual_machines_operations.py
@@ -108,6 +108,75 @@ def get_extensions(
return deserialized
get_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'}
+ def list_by_location(
+ self, location, custom_headers=None, raw=False, **operation_config):
+ """Gets all the virtual machines under the specified subscription for the
+ specified location.
+
+ :param location: The location for which virtual machines under the
+ subscription are queried.
+ :type location: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: An iterator like instance of VirtualMachine
+ :rtype:
+ ~azure.mgmt.compute.v2017_03_30.models.VirtualMachinePaged[~azure.mgmt.compute.v2017_03_30.models.VirtualMachine]
+ :raises: :class:`CloudError`
+ """
+ def internal_paging(next_link=None, raw=False):
+
+ if not next_link:
+ # Construct URL
+ url = self.list_by_location.metadata['url']
+ path_format_arguments = {
+ 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'),
+ '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 = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ else:
+ url = next_link
+ query_parameters = {}
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ exp = CloudError(response)
+ exp.request_id = response.headers.get('x-ms-request-id')
+ raise exp
+
+ return response
+
+ # Deserialize response
+ deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies)
+
+ if raw:
+ header_dict = {}
+ client_raw_response = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict)
+ return client_raw_response
+
+ return deserialized
+ list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'}
+
def _capture_initial(
self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config):
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..05ca725929f6 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view.py
@@ -15,12 +15,20 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
@@ -28,5 +36,5 @@ class BootDiagnosticsInstanceView(Model):
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..97e4cdba67c4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,26 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile.py
index 4734f23421f5..1c8a3b82e686 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_12_01.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile_py3.py
index f14cb5a908be..6446c617cdb5 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_12_01.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py
index 39b258f7735c..825a3243f7b8 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view.py
@@ -44,8 +44,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_12_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view_py3.py
index 255700c3cccf..e26e816f6976 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_instance_view_py3.py
@@ -44,8 +44,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_12_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view.py
index b5b91ca14be9..280c9c575484 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view.py
@@ -41,8 +41,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_12_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
index 61fbe15427fa..e4eaf09a4672 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -41,8 +41,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2017_12_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py
index fafb141bd641..ae6d1fdd2e94 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/virtual_machines_operations.py
@@ -108,6 +108,75 @@ def get_extensions(
return deserialized
get_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'}
+ def list_by_location(
+ self, location, custom_headers=None, raw=False, **operation_config):
+ """Gets all the virtual machines under the specified subscription for the
+ specified location.
+
+ :param location: The location for which virtual machines under the
+ subscription are queried.
+ :type location: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: An iterator like instance of VirtualMachine
+ :rtype:
+ ~azure.mgmt.compute.v2017_12_01.models.VirtualMachinePaged[~azure.mgmt.compute.v2017_12_01.models.VirtualMachine]
+ :raises: :class:`CloudError`
+ """
+ def internal_paging(next_link=None, raw=False):
+
+ if not next_link:
+ # Construct URL
+ url = self.list_by_location.metadata['url']
+ path_format_arguments = {
+ 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'),
+ '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 = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ else:
+ url = next_link
+ query_parameters = {}
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ exp = CloudError(response)
+ exp.request_id = response.headers.get('x-ms-request-id')
+ raise exp
+
+ return response
+
+ # Deserialize response
+ deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies)
+
+ if raw:
+ header_dict = {}
+ client_raw_response = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict)
+ return client_raw_response
+
+ return deserialized
+ list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'}
+
def _capture_initial(
self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config):
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py
index 63b1db3da61a..92f3f44f9013 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/compute_management_client.py
@@ -19,9 +19,9 @@
from .operations.virtual_machine_extensions_operations import VirtualMachineExtensionsOperations
from .operations.virtual_machine_images_operations import VirtualMachineImagesOperations
from .operations.usage_operations import UsageOperations
+from .operations.virtual_machines_operations import VirtualMachinesOperations
from .operations.virtual_machine_sizes_operations import VirtualMachineSizesOperations
from .operations.images_operations import ImagesOperations
-from .operations.virtual_machines_operations import VirtualMachinesOperations
from .operations.virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations
from .operations.virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations
from .operations.virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations
@@ -85,12 +85,12 @@ class ComputeManagementClient(SDKClient):
:vartype virtual_machine_images: azure.mgmt.compute.v2018_04_01.operations.VirtualMachineImagesOperations
:ivar usage: Usage operations
:vartype usage: azure.mgmt.compute.v2018_04_01.operations.UsageOperations
+ :ivar virtual_machines: VirtualMachines operations
+ :vartype virtual_machines: azure.mgmt.compute.v2018_04_01.operations.VirtualMachinesOperations
:ivar virtual_machine_sizes: VirtualMachineSizes operations
:vartype virtual_machine_sizes: azure.mgmt.compute.v2018_04_01.operations.VirtualMachineSizesOperations
:ivar images: Images operations
:vartype images: azure.mgmt.compute.v2018_04_01.operations.ImagesOperations
- :ivar virtual_machines: VirtualMachines operations
- :vartype virtual_machines: azure.mgmt.compute.v2018_04_01.operations.VirtualMachinesOperations
:ivar virtual_machine_scale_sets: VirtualMachineScaleSets operations
:vartype virtual_machine_scale_sets: azure.mgmt.compute.v2018_04_01.operations.VirtualMachineScaleSetsOperations
:ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensions operations
@@ -141,12 +141,12 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.usage = UsageOperations(
self._client, self.config, self._serialize, self._deserialize)
+ self.virtual_machines = VirtualMachinesOperations(
+ self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_sizes = VirtualMachineSizesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.images = ImagesOperations(
self._client, self.config, self._serialize, self._deserialize)
- self.virtual_machines = VirtualMachinesOperations(
- self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations(
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py
index c88cde3dde9f..abdeb024d053 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py
@@ -295,8 +295,8 @@
from .availability_set_paged import AvailabilitySetPaged
from .virtual_machine_size_paged import VirtualMachineSizePaged
from .usage_paged import UsagePaged
-from .image_paged import ImagePaged
from .virtual_machine_paged import VirtualMachinePaged
+from .image_paged import ImagePaged
from .virtual_machine_scale_set_paged import VirtualMachineScaleSetPaged
from .virtual_machine_scale_set_sku_paged import VirtualMachineScaleSetSkuPaged
from .upgrade_operation_historical_status_info_paged import UpgradeOperationHistoricalStatusInfoPaged
@@ -480,8 +480,8 @@
'AvailabilitySetPaged',
'VirtualMachineSizePaged',
'UsagePaged',
- 'ImagePaged',
'VirtualMachinePaged',
+ 'ImagePaged',
'VirtualMachineScaleSetPaged',
'VirtualMachineScaleSetSkuPaged',
'UpgradeOperationHistoricalStatusInfoPaged',
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..3f17908819ca 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view.py
@@ -15,18 +15,33 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
+ :ivar status: The boot diagnostics status information for the VM.
+ NOTE: It will be set only if there are errors encountered in enabling boot
+ diagnostics.
+ :vartype status: ~azure.mgmt.compute.v2018_04_01.models.InstanceViewStatus
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ 'status': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'InstanceViewStatus'},
}
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
+ self.status = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..835256c75b26 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,33 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
+ :ivar status: The boot diagnostics status information for the VM.
+ NOTE: It will be set only if there are errors encountered in enabling boot
+ diagnostics.
+ :vartype status: ~azure.mgmt.compute.v2018_04_01.models.InstanceViewStatus
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ 'status': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'InstanceViewStatus'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
+ self.status = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile.py
index c809544d655e..f8751002a675 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_04_01.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile_py3.py
index 0193402fe61f..7fad1fcdb26e 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_04_01.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view.py
index 8ba2eaf2f52a..52963d0a1224 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view.py
@@ -44,8 +44,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_04_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view_py3.py
index 8c9fcff69f26..4ba78b7e4b23 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_instance_view_py3.py
@@ -44,8 +44,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_04_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view.py
index 46c835c4dfd5..1a5045707968 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view.py
@@ -41,8 +41,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2018_04_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_04_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
index 6854c21d4706..2c2e2701a0e7 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -41,8 +41,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2018_04_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_04_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/__init__.py
index 48abff4beece..e20e3c655aae 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/__init__.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/__init__.py
@@ -15,9 +15,9 @@
from .virtual_machine_extensions_operations import VirtualMachineExtensionsOperations
from .virtual_machine_images_operations import VirtualMachineImagesOperations
from .usage_operations import UsageOperations
+from .virtual_machines_operations import VirtualMachinesOperations
from .virtual_machine_sizes_operations import VirtualMachineSizesOperations
from .images_operations import ImagesOperations
-from .virtual_machines_operations import VirtualMachinesOperations
from .virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations
from .virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations
from .virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations
@@ -34,9 +34,9 @@
'VirtualMachineExtensionsOperations',
'VirtualMachineImagesOperations',
'UsageOperations',
+ 'VirtualMachinesOperations',
'VirtualMachineSizesOperations',
'ImagesOperations',
- 'VirtualMachinesOperations',
'VirtualMachineScaleSetsOperations',
'VirtualMachineScaleSetExtensionsOperations',
'VirtualMachineScaleSetRollingUpgradesOperations',
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/virtual_machines_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/virtual_machines_operations.py
index eacf80e3186d..2b9af6befaba 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/virtual_machines_operations.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/virtual_machines_operations.py
@@ -39,6 +39,75 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config
+ def list_by_location(
+ self, location, custom_headers=None, raw=False, **operation_config):
+ """Gets all the virtual machines under the specified subscription for the
+ specified location.
+
+ :param location: The location for which virtual machines under the
+ subscription are queried.
+ :type location: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: An iterator like instance of VirtualMachine
+ :rtype:
+ ~azure.mgmt.compute.v2018_04_01.models.VirtualMachinePaged[~azure.mgmt.compute.v2018_04_01.models.VirtualMachine]
+ :raises: :class:`CloudError`
+ """
+ def internal_paging(next_link=None, raw=False):
+
+ if not next_link:
+ # Construct URL
+ url = self.list_by_location.metadata['url']
+ path_format_arguments = {
+ 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'),
+ '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 = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ else:
+ url = next_link
+ query_parameters = {}
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ exp = CloudError(response)
+ exp.request_id = response.headers.get('x-ms-request-id')
+ raise exp
+
+ return response
+
+ # Deserialize response
+ deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies)
+
+ if raw:
+ header_dict = {}
+ client_raw_response = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict)
+ return client_raw_response
+
+ return deserialized
+ list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'}
+
def _capture_initial(
self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config):
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py
index b46dc8415314..5d5681a27a79 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py
@@ -19,9 +19,9 @@
from .operations.virtual_machine_extensions_operations import VirtualMachineExtensionsOperations
from .operations.virtual_machine_images_operations import VirtualMachineImagesOperations
from .operations.usage_operations import UsageOperations
+from .operations.virtual_machines_operations import VirtualMachinesOperations
from .operations.virtual_machine_sizes_operations import VirtualMachineSizesOperations
from .operations.images_operations import ImagesOperations
-from .operations.virtual_machines_operations import VirtualMachinesOperations
from .operations.virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations
from .operations.virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations
from .operations.virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations
@@ -88,12 +88,12 @@ class ComputeManagementClient(SDKClient):
:vartype virtual_machine_images: azure.mgmt.compute.v2018_06_01.operations.VirtualMachineImagesOperations
:ivar usage: Usage operations
:vartype usage: azure.mgmt.compute.v2018_06_01.operations.UsageOperations
+ :ivar virtual_machines: VirtualMachines operations
+ :vartype virtual_machines: azure.mgmt.compute.v2018_06_01.operations.VirtualMachinesOperations
:ivar virtual_machine_sizes: VirtualMachineSizes operations
:vartype virtual_machine_sizes: azure.mgmt.compute.v2018_06_01.operations.VirtualMachineSizesOperations
:ivar images: Images operations
:vartype images: azure.mgmt.compute.v2018_06_01.operations.ImagesOperations
- :ivar virtual_machines: VirtualMachines operations
- :vartype virtual_machines: azure.mgmt.compute.v2018_06_01.operations.VirtualMachinesOperations
:ivar virtual_machine_scale_sets: VirtualMachineScaleSets operations
:vartype virtual_machine_scale_sets: azure.mgmt.compute.v2018_06_01.operations.VirtualMachineScaleSetsOperations
:ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensions operations
@@ -150,12 +150,12 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.usage = UsageOperations(
self._client, self.config, self._serialize, self._deserialize)
+ self.virtual_machines = VirtualMachinesOperations(
+ self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_sizes = VirtualMachineSizesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.images = ImagesOperations(
self._client, self.config, self._serialize, self._deserialize)
- self.virtual_machines = VirtualMachinesOperations(
- self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations(
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py
index 4b2f4169e001..18c28168320c 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/__init__.py
@@ -38,6 +38,7 @@
from .key_vault_key_reference_py3 import KeyVaultKeyReference
from .disk_encryption_settings_py3 import DiskEncryptionSettings
from .virtual_hard_disk_py3 import VirtualHardDisk
+ from .diff_disk_settings_py3 import DiffDiskSettings
from .managed_disk_parameters_py3 import ManagedDiskParameters
from .os_disk_py3 import OSDisk
from .data_disk_py3 import DataDisk
@@ -202,6 +203,7 @@
from .key_vault_key_reference import KeyVaultKeyReference
from .disk_encryption_settings import DiskEncryptionSettings
from .virtual_hard_disk import VirtualHardDisk
+ from .diff_disk_settings import DiffDiskSettings
from .managed_disk_parameters import ManagedDiskParameters
from .os_disk import OSDisk
from .data_disk import DataDisk
@@ -341,8 +343,8 @@
from .availability_set_paged import AvailabilitySetPaged
from .virtual_machine_size_paged import VirtualMachineSizePaged
from .usage_paged import UsagePaged
-from .image_paged import ImagePaged
from .virtual_machine_paged import VirtualMachinePaged
+from .image_paged import ImagePaged
from .virtual_machine_scale_set_paged import VirtualMachineScaleSetPaged
from .virtual_machine_scale_set_sku_paged import VirtualMachineScaleSetSkuPaged
from .upgrade_operation_historical_status_info_paged import UpgradeOperationHistoricalStatusInfoPaged
@@ -362,6 +364,7 @@
CachingTypes,
DiskCreateOptionTypes,
StorageAccountTypes,
+ DiffDiskOptions,
PassNames,
ComponentNames,
SettingNames,
@@ -419,6 +422,7 @@
'KeyVaultKeyReference',
'DiskEncryptionSettings',
'VirtualHardDisk',
+ 'DiffDiskSettings',
'ManagedDiskParameters',
'OSDisk',
'DataDisk',
@@ -558,8 +562,8 @@
'AvailabilitySetPaged',
'VirtualMachineSizePaged',
'UsagePaged',
- 'ImagePaged',
'VirtualMachinePaged',
+ 'ImagePaged',
'VirtualMachineScaleSetPaged',
'VirtualMachineScaleSetSkuPaged',
'UpgradeOperationHistoricalStatusInfoPaged',
@@ -578,6 +582,7 @@
'CachingTypes',
'DiskCreateOptionTypes',
'StorageAccountTypes',
+ 'DiffDiskOptions',
'PassNames',
'ComponentNames',
'SettingNames',
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics.py
index ca3dbdd4f23c..4a1f77c4d7d0 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view.py
index 6fe1f84a3910..4b01ce822908 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view.py
@@ -15,18 +15,33 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
+ :ivar status: The boot diagnostics status information for the VM.
+ NOTE: It will be set only if there are errors encountered in enabling boot
+ diagnostics.
+ :vartype status: ~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ 'status': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'InstanceViewStatus'},
}
def __init__(self, **kwargs):
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = kwargs.get('console_screenshot_blob_uri', None)
- self.serial_console_log_blob_uri = kwargs.get('serial_console_log_blob_uri', None)
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
+ self.status = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view_py3.py
index d85b51981ab9..6ec8694acf3e 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_instance_view_py3.py
@@ -15,18 +15,33 @@
class BootDiagnosticsInstanceView(Model):
"""The instance view of a virtual machine boot diagnostics.
- :param console_screenshot_blob_uri: The console screenshot blob URI.
- :type console_screenshot_blob_uri: str
- :param serial_console_log_blob_uri: The Linux serial console log blob Uri.
- :type serial_console_log_blob_uri: str
+ Variables are only populated by the server, and will be ignored when
+ sending a request.
+
+ :ivar console_screenshot_blob_uri: The console screenshot blob URI.
+ :vartype console_screenshot_blob_uri: str
+ :ivar serial_console_log_blob_uri: The Linux serial console log blob Uri.
+ :vartype serial_console_log_blob_uri: str
+ :ivar status: The boot diagnostics status information for the VM.
+ NOTE: It will be set only if there are errors encountered in enabling boot
+ diagnostics.
+ :vartype status: ~azure.mgmt.compute.v2018_06_01.models.InstanceViewStatus
"""
+ _validation = {
+ 'console_screenshot_blob_uri': {'readonly': True},
+ 'serial_console_log_blob_uri': {'readonly': True},
+ 'status': {'readonly': True},
+ }
+
_attribute_map = {
'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'},
'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'},
+ 'status': {'key': 'status', 'type': 'InstanceViewStatus'},
}
- def __init__(self, *, console_screenshot_blob_uri: str=None, serial_console_log_blob_uri: str=None, **kwargs) -> None:
+ def __init__(self, **kwargs) -> None:
super(BootDiagnosticsInstanceView, self).__init__(**kwargs)
- self.console_screenshot_blob_uri = console_screenshot_blob_uri
- self.serial_console_log_blob_uri = serial_console_log_blob_uri
+ self.console_screenshot_blob_uri = None
+ self.serial_console_log_blob_uri = None
+ self.status = None
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_py3.py
index b0a756ea4fa0..b64ae5b4adde 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/boot_diagnostics_py3.py
@@ -14,9 +14,8 @@
class BootDiagnostics(Model):
"""Boot Diagnostics is a debugging feature which allows you to view Console
- Output and Screenshot to diagnose VM status.
For Linux Virtual
- Machines, you can easily view the output of your console log.
For
- both Windows and Linux virtual machines, Azure also enables you to see a
+ Output and Screenshot to diagnose VM status.
You can easily view
+ the output of your console log.
Azure also enables you to see a
screenshot of the VM from the hypervisor.
:param enabled: Whether boot diagnostics should be enabled on the Virtual
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py
index e01c884bfff3..9c58eaa0f157 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/compute_management_client_enums.py
@@ -223,6 +223,11 @@ class StorageAccountTypes(str, Enum):
ultra_ssd_lrs = "UltraSSD_LRS"
+class DiffDiskOptions(str, Enum):
+
+ local = "Local"
+
+
class PassNames(str, Enum):
oobe_system = "OobeSystem"
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile.py
index 79cfd1e65745..f72721038694 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_06_01.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile_py3.py
index 472d61da6fba..da0a1e350105 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diagnostics_profile_py3.py
@@ -18,8 +18,7 @@ class DiagnosticsProfile(Model):
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_06_01.models.BootDiagnostics
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diff_disk_settings.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diff_disk_settings.py
new file mode 100644
index 000000000000..028ade1b9cb8
--- /dev/null
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diff_disk_settings.py
@@ -0,0 +1,32 @@
+# 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 msrest.serialization import Model
+
+
+class DiffDiskSettings(Model):
+ """Describes the parameters of differencing disk settings that can be be
+ specified for operating system disk.
NOTE: The differencing disk
+ settings can only be specified for managed disk.
+
+ :param option: Specifies the differencing disk settings for operating
+ system disk. Possible values include: 'Local'
+ :type option: str or
+ ~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions
+ """
+
+ _attribute_map = {
+ 'option': {'key': 'option', 'type': 'str'},
+ }
+
+ def __init__(self, **kwargs):
+ super(DiffDiskSettings, self).__init__(**kwargs)
+ self.option = kwargs.get('option', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diff_disk_settings_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diff_disk_settings_py3.py
new file mode 100644
index 000000000000..25c1bfa697fa
--- /dev/null
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/diff_disk_settings_py3.py
@@ -0,0 +1,32 @@
+# 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 msrest.serialization import Model
+
+
+class DiffDiskSettings(Model):
+ """Describes the parameters of differencing disk settings that can be be
+ specified for operating system disk.
NOTE: The differencing disk
+ settings can only be specified for managed disk.
+
+ :param option: Specifies the differencing disk settings for operating
+ system disk. Possible values include: 'Local'
+ :type option: str or
+ ~azure.mgmt.compute.v2018_06_01.models.DiffDiskOptions
+ """
+
+ _attribute_map = {
+ 'option': {'key': 'option', 'type': 'str'},
+ }
+
+ def __init__(self, *, option=None, **kwargs) -> None:
+ super(DiffDiskSettings, self).__init__(**kwargs)
+ self.option = option
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk.py
index b4fed8c2c1cd..4914868b54df 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk.py
@@ -47,6 +47,10 @@ class OSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
+ :param diff_disk_settings: Specifies the differencing Disk Settings for
+ the operating system disk used by the virtual machine.
+ :type diff_disk_settings:
+ ~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param create_option: Required. Specifies how the virtual machine should
be created.
Possible values are:
**Attach** \\u2013 This
value is used when you are using a specialized disk to create the virtual
@@ -78,6 +82,7 @@ class OSDisk(Model):
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
+ 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'},
'create_option': {'key': 'createOption', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
@@ -92,6 +97,7 @@ def __init__(self, **kwargs):
self.image = kwargs.get('image', None)
self.caching = kwargs.get('caching', None)
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
+ self.diff_disk_settings = kwargs.get('diff_disk_settings', None)
self.create_option = kwargs.get('create_option', None)
self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.managed_disk = kwargs.get('managed_disk', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk_py3.py
index 7dc498d4d7d0..b3514b43e170 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/os_disk_py3.py
@@ -47,6 +47,10 @@ class OSDisk(Model):
:param write_accelerator_enabled: Specifies whether writeAccelerator
should be enabled or disabled on the disk.
:type write_accelerator_enabled: bool
+ :param diff_disk_settings: Specifies the differencing Disk Settings for
+ the operating system disk used by the virtual machine.
+ :type diff_disk_settings:
+ ~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param create_option: Required. Specifies how the virtual machine should
be created.
Possible values are:
**Attach** \\u2013 This
value is used when you are using a specialized disk to create the virtual
@@ -78,12 +82,13 @@ class OSDisk(Model):
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
+ 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'},
'create_option': {'key': 'createOption', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'},
}
- def __init__(self, *, create_option, os_type=None, encryption_settings=None, name: str=None, vhd=None, image=None, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, managed_disk=None, **kwargs) -> None:
+ def __init__(self, *, create_option, os_type=None, encryption_settings=None, name: str=None, vhd=None, image=None, caching=None, write_accelerator_enabled: bool=None, diff_disk_settings=None, disk_size_gb: int=None, managed_disk=None, **kwargs) -> None:
super(OSDisk, self).__init__(**kwargs)
self.os_type = os_type
self.encryption_settings = encryption_settings
@@ -92,6 +97,7 @@ def __init__(self, *, create_option, os_type=None, encryption_settings=None, nam
self.image = image
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
+ self.diff_disk_settings = diff_disk_settings
self.create_option = create_option
self.disk_size_gb = disk_size_gb
self.managed_disk = managed_disk
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view.py
index 906912b63196..c64305728eba 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view.py
@@ -44,8 +44,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_06_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view_py3.py
index 61074b565129..f1aea49e5739 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_instance_view_py3.py
@@ -44,8 +44,7 @@ class VirtualMachineInstanceView(Model):
list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtensionInstanceView]
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_06_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py
index 7a1676cfe1e3..ac8de50ead86 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk.py
@@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
+ :param diff_disk_settings: Specifies the differencing Disk Settings for
+ the operating system disk used by the virtual machine scale set.
+ :type diff_disk_settings:
+ ~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param disk_size_gb: Specifies the size of the operating system disk in
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image.
This value cannot be larger than 1023 GB
@@ -66,6 +70,7 @@ class VirtualMachineScaleSetOSDisk(Model):
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'str'},
+ 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
@@ -79,6 +84,7 @@ def __init__(self, **kwargs):
self.caching = kwargs.get('caching', None)
self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None)
self.create_option = kwargs.get('create_option', None)
+ self.diff_disk_settings = kwargs.get('diff_disk_settings', None)
self.disk_size_gb = kwargs.get('disk_size_gb', None)
self.os_type = kwargs.get('os_type', None)
self.image = kwargs.get('image', None)
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py
index 5b44c8e2e8f9..eafdd640f3a2 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_os_disk_py3.py
@@ -36,6 +36,10 @@ class VirtualMachineScaleSetOSDisk(Model):
Possible values include: 'FromImage', 'Empty', 'Attach'
:type create_option: str or
~azure.mgmt.compute.v2018_06_01.models.DiskCreateOptionTypes
+ :param diff_disk_settings: Specifies the differencing Disk Settings for
+ the operating system disk used by the virtual machine scale set.
+ :type diff_disk_settings:
+ ~azure.mgmt.compute.v2018_06_01.models.DiffDiskSettings
:param disk_size_gb: Specifies the size of the operating system disk in
gigabytes. This element can be used to overwrite the size of the disk in a
virtual machine image.
This value cannot be larger than 1023 GB
@@ -66,6 +70,7 @@ class VirtualMachineScaleSetOSDisk(Model):
'caching': {'key': 'caching', 'type': 'CachingTypes'},
'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'},
'create_option': {'key': 'createOption', 'type': 'str'},
+ 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
'os_type': {'key': 'osType', 'type': 'OperatingSystemTypes'},
'image': {'key': 'image', 'type': 'VirtualHardDisk'},
@@ -73,12 +78,13 @@ class VirtualMachineScaleSetOSDisk(Model):
'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'},
}
- def __init__(self, *, create_option, name: str=None, caching=None, write_accelerator_enabled: bool=None, disk_size_gb: int=None, os_type=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
+ def __init__(self, *, create_option, name: str=None, caching=None, write_accelerator_enabled: bool=None, diff_disk_settings=None, disk_size_gb: int=None, os_type=None, image=None, vhd_containers=None, managed_disk=None, **kwargs) -> None:
super(VirtualMachineScaleSetOSDisk, self).__init__(**kwargs)
self.name = name
self.caching = caching
self.write_accelerator_enabled = write_accelerator_enabled
self.create_option = create_option
+ self.diff_disk_settings = diff_disk_settings
self.disk_size_gb = disk_size_gb
self.os_type = os_type
self.image = image
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view.py
index 35e58a234b7f..8ac2d0633dc8 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view.py
@@ -41,8 +41,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2018_06_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_06_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view_py3.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
index 586211ea4af8..5266cd011872 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/virtual_machine_scale_set_vm_instance_view_py3.py
@@ -41,8 +41,7 @@ class VirtualMachineScaleSetVMInstanceView(Model):
~azure.mgmt.compute.v2018_06_01.models.VirtualMachineHealthStatus
:param boot_diagnostics: Boot Diagnostics is a debugging feature which
allows you to view Console Output and Screenshot to diagnose VM status.
-
For Linux Virtual Machines, you can easily view the output of
- your console log.
For both Windows and Linux virtual machines,
+
You can easily view the output of your console log.
Azure also enables you to see a screenshot of the VM from the hypervisor.
:type boot_diagnostics:
~azure.mgmt.compute.v2018_06_01.models.BootDiagnosticsInstanceView
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/__init__.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/__init__.py
index 662b518ecea8..73c6833c6f71 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/__init__.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/__init__.py
@@ -15,9 +15,9 @@
from .virtual_machine_extensions_operations import VirtualMachineExtensionsOperations
from .virtual_machine_images_operations import VirtualMachineImagesOperations
from .usage_operations import UsageOperations
+from .virtual_machines_operations import VirtualMachinesOperations
from .virtual_machine_sizes_operations import VirtualMachineSizesOperations
from .images_operations import ImagesOperations
-from .virtual_machines_operations import VirtualMachinesOperations
from .virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations
from .virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations
from .virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations
@@ -37,9 +37,9 @@
'VirtualMachineExtensionsOperations',
'VirtualMachineImagesOperations',
'UsageOperations',
+ 'VirtualMachinesOperations',
'VirtualMachineSizesOperations',
'ImagesOperations',
- 'VirtualMachinesOperations',
'VirtualMachineScaleSetsOperations',
'VirtualMachineScaleSetExtensionsOperations',
'VirtualMachineScaleSetRollingUpgradesOperations',
diff --git a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machines_operations.py b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machines_operations.py
index 6550e47a4fe0..fe68c6d10da4 100644
--- a/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machines_operations.py
+++ b/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machines_operations.py
@@ -39,6 +39,75 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config
+ def list_by_location(
+ self, location, custom_headers=None, raw=False, **operation_config):
+ """Gets all the virtual machines under the specified subscription for the
+ specified location.
+
+ :param location: The location for which virtual machines under the
+ subscription are queried.
+ :type location: str
+ :param dict custom_headers: headers that will be added to the request
+ :param bool raw: returns the direct response alongside the
+ deserialized response
+ :param operation_config: :ref:`Operation configuration
+ overrides`.
+ :return: An iterator like instance of VirtualMachine
+ :rtype:
+ ~azure.mgmt.compute.v2018_06_01.models.VirtualMachinePaged[~azure.mgmt.compute.v2018_06_01.models.VirtualMachine]
+ :raises: :class:`CloudError`
+ """
+ def internal_paging(next_link=None, raw=False):
+
+ if not next_link:
+ # Construct URL
+ url = self.list_by_location.metadata['url']
+ path_format_arguments = {
+ 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'),
+ '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 = {}
+ query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
+
+ else:
+ url = next_link
+ query_parameters = {}
+
+ # Construct headers
+ header_parameters = {}
+ header_parameters['Accept'] = 'application/json'
+ if self.config.generate_client_request_id:
+ header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
+ if custom_headers:
+ header_parameters.update(custom_headers)
+ if self.config.accept_language is not None:
+ header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
+
+ # Construct and send request
+ request = self._client.get(url, query_parameters, header_parameters)
+ response = self._client.send(request, stream=False, **operation_config)
+
+ if response.status_code not in [200]:
+ exp = CloudError(response)
+ exp.request_id = response.headers.get('x-ms-request-id')
+ raise exp
+
+ return response
+
+ # Deserialize response
+ deserialized = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies)
+
+ if raw:
+ header_dict = {}
+ client_raw_response = models.VirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict)
+ return client_raw_response
+
+ return deserialized
+ list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'}
+
def _capture_initial(
self, resource_group_name, vm_name, parameters, custom_headers=None, raw=False, **operation_config):