def _create_resource_group(self, region, resource_group_name):
resource_group_config = {'<STR_LIT:location>': region}<EOL>try:<EOL><INDENT>self.resource.resource_groups.create_or_update(<EOL>resource_group_name, resource_group_config<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise AzureCloudException(<EOL>'<STR_LIT>'.format(error)<EOL>)<EOL><DEDENT>
Create resource group if it does not exist.