def list_resource_groups(conn=None, call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The list_hosted_services function must be called with -f or --function')
 global resconn
 if (not resconn):
  resconn = get_conn(ResourceManagementClient)
 ret = {}
 region = get_location()
 bank = 'cloud/metadata/azurearm/{0}'.format(region)
 groups = cache.cache(bank, 'resource_groups', resconn.resource_groups.list, loop_fun=object_to_dict, expire=config.get_cloud_config_value('expire_group_cache', get_configured_provider(), __opts__, search_global=False, default=86400))
 for group in groups:
  ret[group['name']] = group
 return ret

def list_resource_groups ( conn = None , call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The list_hosted_services function must be called with -f or --function' ) global resconn if ( not resconn ) : resconn = get_conn ( ResourceManagementClient ) ret = { } region = get_location ( ) bank = 'cloud/metadata/azurearm/{0}' . format ( region ) groups = cache . cache ( bank , 'resource_groups' , resconn . resource_groups . list , loop_fun = object_to_dict , expire = config . get_cloud_config_value ( 'expire_group_cache' , get_configured_provider ( ) , __opts__ , search_global = False , default = 86400 ) ) for group in groups : ret [ group [ 'name' ] ] = group return ret
list resource groups associated with the account .