Class: Azure::Compute::Mgmt::V2020_06_01::Models::WindowsConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb

Overview

Specifies Windows operating system settings on the virtual machine.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#additional_unattend_contentArray<AdditionalUnattendContent>

encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.

Returns:



38
39
40
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 38

def additional_unattend_content
  @additional_unattend_content
end

#enable_automatic_updatesBoolean

the Windows virtual machine. Default value is true.
For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.

Returns:

  • (Boolean)

    Indicates whether Automatic Updates is enabled for



26
27
28
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 26

def enable_automatic_updates
  @enable_automatic_updates
end

#patch_settingsPatchSettings

(KBs).

Returns:

  • (PatchSettings)

    Specifies settings related to in-guest patching



42
43
44
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 42

def patch_settings
  @patch_settings
end

#provision_vmagentBoolean

provisioned on the virtual machine.
When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.

Returns:

  • (Boolean)

    Indicates whether virtual machine agent should be



20
21
22
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 20

def provision_vmagent
  @provision_vmagent
end

#time_zoneString

“Pacific Standard Time”.
Possible values can be [TimeZoneInfo.Id](docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.getsystemtimezones).

Returns:

  • (String)

    Specifies the time zone of the virtual machine. e.g.



33
34
35
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 33

def time_zone
  @time_zone
end

#win_rmWinRMConfiguration

listeners. This enables remote Windows PowerShell.

Returns:



46
47
48
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 46

def win_rm
  @win_rm
end

Class Method Details

.mapperObject

Mapper for WindowsConfiguration class as Ruby Hash. This will be used for serialization/deserialization.



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/windows_configuration.rb', line 53

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'WindowsConfiguration',
    type: {
      name: 'Composite',
      class_name: 'WindowsConfiguration',
      model_properties: {
        provision_vmagent: {
          client_side_validation: true,
          required: false,
          serialized_name: 'provisionVMAgent',
          type: {
            name: 'Boolean'
          }
        },
        enable_automatic_updates: {
          client_side_validation: true,
          required: false,
          serialized_name: 'enableAutomaticUpdates',
          type: {
            name: 'Boolean'
          }
        },
        time_zone: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeZone',
          type: {
            name: 'String'
          }
        },
        additional_unattend_content: {
          client_side_validation: true,
          required: false,
          serialized_name: 'additionalUnattendContent',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AdditionalUnattendContentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'AdditionalUnattendContent'
                }
            }
          }
        },
        patch_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'patchSettings',
          type: {
            name: 'Composite',
            class_name: 'PatchSettings'
          }
        },
        win_rm: {
          client_side_validation: true,
          required: false,
          serialized_name: 'winRM',
          type: {
            name: 'Composite',
            class_name: 'WinRMConfiguration'
          }
        }
      }
    }
  }
end