{"id":22298110,"url":"https://github.com/suransandeepa/vnet-security-setup-azure","last_synced_at":"2026-06-16T16:31:30.165Z","repository":{"id":264421871,"uuid":"892231660","full_name":"SuranSandeepa/VNet-Security-Setup-Azure","owner":"SuranSandeepa","description":"This project implements Azure Virtual Networks, Network Security Groups (NSGs), Azure Firewall, Bastion, and VPN Gateway, enabling secure access and management of resources.","archived":false,"fork":false,"pushed_at":"2024-11-24T15:10:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T11:36:27.225Z","etag":null,"topics":["azure-vm","azure-vnet","bastion","nginx"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuranSandeepa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-21T18:27:14.000Z","updated_at":"2024-11-24T15:10:30.000Z","dependencies_parsed_at":"2025-10-06T11:26:47.249Z","dependency_job_id":"01fdc30c-53f9-4e93-91d3-86989209e98a","html_url":"https://github.com/SuranSandeepa/VNet-Security-Setup-Azure","commit_stats":null,"previous_names":["suransandeepa/vnet-security-setup-azure"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SuranSandeepa/VNet-Security-Setup-Azure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuranSandeepa%2FVNet-Security-Setup-Azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuranSandeepa%2FVNet-Security-Setup-Azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuranSandeepa%2FVNet-Security-Setup-Azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuranSandeepa%2FVNet-Security-Setup-Azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuranSandeepa","download_url":"https://codeload.github.com/SuranSandeepa/VNet-Security-Setup-Azure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuranSandeepa%2FVNet-Security-Setup-Azure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281397336,"owners_count":26493908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-vm","azure-vnet","bastion","nginx"],"created_at":"2024-12-03T17:59:44.548Z","updated_at":"2025-10-28T06:34:56.065Z","avatar_url":"https://github.com/SuranSandeepa.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VNet-Security-Setup-Azure\n\nThis repository contains the necessary instructions for setting up a secure network within Azure, including installing and configuring Nginx on an Ubuntu VM within the Azure Virtual Network (VNet). Below are the steps to install and configure Nginx on an Ubuntu VM hosted on Azure.\n\n## Steps to Install and Configure Nginx on Ubuntu (VM)\n\n### 1. **Access the VM Using Azure Bastion**\nTo access the VM securely, use Azure Bastion. Follow these steps to connect to your VM:\n   - Go to the Azure portal.\n   - Navigate to **Bastion** under your created VNet (e.g., `vnet-demo-network-Bastion`).\n   - Click **Connect**.\n   - Choose **SSH** as the authentication type.\n   - Use your **SSH private key** (e.g., `.pem` file) to authenticate.\n   - Enter the username (`azureuser`) and select the private key you downloaded when you created the VM.\n   - Click **Connect**. This will open a terminal session on the VM.\n\n### 2. **Update the Ubuntu System**\nOnce connected to your VM, it's important to update the package list and upgrade existing packages:\n```bash\nsudo su -\nsudo apt update\nsudo apt upgrade -y\n```\n\n### 3. Install Nginx\nNow, install Nginx on the Ubuntu VM:\n```bash\nsudo apt install nginx -y\n```\n\n### 4. Start and Enable Nginx\nAfter installation, start the Nginx service and enable it to start on boot:\n```bash\nsudo systemctl start nginx\nsudo systemctl enable nginx\n```\n\n### 5. Create and Configure the HTML File\nCreate a simple static HTML page that will be served by Nginx. You can edit the default HTML file or create a new one:\n```bash\nsudo vim /var/www/html/index.html\n```\nAdd your HTML content to this file. You can find the HTML code used in this project in the repository. If you'd like to see the exact HTML content I used, you can access it directly in the index.html file of this repository\nSave and exit the editor by pressing Esc then typing :wq and pressing Enter.\n\n### 6. Restart Nginx to Apply Changes\nTo ensure Nginx picks up the changes to the HTML file, restart the Nginx service:\n\n```bash\nsudo systemctl restart nginx\n```\n### 7. Verify Nginx Installation\nTo verify that Nginx is serving the page correctly, run the following command from the Bastion terminal:\n\n```bash\ncurl localhost:80\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuransandeepa%2Fvnet-security-setup-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuransandeepa%2Fvnet-security-setup-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuransandeepa%2Fvnet-security-setup-azure/lists"}