lib/fog/azurerm/requests/resources/create_resource_group.rb in fog-azure-rm-temp-0.0.4 vs lib/fog/azurerm/requests/resources/create_resource_group.rb in fog-azure-rm-temp-0.0.5
- old
+ new
@@ -1,14 +1,15 @@
module Fog
module Resources
class AzureRM
# This class provides the actual implementation for service calls.
class Real
- def create_resource_group(name, location)
+ def create_resource_group(name, location, tags)
msg = "Creating Resource Group: #{name}."
Fog::Logger.debug msg
resource_group = Azure::ARM::Resources::Models::ResourceGroup.new
resource_group.location = location
+ resource_group.tags = tags
begin
resource_group = @rmc.resource_groups.create_or_update(name, resource_group)
rescue MsRestAzure::AzureOperationError => e
raise_azure_exception(e, msg)
end