def _create_virtual_network(self, region, resource_group_name, vnet_name):
vnet_config = {<EOL>'<STR_LIT:location>': region,<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': ['<STR_LIT>']<EOL>}<EOL>}<EOL>try:<EOL><INDENT>vnet_setup = self.network.virtual_networks.create_or_update(<EOL>resource_group_name, vnet_name, vnet_config<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise AzureCloudException(<EOL>'<STR_LIT>'.format(error)<EOL>)<EOL><DEDENT>vnet_setup.wait()<EOL>
Create a vnet in the given resource group with default address space.