# Attach and detach networks

## How to Attach and Detach a VM Network on Existing Virtual Machines:&#x20;

A virtual network can connect virtual machines and devices, no matter what is their location, and the software it use.

Virtual networking enables devices across many locations to function with the same capabilities as a traditional physical network.&#x20;

Hybr released a new feature on the top of the VM management capabilities to attach and detach a network. This allows tenant to allocate networks or remove the one that is already present in a virtual machine.

Without this, a tenant needs to rely on the infrastructure application such as vCenter vSphere, VMM Console to configure network. Hybr now enables this capability to configure network on a already provisioned virtual machine without hopping between the portal and vSphere client or VMM Console.

### Custom commands:

&#x20;Hybr, administrator can write their own PowerShell scripts to create and perform custom power operations and run against any virtual machines. It also comes with pre-packaged commands such as Add / Delete / Expand a disk. In addition to that, Network management is also part of it now.

![](/files/ThsRxLAHfwKJM62Ddvn3)

### Attach and detach a network:

![](/files/Bgr6HHatFCurpXdocxSr)

In the Hybr Tenant portal, Under the Virtual Machines tab, you can find the list of the created VMs where you can perform various custom operations that includes ‘Attach and Detach a Network’ against the virtual machine.&#x20;

#### How to attach a network?

![](/files/q7UmDW9hJEm1COjRYfJt)

You can select the network from the available list to be attached against the VM using Attach Network option.&#x20;

#### How to detach a network?

![](/files/9BdM8sLPEfwQN34VuEA8)

Similarly, you can switch from one to another network using the ‘ Detach Network’ option against the VM.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudassert.com/hybr/features/admin/hybr-resource-management/attach-and-detach-networks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
