--- title: "Cloud Edition - Azure Networking and Security" --- # Cloud Edition - Azure Networking and Security > This page details various networking and security settings you may need to configure for your Cloud Edition virtual machine. ## Basic Networking and Security Requirements The following is a list of configurable items you need when connecting to a Cloud Edition virtual machine. Note that this is not a comprehensive list; it is meant to show the fundamental features that you need to set up for your virtual machine. See the official [Azure documentation](https://learn.microsoft.com/en-us/azure/virtual-network/network-overview) for a list of networking features you can utilize in your architecture. * Virtual network * Subnet * Network Security Group (NSG) * Public IP :::note The virtual network and available subnets are configured during the same process on Azure. Additionally, you will need to allow traffic through your firewall to the `*.microsoft.com` and `*.digicert.com` domains if you are using port 80 or 443. Without this, your Gateway will go into trial mode. ::: ## Examples The following examples show how to configure the bulleted items in the Basic Networking and Security Requirements section above. Each example demonstrates how to create their respective resources through both the virtual machine creation wizard and Azure services. These examples are demonstrative, and may not reflect how you want to configure your own network and security. ### Creating a Virtual Network You can create a virtual network during the virtual machine creation process or through Azure services. #### Virtual Network - Virtual Machine Creation Process 1. Begin by accessing the **Create a virtual machine** wizard. You can find instructions on creating your virtual machine on the [Image Access Instructions - Azure](other-editions\ignition-cloud-edition\image-access-instructions-azure\image-access-instructions-azure.md) page. 2. Complete the wizard steps until you reach the **Networking** page. Note that the virtual network field is already filled out, using your virtual machine name as part of the name of the virtual network. :::note If you selected a Resource Group on the **Basics** page, Azure will attempt to use a pre-existing virtual network originating from the chosen Resource Group. ::: ![Virtual Network VM Creation Step 2](virtual-network-vm-creation-step-2.png) 3. From here, you could also choose another virtual network to use or configure the new virtual network. If you want to configure the new virtual network, click **Create new**. This will allow you to specify a different address range and subnet(s). In this example, we will use the default address range and subnet. ![Virtual Network VM Creation Step 3](virtual-network-vm-creation-step-3.png) #### Virtual Network - Azure Services 1. Go to your **Azure services** on the Azure console's home page. 2. Click on **More services**. ![Virtual Network Azure Services Step 2](virtual-network-azure-services-step-2.png) 3. Click on **Networking** in the Categories sidebar. ![Virtual Network Azure Services Step 3](virtual-network-azure-services-step-3.png) 4. Click on **Virtual networks** in the Networking foundation section. ![Virtual Network Azure Services Step 4](virtual-network-azure-services-step-4.png) 5. Click on **Create** in the upper left corner. ![Virtual Network Azure Services Step 5](virtual-network-azure-services-step-5.png) 6. A virtual network creation wizard will appear and start on the **Basics** page. Begin by selecting the **subscription**, **resource group**, and **region** your new virtual network will reside in, and give your virtual network a **name**. ![Virtual Network Azure Services Step 6](virtual-network-azure-services-step-6.png) 7. Click **Next: IP Addresses** on the bottom. 8. The **IP Addresses** page contains settings to configure address spaces and subnets. We will use the default address space and subnet here. ![Virtual Network Azure Services Step 8](virtual-network-azure-services-step-8.png) 9. Click **Next: Security**. 10. The **Security** page allows you to enable or disable various security settings. :::note Since this example is demonstrative, we are using the default Disabled settings. For security purposes however, we recommend enabling security features for your virtual network. ::: ![Virtual Network Azure Services Step 10](virtual-network-azure-services-step-10.png) 11. Click **Next: Tags** once you finish configuring security. 12. The **Tags** page allows you to group and consolidate various resources by applying the same tag. We will not set up any tags for our example. ![Virtual Network Azure Services Step 12](virtual-network-azure-services-step-12.png) 13. Click **Next: Review + create**. 14. Azure will now attempt to validate your settings, and will show a banner at the top of the page once validation is complete. Review the summary of your chosen settings. If you are satisfied with your choices, click **Create**. ### Create a Network Security Group Azure's Cloud Edition Image will come with preconfigured network security group rules with ports 80, 443, and 22 open. You can still create your own during the virtual machine creation process or through Azure services. When creating a new network security group [from the wizard](#network-security-group---virtual-machine-creation-process), ports 80, 443, and 22 will be open by default. Creating a network security group through [Azure services](#network-security-group---azure-services) will require you to manually open the specified ports. :::note Port 22 is typically used to get admin access and shell into the virtual machine. Since port 22 is open by default, it may be prudent to remove this rule depending on your network architecture. Port 80 is required to access the Gateway in a non-SSL environment, while port 443 is required to access the Gateway using SSL. Keep in mind that you will still need to [enable SSL/TLS](platform/gateway/web-interface/network/web-server-settings/web-server-settings.md) on the Gateway before using port 443. ::: Regardless of how you utilize your network security group, we recommend limiting access to required IP addresses only for security purposes. #### Network Security Group - Virtual Machine Creation Process 1. Begin by going to the **Create a virtual machine wizard**. You can find instructions on creating your virtual machine on the [Image Access Instructions - Azure](other-editions\ignition-cloud-edition\image-access-instructions-azure\image-access-instructions-azure.md) page. 2. Complete the steps until you reach the **Networking** page. 3. Azure will create a new network security group based off the name of your virtual machine. To edit it, click **Create new**. ![NSG - VM Creation Step 3](nsg-vm-creation-step-3.png) :::note When creating a network security group through the virtual machine creation wizard, the new network security group will be configured with the image's network security group rules. Ports 80, 443, and 22 will already be open and allow incoming traffic to hit those ports. ::: 4. You will be taken to a list of **inbound** and **outbound** rules. From here, you can add more rules by clicking **Add an inbound/outbound rule** at the end of each list. ![NSG - VM Creation Step 4](nsg-vm-creation-step-4.png) :::note If you want to add or modify your rules later, you can edit your network security group in Azure Services. ::: 5. After you finish configuring your network security group, click **OK** at the bottom. #### Network Security Group - Azure Services 1. Go to your **Azure services** on the Azure console's home page. 2. Click on **More services**. ![NSG - Azure Services Step 2](nsg-azure-services-step-2.png) 3. Click on **Networking** in the Categories sidebar. ![NSG - Azure Services Step 3](nsg-azure-services-step-3.png) 4. Click on **Network security groups** in the Network security section. ![NSG - Azure Services Step 4](nsg-azure-services-step-4.png) 5. Click on **Create** in the upper left corner. ![NSG - Azure Services Step 5](nsg-azure-services-step-5.png) 6. A network security group creation wizard will appear and start on the **Basics** page. Begin by selecting the **subscription**, **resource group**, and **region** your new network security group will reside in, and give your network security group a **name**. ![NSG - Azure Services Step 6](nsg-azure-services-step-6.png) 7. Click **Next: Tags** on the bottom. 8. The **Tags** page will allow you to group and consolidate various resources by applying the same tag. We will not set up any tags for our example. ![NSG - Azure Services Step 8](nsg-azure-services-step-8.png) 9. Click **Next: Review + create**. 10. Azure will now attempt to validate your settings, and will show a banner at the top of the page once validation is complete. Review the summary of your chosen settings. If you are satisfied with your choices, click **Create**. 11. After Azure has finished deploying your network security group, click on **Go to resource**. ![NSG - Azure Services Step 11](nsg-azure-services-step-11.png) 12. Once you reach your resource, you can begin specifying which ports you want to open and limiting access to your Gateway by specifying IP addresses in your inbound security rules. To do these actions, begin by clicking **Inbound security rules** in the sidebar under Settings. ![NSG - Azure Services Step 12](nsg-azure-services-step-12.png) 13. Click on **Add** in the upper left corner. ![NSG - Azure Services Step 13](nsg-azure-services-step-13.png) 14. Change the **Source** field's value to **IP Addresses**. ![NSG - Azure Services Step 14](nsg-azure-services-step-14.png) 15. Two new fields will now appear. Put the IP addresses you want to allow access from in the **Source IP addresses/CIDR ranges**. If you would like to also define a port to allow traffic from, you can use the **Source port ranges** field. ![NSG - Azure Services Step 15](nsg-azure-services-step-15.png) :::note Alternatively, you can also put IP addresses you want to deny access from by setting the **Action** property to "Deny". ::: 16. Add the ports you want to be open and accessible in the **Destination port ranges** field. ![NSG - Azure Services Step 16](nsg-azure-services-step-16.png) :::note If you have not done so already, you will need to open ports 80 and 443 in order to access the Gateway webpage via non-SSL and SSL, respectively. ::: 17. Choose the **protocol** you want, as well as whether you want to **allow** or **deny** access from the specified IP. ![NSG - Azure Services Step 17](nsg-azure-services-step-17.png) :::note Use the TCP protocol when setting an inbound rule to open ports 80 and 443. ::: 18. Set the **name** and **priority** of the inbound rule. 19. Click **Add**. Your inbound security rule will become active and added to your network security group. ### Creating a Public IP You can create a Public IP in the virtual machine creation wizard or through Azure services. However, creating a public IP through Azure services will give you a few more options to configure, including: * IP Version * Availability Zone * Tier * Idle Timeout (minutes) * DNS Name Label :::note Be careful when creating your public IP, as you will not be able to change many of its settings after creating it. ::: #### Public IP - Virtual Machine Creation Process 1. Begin by going to the **Create a virtual machine** wizard. You can find instructions on creating your virtual machine on the [Image Access Instructions - Azure](other-editions\ignition-cloud-edition\image-access-instructions-azure\image-access-instructions-azure.md) page. 2. Complete the steps until you reach the **Networking** page. 3. Azure will create a new public IP based off the name of your virtual machine. To edit it, click **Create new**. ![Public IP - VM Creation Step 3](public-ip-vm-creation-step-3.png) 4. From here, you can set the **name**, **SKU**, and **routing preference**. ![Public IP - VM Creation Step 4](public-ip-vm-creation-step-4.png) 5. Make your selections, and then press **OK** at the bottom. #### Public IP - Azure Services 1. Go to your **Azure services** on the Azure console's home page. 2. Click on **More services**. ![Public IP - Azure Services Step 2](public-ip-azure-services-step-2.png) 3. Click on **Networking** in the Categories sidebar. ![Public IP - Azure Services Step 3](public-ip-azure-services-step-3.png) 4. Click on **Public IP addresses** in the Network foundation section. ![Public IP - Azure Services Step 4](public-ip-azure-services-step-4.png) 5. Click **Create** in the upper left corner. ![Public IP - Azure Services Step 5](public-ip-azure-services-step-5.png) 6. You will be taken to a public IP creation wizard. Begin at the **Project details** section and select the **subscription** and **resource group** you'd like to deploy your public IP in. ![Public IP - Azure Services Step 6](public-ip-azure-services-step-6.png) 7. Under **Instance details**, select the **region** you want to deploy this resource in. ![Public IP - Azure Services Step 7](public-ip-azure-services-step-7.png) 8. The **Configuration details** section contains all the properties that are specifically related to public IP addresses. In this example, we will leave everything as the default setting. ![Public IP - Azure Services Step 8](public-ip-azure-services-step-8.png) 9. Click **Next:Tags** at the bottom. 10. The **Tags** page will allow you to group and consolidate various resources by applying the same tag. We will not set up any tags for our example. ![Public IP - Azure Services Step 10](public-ip-azure-services-step-10.png) Once you are done with your tags, click **Next: Summary**. 11. Azure will now attempt to validate your settings, and will show a banner at the top of the page once validation is complete. Review the summary of your chosen settings. If you are satisfied with your choices, click **Create**.