# Azure

# Make user member of a dynamic group based on a secondary group membership

`user.memberof -any (group.objectId -in ['group1-123-123-123','group2-123-123-123'])`

# G-Suite (Google Workspace) authentication into Office 365 (SAML)

[https://www.youtube.com/watch?v=C46djGWiaDA](https://www.youtube.com/watch?v=C46djGWiaDA)

[https://pastebin.com/buTh1mcm](https://pastebin.com/buTh1mcm)

1. <div class="de1">Install<span class="sy0">-</span>Module MSOnline</div>
2. <div class="de1">Import<span class="sy0">-</span>Module MSOnline</div>
3. <div class="de1">Connect<span class="sy0">-</span>MsolService</div>
4. <div class="de1"><span class="re0">$domainName</span> <span class="sy0">=</span> <span class="st0">"&lt;your domain&gt;"</span></div>
5. <div class="de1"><span class="br0">\[</span><span class="re3">xml</span><span class="br0">\]</span><span class="re0">$idp</span> <span class="sy0">=</span> <span class="kw1">Get-Content</span> <span class="sy0">&lt;</span>metadata<span class="sy0">-</span>xml<span class="kw4">-file</span><span class="sy0">-</span>path<span class="sy0">&gt;</span></div>
6. <div class="de1"><span class="re0">$activeLogonUri</span> <span class="sy0">=</span> <span class="st0">"https://login.microsoftonline.com/login.srf"</span></div>
7. <div class="de1"><span class="re0">$signingCertificate</span> <span class="sy0">=</span> <span class="br0">(</span><span class="re0">$idp</span>.EntityDescriptor.IDPSSODescriptor.KeyDescriptor.KeyInfo.X509Data.X509Certificate <span class="sy0">|</span> <span class="kw1">Out-String</span><span class="br0">)</span>.Trim<span class="br0">(</span><span class="br0">)</span></div>
8. <div class="de1"><span class="re0">$issuerUri</span> <span class="sy0">=</span> <span class="re0">$idp</span>.EntityDescriptor.entityID</div>
9. <div class="de1"><span class="re0">$logOffUri</span> <span class="sy0">=</span> <span class="re0">$idp</span>.EntityDescriptor.IDPSSODescriptor.SingleSignOnService.Location<span class="br0">\[</span><span class="nu0">0</span><span class="br0">\]</span></div>
10. <div class="de1"><span class="re0">$passiveLogOnUri</span> <span class="sy0">=</span> <span class="re0">$idp</span>.EntityDescriptor.IDPSSODescriptor.SingleSignOnService.Location<span class="br0">\[</span><span class="nu0">0</span><span class="br0">\]</span></div>
11. <div class="de1">Set<span class="sy0">-</span>MsolDomainAuthentication <span class="sy0">-</span>DomainName <span class="re0">$domainName</span> <span class="sy0">-</span>FederationBrandName <span class="re0">$domainName</span> <span class="sy0">-</span>Authentication Federated <span class="sy0">-</span>PassiveLogOnUri <span class="re0">$passiveLogOnUri</span> <span class="sy0">-</span>ActiveLogOnUri <span class="re0">$activeLogonUri</span> <span class="sy0">-</span>SigningCertificate <span class="re0">$signingcertificate</span> <span class="sy0">-</span>IssuerUri <span class="re0">$issuerUri</span> <span class="sy0">-</span>LogOffUri <span class="re0">$logOffUri</span> <span class="sy0">-</span>PreferredAuthenticationProtocol <span class="st0">"SAMLP"</span></div>

# Create Dynamic Group for all licensed Users

`(user.userType -eq "member") and (user.department -ne "NotSupport") and (user.accountEnabled -eq true) and (user.assignedPlans -any (assignedPlan.servicePlanId -ne "" -and assignedPlan.capabilityStatus -eq "Enabled"))`

this requires that the user type is set to "member."

That can be removed.

# Creating a Secure Site-to-Site VPN Connection in Azure: A Step-by-Step Guide

[https://medium.com/@subhampradhan966/creating-a-secure-site-to-site-vpn-connection-in-azure-a-step-by-step-guide-b4689f7cbb35](https://medium.com/@subhampradhan966/creating-a-secure-site-to-site-vpn-connection-in-azure-a-step-by-step-guide-b4689f7cbb35)

<div class="fu fv fw fx fy l" id="bkmrk-here-are-the-key-fea"><article><div class="l"><div class="l"><section>**Here are the key features used in this implementation:**

**Virtual Network (VNet):**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- VNets in Azure provide the foundation for hosting VMs and other Azure resources. They serve as isolated networks within Azure and are essential for establishing connectivity between on-premises and Azure environments.

</div></div></div></div>**Virtual Network Gateway:**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- The Virtual Network Gateway serves as the Azure endpoint of the VPN tunnel. It provides the necessary infrastructure to establish and manage the VPN connection between Azure and the on-premises VPN device.

</div></div></div></div>**Local Network Gateway:**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- The Local Network Gateway represents the on-premises VPN device in Azure. It defines the IP address, address space, and other parameters required to establish a secure connection between the on-premises network and Azure VNet.

</div></div></div></div>**VPN Gateway SKUs:**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- Azure offers different VPN Gateway SKUs with varying performance and throughput capabilities. Choosing the appropriate SKU depends on factors such as the volume of traffic, latency requirements, and budget considerations.

</div></div></div></div>**Connection Types:**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- Azure supports different connection types for VPN gateways, including Site-to-Site (IPsec), Point-to-Site (SSL VPN), and ExpressRoute. For site-to-site VPN connections, the IPsec protocol is commonly used for its robust security and compatibility with various VPN devices.

</div></div></div></div>**Pre-shared Keys (PSK):**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- Pre-shared keys are used for authentication between the Azure VPN gateway and the on-premises VPN device. These keys ensure that only authorized parties can establish the VPN tunnel and communicate securely.

</div></div></div></div>**Configuration File:**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- Azure generates a configuration file containing the necessary settings and parameters for configuring the on-premises VPN device. This file includes details such as the VPN gateway IP address, pre-shared key, encryption protocols, and other configuration options.

</div></div></div></div>**Dynamic Routing:**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">- Azure VPN gateways support dynamic routing protocols such as BGP (Border Gateway Protocol), which enable automatic route propagation between on-premises and Azure networks. Dynamic routing enhances flexibility and scalability in complex network environments.

</div></div></div></div># Step-by-Step Implementation:

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc"><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh ot"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*nhWP__XOK-s0vWcRaM_V0w.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*nhWP__XOK-s0vWcRaM_V0w.png 640w, https://miro.medium.com/v2/resize:fit:720/1*nhWP__XOK-s0vWcRaM_V0w.png 720w, https://miro.medium.com/v2/resize:fit:750/1*nhWP__XOK-s0vWcRaM_V0w.png 750w, https://miro.medium.com/v2/resize:fit:786/1*nhWP__XOK-s0vWcRaM_V0w.png 786w, https://miro.medium.com/v2/resize:fit:828/1*nhWP__XOK-s0vWcRaM_V0w.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*nhWP__XOK-s0vWcRaM_V0w.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*nhWP__XOK-s0vWcRaM_V0w.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*nhWP__XOK-s0vWcRaM_V0w.png)</source></source></picture></div></div><figcaption class="oz ff pa mg mh pb pc bf b bg z du" data-selectable-paragraph="">**Azure Site-to-Site VPN Connection Architecture**</figcaption></figure></div></div></div></div># Step 1: Create a Subscription

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. Go to the Azure portal (portal.azure.com).
2. Navigate to “Subscriptions”.
3. Click on “Add” to create a new subscription if you don’t have one already.

</div></div></div></div># Step 2: Create a Resource

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. In the Azure portal, navigate to “Resource groups”.
2. Click on “Create”.
3. Provide a name for your resource group.
4. Choose the subscription you created earlier.
5. Select a region for your resource group.
6. Click on “Review + create” and then “Create” to finalize the creation of the resource group.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*62KJiiKGr1jZgGXpAK8I4A.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*62KJiiKGr1jZgGXpAK8I4A.png 640w, https://miro.medium.com/v2/resize:fit:720/1*62KJiiKGr1jZgGXpAK8I4A.png 720w, https://miro.medium.com/v2/resize:fit:750/1*62KJiiKGr1jZgGXpAK8I4A.png 750w, https://miro.medium.com/v2/resize:fit:786/1*62KJiiKGr1jZgGXpAK8I4A.png 786w, https://miro.medium.com/v2/resize:fit:828/1*62KJiiKGr1jZgGXpAK8I4A.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*62KJiiKGr1jZgGXpAK8I4A.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*62KJiiKGr1jZgGXpAK8I4A.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*62KJiiKGr1jZgGXpAK8I4A.png)</source></source></picture></div></div></figure></div></div></div></div># Step 3: Create a Virtual Network

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. In the Azure portal, navigate to “Virtual networks”.
2. Click on “Add” to create a new virtual network.
3. Fill out the required details:

- Name: Provide a name for your virtual network.
- Address space: Define the address space for your virtual network.
- Subnet: Add a subnet and define its address range.
- Subscription: Choose your subscription.
- Resource group: Select the resource group created earlier.
- Location: Choose the location for your virtual network.
- Click on “Review + create” and then “Create” to create the virtual network.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*kNipsMllC4f5Mp8WZtbWAQ.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*kNipsMllC4f5Mp8WZtbWAQ.png 640w, https://miro.medium.com/v2/resize:fit:720/1*kNipsMllC4f5Mp8WZtbWAQ.png 720w, https://miro.medium.com/v2/resize:fit:750/1*kNipsMllC4f5Mp8WZtbWAQ.png 750w, https://miro.medium.com/v2/resize:fit:786/1*kNipsMllC4f5Mp8WZtbWAQ.png 786w, https://miro.medium.com/v2/resize:fit:828/1*kNipsMllC4f5Mp8WZtbWAQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*kNipsMllC4f5Mp8WZtbWAQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*kNipsMllC4f5Mp8WZtbWAQ.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*kNipsMllC4f5Mp8WZtbWAQ.png)</source></source></picture></div></div></figure></div></div></div></div>**Create 2 subnets :**

**S2S-SUBNET-1 :** **10.0.1.0/24**

**S2S-SUBNET-2** : **10.0.2.0/24**

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc"><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*F1LPneb8sY4hNhtT9o2b3g.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*F1LPneb8sY4hNhtT9o2b3g.png 640w, https://miro.medium.com/v2/resize:fit:720/1*F1LPneb8sY4hNhtT9o2b3g.png 720w, https://miro.medium.com/v2/resize:fit:750/1*F1LPneb8sY4hNhtT9o2b3g.png 750w, https://miro.medium.com/v2/resize:fit:786/1*F1LPneb8sY4hNhtT9o2b3g.png 786w, https://miro.medium.com/v2/resize:fit:828/1*F1LPneb8sY4hNhtT9o2b3g.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*F1LPneb8sY4hNhtT9o2b3g.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*F1LPneb8sY4hNhtT9o2b3g.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*F1LPneb8sY4hNhtT9o2b3g.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*sfQ5PCI6sJs378XIVw8N2A.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*sfQ5PCI6sJs378XIVw8N2A.png 640w, https://miro.medium.com/v2/resize:fit:720/1*sfQ5PCI6sJs378XIVw8N2A.png 720w, https://miro.medium.com/v2/resize:fit:750/1*sfQ5PCI6sJs378XIVw8N2A.png 750w, https://miro.medium.com/v2/resize:fit:786/1*sfQ5PCI6sJs378XIVw8N2A.png 786w, https://miro.medium.com/v2/resize:fit:828/1*sfQ5PCI6sJs378XIVw8N2A.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*sfQ5PCI6sJs378XIVw8N2A.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*sfQ5PCI6sJs378XIVw8N2A.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*sfQ5PCI6sJs378XIVw8N2A.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*OZa_gYVZ2ErGi-Z16FUcmA.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*OZa_gYVZ2ErGi-Z16FUcmA.png 640w, https://miro.medium.com/v2/resize:fit:720/1*OZa_gYVZ2ErGi-Z16FUcmA.png 720w, https://miro.medium.com/v2/resize:fit:750/1*OZa_gYVZ2ErGi-Z16FUcmA.png 750w, https://miro.medium.com/v2/resize:fit:786/1*OZa_gYVZ2ErGi-Z16FUcmA.png 786w, https://miro.medium.com/v2/resize:fit:828/1*OZa_gYVZ2ErGi-Z16FUcmA.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*OZa_gYVZ2ErGi-Z16FUcmA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*OZa_gYVZ2ErGi-Z16FUcmA.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*OZa_gYVZ2ErGi-Z16FUcmA.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*aE5MzhKCmsq2ISCmEVPZzw.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*aE5MzhKCmsq2ISCmEVPZzw.png 640w, https://miro.medium.com/v2/resize:fit:720/1*aE5MzhKCmsq2ISCmEVPZzw.png 720w, https://miro.medium.com/v2/resize:fit:750/1*aE5MzhKCmsq2ISCmEVPZzw.png 750w, https://miro.medium.com/v2/resize:fit:786/1*aE5MzhKCmsq2ISCmEVPZzw.png 786w, https://miro.medium.com/v2/resize:fit:828/1*aE5MzhKCmsq2ISCmEVPZzw.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*aE5MzhKCmsq2ISCmEVPZzw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*aE5MzhKCmsq2ISCmEVPZzw.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*aE5MzhKCmsq2ISCmEVPZzw.png)</source></source></picture></div></div></figure></div></div></div></div># Add Gateway Subnet

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. After creating the virtual network, navigate to its settings.
2. Click on “Subnets”.
3. Click on “+ Gateway subnet” to add a gateway subnet.
4. Name your subnet (e.g., “GatewaySubnet”).
5. Define the address range for the subnet. Note: It should be a valid CIDR block within the address space of your virtual network.
6. Click on “OK” to create the gateway subnet.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*u87pT1y3-m7bfuFJ11Cx7Q.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*u87pT1y3-m7bfuFJ11Cx7Q.png 640w, https://miro.medium.com/v2/resize:fit:720/1*u87pT1y3-m7bfuFJ11Cx7Q.png 720w, https://miro.medium.com/v2/resize:fit:750/1*u87pT1y3-m7bfuFJ11Cx7Q.png 750w, https://miro.medium.com/v2/resize:fit:786/1*u87pT1y3-m7bfuFJ11Cx7Q.png 786w, https://miro.medium.com/v2/resize:fit:828/1*u87pT1y3-m7bfuFJ11Cx7Q.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*u87pT1y3-m7bfuFJ11Cx7Q.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*u87pT1y3-m7bfuFJ11Cx7Q.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*u87pT1y3-m7bfuFJ11Cx7Q.png)</source></source></picture></div></div></figure></div></div></div></div># Step 4: Create a Virtual Network Gateway

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. Go to “Virtual network gateways” in the Azure portal.
2. Click on “Add” to create a new virtual network gateway.
3. Provide the necessary details such as gateway type, VPN type, SKU, and virtual network settings.
4. Select the same resource group created in Step 2.
5. Wait for the deployment to complete.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*V_O7c581XEGAKJURzwnnkA.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*V_O7c581XEGAKJURzwnnkA.png 640w, https://miro.medium.com/v2/resize:fit:720/1*V_O7c581XEGAKJURzwnnkA.png 720w, https://miro.medium.com/v2/resize:fit:750/1*V_O7c581XEGAKJURzwnnkA.png 750w, https://miro.medium.com/v2/resize:fit:786/1*V_O7c581XEGAKJURzwnnkA.png 786w, https://miro.medium.com/v2/resize:fit:828/1*V_O7c581XEGAKJURzwnnkA.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*V_O7c581XEGAKJURzwnnkA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*V_O7c581XEGAKJURzwnnkA.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*V_O7c581XEGAKJURzwnnkA.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*3ored4D5RErsF0Un3g7iVw.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*3ored4D5RErsF0Un3g7iVw.png 640w, https://miro.medium.com/v2/resize:fit:720/1*3ored4D5RErsF0Un3g7iVw.png 720w, https://miro.medium.com/v2/resize:fit:750/1*3ored4D5RErsF0Un3g7iVw.png 750w, https://miro.medium.com/v2/resize:fit:786/1*3ored4D5RErsF0Un3g7iVw.png 786w, https://miro.medium.com/v2/resize:fit:828/1*3ored4D5RErsF0Un3g7iVw.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*3ored4D5RErsF0Un3g7iVw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*3ored4D5RErsF0Un3g7iVw.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*3ored4D5RErsF0Un3g7iVw.png)</source></source></picture></div></div></figure></div></div></div></div>For Creating Virtual Network Gateway, it will take more than **25 minutes** ;

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc"><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*lRVDNunUY9fMJhAr4cAybg.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*lRVDNunUY9fMJhAr4cAybg.png 640w, https://miro.medium.com/v2/resize:fit:720/1*lRVDNunUY9fMJhAr4cAybg.png 720w, https://miro.medium.com/v2/resize:fit:750/1*lRVDNunUY9fMJhAr4cAybg.png 750w, https://miro.medium.com/v2/resize:fit:786/1*lRVDNunUY9fMJhAr4cAybg.png 786w, https://miro.medium.com/v2/resize:fit:828/1*lRVDNunUY9fMJhAr4cAybg.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*lRVDNunUY9fMJhAr4cAybg.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*lRVDNunUY9fMJhAr4cAybg.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*lRVDNunUY9fMJhAr4cAybg.png)</source></source></picture></div></div></figure></div></div></div></div># Step 5: Create a Local Network Gateway

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. In the Azure portal, go to “Local network gateways”.
2. Click on “Add” to create a new local network gateway.
3. Enter the required information, including name, IP address of the local VPN device, and the address space.
4. Associate the local network gateway with the same resource group as before.
5. Complete the creation process.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*bZPEGaZhrcy2VWbop1xFdA.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*bZPEGaZhrcy2VWbop1xFdA.png 640w, https://miro.medium.com/v2/resize:fit:720/1*bZPEGaZhrcy2VWbop1xFdA.png 720w, https://miro.medium.com/v2/resize:fit:750/1*bZPEGaZhrcy2VWbop1xFdA.png 750w, https://miro.medium.com/v2/resize:fit:786/1*bZPEGaZhrcy2VWbop1xFdA.png 786w, https://miro.medium.com/v2/resize:fit:828/1*bZPEGaZhrcy2VWbop1xFdA.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*bZPEGaZhrcy2VWbop1xFdA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*bZPEGaZhrcy2VWbop1xFdA.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*bZPEGaZhrcy2VWbop1xFdA.png)</source></source></picture></div></div></figure></div></div></div></div>**If static :** Need IP from Client

**If Dynamic :** Need Domain from Client

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc"><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*G7MS8m5QAeEoGKUG6SJqyA.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*G7MS8m5QAeEoGKUG6SJqyA.png 640w, https://miro.medium.com/v2/resize:fit:720/1*G7MS8m5QAeEoGKUG6SJqyA.png 720w, https://miro.medium.com/v2/resize:fit:750/1*G7MS8m5QAeEoGKUG6SJqyA.png 750w, https://miro.medium.com/v2/resize:fit:786/1*G7MS8m5QAeEoGKUG6SJqyA.png 786w, https://miro.medium.com/v2/resize:fit:828/1*G7MS8m5QAeEoGKUG6SJqyA.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*G7MS8m5QAeEoGKUG6SJqyA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*G7MS8m5QAeEoGKUG6SJqyA.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*G7MS8m5QAeEoGKUG6SJqyA.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*_wfLerr0-TQKIDkRiNWigQ.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*_wfLerr0-TQKIDkRiNWigQ.png 640w, https://miro.medium.com/v2/resize:fit:720/1*_wfLerr0-TQKIDkRiNWigQ.png 720w, https://miro.medium.com/v2/resize:fit:750/1*_wfLerr0-TQKIDkRiNWigQ.png 750w, https://miro.medium.com/v2/resize:fit:786/1*_wfLerr0-TQKIDkRiNWigQ.png 786w, https://miro.medium.com/v2/resize:fit:828/1*_wfLerr0-TQKIDkRiNWigQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*_wfLerr0-TQKIDkRiNWigQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*_wfLerr0-TQKIDkRiNWigQ.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*_wfLerr0-TQKIDkRiNWigQ.png)</source></source></picture></div></div></figure></div></div></div></div># Step 6: Add Connection — Virtual Network Gateway

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. Navigate to the virtual network gateway resource created in Step 4.
2. Select “Connections” and then click on “Add”.
3. Choose the virtual network gateway and local network gateway that you created earlier.
4. Configure the connection type as “Site-to-Site (IPsec)”.
5. Provide the pre-shared key, IP address (static or dynamic), and choose the vendor (generic/cisco).
6. Download the configuration file for the VPN device. If using a dynamic IP address, ensure you have a domain name associated with it.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*mRb09_I3Eqn7NI-JV4i_hw.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*mRb09_I3Eqn7NI-JV4i_hw.png 640w, https://miro.medium.com/v2/resize:fit:720/1*mRb09_I3Eqn7NI-JV4i_hw.png 720w, https://miro.medium.com/v2/resize:fit:750/1*mRb09_I3Eqn7NI-JV4i_hw.png 750w, https://miro.medium.com/v2/resize:fit:786/1*mRb09_I3Eqn7NI-JV4i_hw.png 786w, https://miro.medium.com/v2/resize:fit:828/1*mRb09_I3Eqn7NI-JV4i_hw.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*mRb09_I3Eqn7NI-JV4i_hw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*mRb09_I3Eqn7NI-JV4i_hw.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*mRb09_I3Eqn7NI-JV4i_hw.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*tn4vBLXkyoSJYk-wLeVDCg.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*tn4vBLXkyoSJYk-wLeVDCg.png 640w, https://miro.medium.com/v2/resize:fit:720/1*tn4vBLXkyoSJYk-wLeVDCg.png 720w, https://miro.medium.com/v2/resize:fit:750/1*tn4vBLXkyoSJYk-wLeVDCg.png 750w, https://miro.medium.com/v2/resize:fit:786/1*tn4vBLXkyoSJYk-wLeVDCg.png 786w, https://miro.medium.com/v2/resize:fit:828/1*tn4vBLXkyoSJYk-wLeVDCg.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*tn4vBLXkyoSJYk-wLeVDCg.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*tn4vBLXkyoSJYk-wLeVDCg.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*tn4vBLXkyoSJYk-wLeVDCg.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*ui9q-VGoLph-hwN7ca41eQ.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*ui9q-VGoLph-hwN7ca41eQ.png 640w, https://miro.medium.com/v2/resize:fit:720/1*ui9q-VGoLph-hwN7ca41eQ.png 720w, https://miro.medium.com/v2/resize:fit:750/1*ui9q-VGoLph-hwN7ca41eQ.png 750w, https://miro.medium.com/v2/resize:fit:786/1*ui9q-VGoLph-hwN7ca41eQ.png 786w, https://miro.medium.com/v2/resize:fit:828/1*ui9q-VGoLph-hwN7ca41eQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*ui9q-VGoLph-hwN7ca41eQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*ui9q-VGoLph-hwN7ca41eQ.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*ui9q-VGoLph-hwN7ca41eQ.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*ZjiE6pCDcLbDRzg2brRJGw.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*ZjiE6pCDcLbDRzg2brRJGw.png 640w, https://miro.medium.com/v2/resize:fit:720/1*ZjiE6pCDcLbDRzg2brRJGw.png 720w, https://miro.medium.com/v2/resize:fit:750/1*ZjiE6pCDcLbDRzg2brRJGw.png 750w, https://miro.medium.com/v2/resize:fit:786/1*ZjiE6pCDcLbDRzg2brRJGw.png 786w, https://miro.medium.com/v2/resize:fit:828/1*ZjiE6pCDcLbDRzg2brRJGw.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*ZjiE6pCDcLbDRzg2brRJGw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*ZjiE6pCDcLbDRzg2brRJGw.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*ZjiE6pCDcLbDRzg2brRJGw.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*lwCLiJELlzuld6mcXstsWQ.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*lwCLiJELlzuld6mcXstsWQ.png 640w, https://miro.medium.com/v2/resize:fit:720/1*lwCLiJELlzuld6mcXstsWQ.png 720w, https://miro.medium.com/v2/resize:fit:750/1*lwCLiJELlzuld6mcXstsWQ.png 750w, https://miro.medium.com/v2/resize:fit:786/1*lwCLiJELlzuld6mcXstsWQ.png 786w, https://miro.medium.com/v2/resize:fit:828/1*lwCLiJELlzuld6mcXstsWQ.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*lwCLiJELlzuld6mcXstsWQ.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*lwCLiJELlzuld6mcXstsWQ.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*lwCLiJELlzuld6mcXstsWQ.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*ITfqmpXgV-B-PuovoauwEA.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*ITfqmpXgV-B-PuovoauwEA.png 640w, https://miro.medium.com/v2/resize:fit:720/1*ITfqmpXgV-B-PuovoauwEA.png 720w, https://miro.medium.com/v2/resize:fit:750/1*ITfqmpXgV-B-PuovoauwEA.png 750w, https://miro.medium.com/v2/resize:fit:786/1*ITfqmpXgV-B-PuovoauwEA.png 786w, https://miro.medium.com/v2/resize:fit:828/1*ITfqmpXgV-B-PuovoauwEA.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*ITfqmpXgV-B-PuovoauwEA.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*ITfqmpXgV-B-PuovoauwEA.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*ITfqmpXgV-B-PuovoauwEA.png)</source></source></picture></div></div></figure></div></div></div></div># Step 7: Configure Client’s VPN Device

<div><div class="gn go gp gq gr"><div class="ab cb"><div class="ci bh fz ga gb gc">1. Share the downloaded configuration file with your client.
2. Instruct your client to configure their VPN device (Cisco or generic) using the details provided in the configuration file.
3. If the IP address is dynamic, ensure they use the domain name for setup.

<figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*YZXpKtsjU0jukV-3thPpWg.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*YZXpKtsjU0jukV-3thPpWg.png 640w, https://miro.medium.com/v2/resize:fit:720/1*YZXpKtsjU0jukV-3thPpWg.png 720w, https://miro.medium.com/v2/resize:fit:750/1*YZXpKtsjU0jukV-3thPpWg.png 750w, https://miro.medium.com/v2/resize:fit:786/1*YZXpKtsjU0jukV-3thPpWg.png 786w, https://miro.medium.com/v2/resize:fit:828/1*YZXpKtsjU0jukV-3thPpWg.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*YZXpKtsjU0jukV-3thPpWg.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*YZXpKtsjU0jukV-3thPpWg.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*YZXpKtsjU0jukV-3thPpWg.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*wBqfjgZuu59GDlSoq6qYDw.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*wBqfjgZuu59GDlSoq6qYDw.png 640w, https://miro.medium.com/v2/resize:fit:720/1*wBqfjgZuu59GDlSoq6qYDw.png 720w, https://miro.medium.com/v2/resize:fit:750/1*wBqfjgZuu59GDlSoq6qYDw.png 750w, https://miro.medium.com/v2/resize:fit:786/1*wBqfjgZuu59GDlSoq6qYDw.png 786w, https://miro.medium.com/v2/resize:fit:828/1*wBqfjgZuu59GDlSoq6qYDw.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*wBqfjgZuu59GDlSoq6qYDw.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*wBqfjgZuu59GDlSoq6qYDw.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*wBqfjgZuu59GDlSoq6qYDw.png)</source></source></picture></div></div></figure><figure class="ou ov ow ox oy mo mg mh paragraph-image"><div class="mp mq fj mr bh ms" role="button" tabindex="0"><div class="mg mh po"><picture><source sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 640w, https://miro.medium.com/v2/resize:fit:720/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 720w, https://miro.medium.com/v2/resize:fit:750/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 750w, https://miro.medium.com/v2/resize:fit:786/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 786w, https://miro.medium.com/v2/resize:fit:828/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 828w, https://miro.medium.com/v2/resize:fit:1100/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 1100w, https://miro.medium.com/v2/resize:fit:1400/format:webp/1*LOTTCblnhgaUhdpFWYP70w.png 1400w" type="image/webp"><source data-testid="og" sizes="(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px" srcset="https://miro.medium.com/v2/resize:fit:640/1*LOTTCblnhgaUhdpFWYP70w.png 640w, https://miro.medium.com/v2/resize:fit:720/1*LOTTCblnhgaUhdpFWYP70w.png 720w, https://miro.medium.com/v2/resize:fit:750/1*LOTTCblnhgaUhdpFWYP70w.png 750w, https://miro.medium.com/v2/resize:fit:786/1*LOTTCblnhgaUhdpFWYP70w.png 786w, https://miro.medium.com/v2/resize:fit:828/1*LOTTCblnhgaUhdpFWYP70w.png 828w, https://miro.medium.com/v2/resize:fit:1100/1*LOTTCblnhgaUhdpFWYP70w.png 1100w, https://miro.medium.com/v2/resize:fit:1400/1*LOTTCblnhgaUhdpFWYP70w.png 1400w">![](https://miro.medium.com/v2/resize:fit:700/1*LOTTCblnhgaUhdpFWYP70w.png)</source></source></picture></div></div></figure></div></div></div></div>By following these detailed steps, you can effectively set up a site-to-site VPN connection in Azure and guide your client through the configuration process.

Congratulations! You have successfully set up a virtual network in Azure with a gateway subnet and configured a site-to-site VPN connection. By following these steps, you have established a secure connection between your Azure environment and your client’s on-premises network, allowing seamless communication between resources.

Remember to ensure that all configurations are correctly applied, and both parties have access to the necessary information, including the pre-shared key and configuration files. Regularly monitor the VPN connection status in the Azure portal to ensure smooth operation and troubleshoot any issues promptly.

With this site-to-site VPN connection in place, your organization can leverage Azure’s resources securely and extend your on-premises network to the cloud, enabling enhanced scalability, flexibility, and reliability for your infrastructure needs.

</section></div></div></article></div><div class="l" id="bkmrk-">  
</div><footer class="pp pq pr ps pt pu pv pw px ab q py pz c" id="bkmrk-3"><button class="af ag ah ai aj ak al am an ao ap aq ar as at zm lg">3</button>

</footer>

# Microsoft License Plan Reference

[https://learn.microsoft.com/en-us/entra/identity/users/licensing-service-plan-reference](https://learn.microsoft.com/en-us/entra/identity/users/licensing-service-plan-reference)