How to set virtual network for VM

Xinxin Zhou 21 Reputation points Microsoft Employee
2024-03-01T23:08:36.9566667+00:00

I am a student who want to learn virtual machine.

How to set virtual network for VM?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 49,536 Reputation points Microsoft Employee Moderator
    2024-03-11T12:27:15.6266667+00:00

    @Xinxin Zhou ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Please note that Azure does not allow you to create a VM without having a VNET. And once created, you cannot change the VM of a VNET.

    More details on VNET can be found on: What is Azure Virtual Network?

    • This is just like a local network
    • The benefit with Azure is you have Subnets withing VNET for grouping VMs/resources
    • Also, a VNET is essential if you are planning to connect your Azure Environment to OnPrem (Either via VPN or ExpressRoute)

    Should you have any specific questions, please do let us know.

    If not, please Accept an answer .

    Original posters help the community find answers faster by identifying the correct answer.

    Cheers,

    Kapil

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2024-03-02T00:51:13.1766667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    You can do that using VNet.

    A virtual network (VNet) is essential for secure communication between Azure resources, including virtual machines (VMs).

    https://learn.microsoft.com/en-us/azure/virtual-network/quick-create-portal

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.