Method: Inspec::Resources::AzureVirtualMachine#has_automatic_agent_update?
- Defined in:
- lib/resources/azure/azure_virtual_machine.rb
#has_automatic_agent_update? ⇒ Boolean
If a windows machine see if automatic updates for the agent are enabled
244 245 246 247 248 249 250 |
# File 'lib/resources/azure/azure_virtual_machine.rb', line 244 def has_automatic_agent_update? if defined?(properties.osProfile.windowsConfiguration) properties.osProfile.windowsConfiguration.enableAutomaticUpdates else false end end |