Method: Inspec::Resources::AzureVirtualMachine#has_custom_data?

Defined in:
lib/resources/azure/azure_virtual_machine.rb

#has_custom_data?Boolean

Has the machine been given Custom Data at creation

This allows the use of

it { should have_custom_data }

within the Inspec Profile

Returns:

  • (Boolean)

    boolean



152
153
154
# File 'lib/resources/azure/azure_virtual_machine.rb', line 152

def has_custom_data?
  custom_data?
end