Sha256: 5b6ca99ec8dbaf8068429f154abdbeaf3415b6dd57eb11dfc86efa9f681deb28
Contents?: true
Size: 879 Bytes
Versions: 2
Compression:
Stored size: 879 Bytes
Contents
module Fog module Resources class AzureRM class Real def create_resource_group(name, location) begin Fog::Logger.debug "Creating Resource Group: #{name}." rg_properties = ::Azure::ARM::Resources::Models::ResourceGroup.new rg_properties.location = location promise = @rmc.resource_groups.create_or_update(name, rg_properties) result = promise.value! Fog::Logger.debug "Resource Group #{name} created successfully." result rescue MsRestAzure::AzureOperationError => e msg = "Exception creating Resource Group #{name}. #{e.body['error']['message']}" raise msg end end end class Mock def create_resource_group(name, parameters) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/requests/resources/create_resource_group.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/requests/resources/create_resource_group.rb |