mirror of
https://github.com/inspec/inspec
synced 2024-12-21 02:23:13 +00:00
a337ca1d23
Signed-off-by: Stuart Paterson <spaterson@chef.io>
15 lines
773 B
Ruby
15 lines
773 B
Ruby
# encoding: utf-8
|
|
# copyright: 2018, The Authors
|
|
|
|
title 'Sample Section'
|
|
|
|
# you add controls here
|
|
control 'azure-virtual-machines-exist-check' do # A unique ID for this control.
|
|
impact 1.0 # The criticality, if this control fails.
|
|
title 'Check resource groups to see if any VMs exist.' # A human-readable title
|
|
azurerm_resource_groups.names.each do |resource_group_name| # Plural resources can be leveraged to loop across many resources
|
|
describe azurerm_virtual_machines(resource_group: resource_group_name) do
|
|
it { should exist } # The test itself.
|
|
end
|
|
end
|
|
end
|