Resources
Azure Resources
💡

Note:
To maintain consistency, ensure all resources are created in the same region, such as East US.

Create a Resource Group

  • In the search bar, enter Resource groups.
  • Open Resource groups and select Create.
  • Provide a name for the resource group (e.g., flyingduck-rg).
  • Choose a region (e.g., East US).
  • Click Review + Create, followed by Create.

Create a Network Security Group (NSG)

  • In the search bar, enter Network security groups.
  • Open Network security groups and select Create.
  • Select the previously created resource group (e.g., flyingduck-rg).
  • Specify a name for the Network Security Group.
  • Choose the region (e.g., East US).
  • Click Review + Create, followed by Create.

Add Inbound Rules

  • In the Settings section, open Inbound security rules.
  • Add the following rules:
  1. SSH (Port 22):

    • Click Add.
    • Set Source to Any.
    • Set Source port ranges to * (any).
    • Set Destination to Any.
    • Set Destination port ranges to 22.
    • Set Protocol to TCP.
    • Set Action to Allow.
    • Click Add.
  2. HTTPS (Port 443):

    • Click Add.
    • Set Source to Any.
    • Set Source port ranges to * (any).
    • Set Destination to Any.
    • Set Destination port ranges to 443.
    • Set Protocol to TCP.
    • Set Action to Allow.
    • Click Add.
  3. HTTP (Port 80):

    • Click Add.
    • Set Source to Any.
    • Set Source port ranges to * (any).
    • Set Destination to Any.
    • Set Destination port ranges to 80.
    • Set Protocol to TCP.
    • Set Action to Allow.
    • Click Add.

Add Outbound Rules

  • In the Settings section, navigate to Outbound security rules.
  • Confirm that the default rule Allow all traffic is enabled to permit all outbound traffic.

Create a Network Interface (NIC)

  • In the search bar, enter Network Interface.
  • Open Network Interface and select Create.
  • Select the previously created resource group (e.g., flyingduck-rg).
  • Specify a name for the Network Interface.
  • Choose the same region (e.g., East US).
  • Select the appropriate Virtual network and Subnet.
  • Set IP version to IPv4.
  • Set Private IP address assignment to Dynamic.
  • Click Review + Create, followed by Create.

Associate Network Security Group with Network Interface

  • After creating the network interface, navigate to Network interfaces.
  • Select the newly created network interface.
  • In the Settings section, open Network security group.
  • Associate the network interface with the previously created Network Security Group.
  • Save the changes.

Create an SSH Key

  • In the search bar, enter SSH.
  • Open SSH keys and select Create.
  • Select the same resource group (e.g., flyingduck-rg).
  • Choose the region (e.g., East US).
  • Specify a name for the SSH key.
  • Set SSH public key source to Generate new key pair.
  • For SSH Key Type, select RSA and SSH Format.
  • Click Review + Create, followed by Create.