def _create_vm(self, vm_config):
try:<EOL><INDENT>vm_setup = self.compute.virtual_machines.create_or_update(<EOL>self.running_instance_id, self.running_instance_id,<EOL>vm_config<EOL>)<EOL><DEDENT>except Exception as error:<EOL><INDENT>raise AzureCloudException(<EOL>'<STR_LIT>'.format(<EOL>error<EOL>)<EOL>)<EOL><DEDENT>vm_setup.wait()<EOL>
Attempt to create or update VM instance based on vm_parameters config.