inspec/libraries/common/resource_groups.rb
Russell Seymour 12c832604e Initial checkin of Inspec Azure resource pack
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-01-20 16:51:53 +00:00

13 lines
300 B
Ruby

require 'azure_mgmt_resources'
class ResourceGroups
def initialize(azure)
@client = Azure::ARM::Resources::ResourceManagementClient.new(azure.connection)
@client.subscription_id = azure.subscription_id
end
def exists(name)
@client.resource_groups.check_existence(name)
end
end