Lädt...


🔧 Creating a Windows VM on Azure and Installing Windows Server (IIS) on it


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

In the previous resource, we discussed how to create a Linux VM and install nginx on it; now let's consider a Windows VM. Setting up a Windows VM can help you meet these needs without the overhead of managing physical hardware. This guide will walk you through the process of creating a Windows VM on Azure and installing Windows Server on it. By the end, you’ll have a fully functional Windows Server environment, ready for any application or workload you want to deploy. Let’s dive into the setup!

Step-by-Step Guide to Creating a Windows VM on Azure and Installing Windows Server on it

Step 1: Create a New Virtual Machine (VM)

  • From the list of search results, click on the Virtual Machine option. The best option is usually highlighted.
    Virtual Machine

  • Click the Create button to start the virtual machine creation process. Choose Create a virtual machine hosted by Azure.
    Create

  • Select the appropriate subscription and create a resource group by clicking the Create resource group button. Give both the Resource group and the VM a name.
    Create resource group

Step 2: Configure the Virtual machine (VM)

  • Provide other information about your virtual machine, such as the operating system (Windows Server Datacenter -x64 G2), size, and other configuration settings. Leave other options as default.
    operating system

  • Create an Administrator Account. Use Azureuser for the username and password123 for the password.

  • Select Inbound Port Rules. Select RDP for a Windows VM. This allows IP addresses to connect to the VM. Also select HTTP, which would help connect your virtual machine to the web.
    Administrator Account

  • Click Next until you reach the Boot Diagnostics in the Monitoring tab, then click on Disable.
    Boot Diagnostics

  • Click Next to the tags tab and then give the VM a tag name, then click Review + Create.
    Review + Create

  • Click on the Create button. If the validation passes, the deployment will proceed. If not, note any recommendations, fix them, and try again. Deployment might take 3-5 minutes.
    Create
    Go to resource

Step 3: Access the Windows Virtual machine

  • Once the virtual machine is deployed, click on the Connect button in the Overview of the virtual machine blade in the Azure portal.

  • Click Native RDP, select, and wait for the configured sign to be displayed on the right-hand side. Download the RDP file.
    Access the Windows VM

  • Open the RDP file from your local computer and click on Connect. Enter the Admin Details created during the VM setup.
    Connect

  • Follow the prompt and click Continue. Use the username and password created for the admin section.
    admin details

  • Once the connection is successful, start using your virtual machine!
    successful

Step 4: Install Additional Windows Server Roles (IIS)

  • Click on the Start menu.
  • Type PowerShell and open Windows PowerShell as an administrator (right-click and select Run as administrator).
    PowerShell

  • Run the following command to install the IIS role and management tools:

Install-WindowsFeature -name Web-Server -IncludeManagementTools

PowerShell

PowerShell

  • If you need specific role services, you can specify them using their feature names. For example:
Install-WindowsFeature -name Web-Server, Web-WebServer, Web-Common-Http, Web-Default-Doc, Web-Dir-Browsing, Web-Http-Errors, Web-Static-Content, Web-Health, Web-Http-Logging, Web-Request-Monitor, Web-Performance, Web-Stat-Compression, Web-Security, Web-Filtering, Web-Basic-Auth, Web-Windows-Auth, Web-App-Dev, Web-Net-Ext, Web-ASP, Web-CGI, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Mgmt-Tools, Web-Mgmt-Console, Web-Mgmt-Service -IncludeManagementTools

  • You can verify that IIS has been installed by opening a web browser and navigating to http://localhost. You should see the default IIS welcome page.

  • Or just paste the IP address of the VM in a browser and verify that you installed the webserver.

verify

verify

By following these steps, you’ve successfully created a Windows VM on Azure and installed Windows Server. This setup can now be customized based on your needs—whether it's hosting enterprise applications, setting up a database, or managing services. You now have a powerful Windows Server environment that can scale as your requirements grow.

Thank you for reading my blog.😊😊

If you need further assistance, feel free to reach out in the comment or hit me up on Twitter. You can also follow me on GitHub. My DM's are open and love discussions on cloud topics!😁

...

🔧 Creating a Windows VM on Azure and Installing Windows Server (IIS) on it


📈 44.07 Punkte
🔧 Programmierung

📰 IIS Security: How to Harden a Windows IIS Web Server in 10 Steps | UpGuard


📈 32.03 Punkte
📰 IT Security Nachrichten

🔧 Enable IIS 6 Metabase and IIS Configuration Compatibility in Windows 11


📈 30.41 Punkte
🔧 Programmierung

📰 What Is IIS (Internet Information Services) or Windows Web – IIS Alternatives


📈 29.1 Punkte
🖥️ Betriebssysteme

🕵️ Microsoft IIS 5.0 IIS _VTI_BOT unknown vulnerability


📈 28.17 Punkte
🕵️ Sicherheitslücken

📰 IIS-Raid - A Native Backdoor Module For Microsoft IIS (Internet Information Services)


📈 28.17 Punkte
📰 IT Security Nachrichten

🔧 HOW TO SECURE A WINDOWS SERVER WITH IIS AND AZURE NETWORK SECURITY FEATURES


📈 24.87 Punkte
🔧 Programmierung

🔧 Setting Up a Windows Web Server on Azure with IIS


📈 23.56 Punkte
🔧 Programmierung

🔧 How to Create a Window Server Virtual Machine and install and IIS Web server role on the VM


📈 22.57 Punkte
🔧 Programmierung

🕵️ CVE-2023-36434 | Microsoft Windows up to Server 2022 IIS Server Remote Code Execution


📈 20.87 Punkte
🕵️ Sicherheitslücken

🔧 Azure Storage Account: A Guide To Creating an Azure Storage Account and a Blob Storage Container.


📈 20.7 Punkte
🔧 Programmierung

🔧 Azure | Creating an Azure Storage Account and Uploading Files to a Container


📈 20.7 Punkte
🔧 Programmierung

🔧 Effortless Kubernetes Management: Creating and Scaling Workloads on Azure AKS with Azure CLI


📈 20.7 Punkte
🔧 Programmierung

🐧 Many, many people hated me before for installing Ubuntu 16.10 so I'm now installing 19.0.


📈 20.25 Punkte
🐧 Linux Tipps

🐧 Many, many people hated me before for installing Ubuntu 16.10 so I'm now installing 19.0.


📈 20.25 Punkte
🐧 Linux Tipps

🎥 Azure SQL VM: Azure Backup & restore for SQL Server on Azure Virtual Machines - Ep10 | Data Exposed


📈 19.79 Punkte
🎥 Video | Youtube

🎥 Creating a GraphQL Server, Part 3: Publishing a GraphQL Server to Azure Functions


📈 19.63 Punkte
🎥 Video | Youtube

🎥 Creating a GraphQL Server, Part 2: Publishing a GraphQL Server to Azure App Service


📈 19.63 Punkte
🎥 Video | Youtube

🔧 A tour of CLI tools for installing Java and creating projects


📈 19.59 Punkte
🔧 Programmierung

🔧 Creating a Linux VM and installing nginx on it


📈 19.59 Punkte
🔧 Programmierung

🔧 Creating a Linux VM and installing nginx on it


📈 19.59 Punkte
🔧 Programmierung

🔧 Creating a Linux VM and installing nginx on it


📈 19.59 Punkte
🔧 Programmierung

🔧 NgSysV2-2.1: Installing Sveltekit and creating a simple all-HTML webapp


📈 19.59 Punkte
🔧 Programmierung

🎥 Unleashing the Power of Azure: Azure Migrate and Modernize and Azure Innovate


📈 19.48 Punkte
🎥 Video | Youtube

🎥 Benefit from SQL VM Resource Provider when self-installing SQL Server on Azure | Data Exposed


📈 18.68 Punkte
🎥 Video | Youtube

🔧 Benefit from SQL VM Resource Provider when self-installing SQL Server on Azure | Data Exposed


📈 18.68 Punkte
🔧 Programmierung

🔧 🌐 AWS and Terraform in Action: Build Your First IIS Web Server on EC2


📈 18.33 Punkte
🔧 Programmierung

🎥 Python For Ethical Hacking - #2 - Installing Pycharm & Creating Our First Script


📈 18.28 Punkte
🎥 IT Security Video

📰 Installing and Configuring Microsoft SharePoint Server on Windows Server


📈 18.22 Punkte
🖥️ Betriebssysteme

🎥 Azure Container Registry Tasks: Build and deploy to Azure App Service | Azure Friday


📈 18.17 Punkte
🎥 Video | Youtube

matomo