ECSA102 BLOB BCA 2026 CORE CONCEPT
LEARNING SCRIPT
◉ Powershell - Command to create a new virtual network and store
it as a variable $NewVnet. Answer: $NewVnet = New-
AzVirtualNetwork -Name <ex. Alpha> -ResourceGroupName
<ex.IT_Tech_Dept> -Location <eastus> -AddressPrefix
"10.20.0.0/16"
◉ Powershell - Get-Command <search words>. Answer: this cmdlet
searches the database for a command that matches your search
keyword
◉ what is a subnet?. Answer: A logical division of your network
(Vnet)
A Vnet can have many subnets
Subnets cannot have the same or overlapping CIDR blocks if they
exist in the same Vnet
◉ Powershell - Command to add a subnet to your virtual network
and make it a variable $NewSubnet. Answer: $NewSubnet = Add-
AzVirtualNetworkSubnetconfig -Name <name> -VirtualNetwork
$NewVnet -AddressPrefix 10.20.30.0/24 -
,◉ Portal - How to attach a NIC to a VM. Answer: VM > Networking >
Attach Network Interface
You cannot attach a NIC to a VM while its running, it must be
stopped
A VM can have an IP from subnet 1 going to one NIC and an IP from
subnet 2 going to another NIC
◉ Private IP addresses are used for communication ___________ the
Azure Vnet.. Answer: within
-a private IP address will also be used with communication from the
vnet to an on prem network
◉ Public IP addresses are used for communication with the
__________. Answer: internet
◉ A private IP address can be associated with 3 devices. Answer: VM
Internal Load Balancer
Application Gateway
Dynamic and static supported
◉ A public IP address can be associated with 4 devices. Answer: VM
Load Balancer
VPN Gateway - no static option
,Application Gateway - no static option
◉ Creating a public IP address types - Basic. Answer: Static or
Dynamic options
Security is open by default
Resources are NICs, VPN GWs, App GWs, and internet facing LBs
Not zone redundant
◉ Creating a public IP address types - Standard. Answer: Static IP
only
Security has closed inbound traffic by default
Resources are NICs or Public standard LBs
Zone redundant by default
◉ How to assign a Public IP address you just created to a VM or LB?.
Answer: Search for "public ip addresses"
click on the public ip address listed that you just created
Click associate to assign it a VM or LB
Click dissociate to un assign the public ip address
◉ Powershell - Command to retrieve all network interfaces info in
your subscription. Answer: Get-AzNetworkInterface
, ◉ Powershell - Get-AzNetworkInterface | select Name. Answer:
Shows you as list of all the network interface cards in your
subscription
the piped portion selects just the Name of the NICs and lists only
those names
◉ Powershell - Get-AzNetworkInterface -Name <NIC name> -
ResourceGroupName <RG name>. Answer: gives you networking
information about a specific NIC
◉ Powershell - $nic.IpConfigurations - what is the .Configurations
part called?. Answer: an attribute
◉ Powershell - Commands to set a specific NIC's IP address to static.
Answer: $nic = Get-AzNetworkInterface -Name <NIC> -
ResourceGroup Tech_IT
$nic.IpConfigurations.PrivateIpAllocationMethod - "static"
Set-AzNetworkInterface -NetworkInterface $nic
◉ Powershell - #. Answer: comment out
◉ Service Endpoints. Answer: Azure VMs can interact with Azure
Paas Services like SQL and Storage accounts as if they are apart of
the same Virtual Network rather than using the public internet
LEARNING SCRIPT
◉ Powershell - Command to create a new virtual network and store
it as a variable $NewVnet. Answer: $NewVnet = New-
AzVirtualNetwork -Name <ex. Alpha> -ResourceGroupName
<ex.IT_Tech_Dept> -Location <eastus> -AddressPrefix
"10.20.0.0/16"
◉ Powershell - Get-Command <search words>. Answer: this cmdlet
searches the database for a command that matches your search
keyword
◉ what is a subnet?. Answer: A logical division of your network
(Vnet)
A Vnet can have many subnets
Subnets cannot have the same or overlapping CIDR blocks if they
exist in the same Vnet
◉ Powershell - Command to add a subnet to your virtual network
and make it a variable $NewSubnet. Answer: $NewSubnet = Add-
AzVirtualNetworkSubnetconfig -Name <name> -VirtualNetwork
$NewVnet -AddressPrefix 10.20.30.0/24 -
,◉ Portal - How to attach a NIC to a VM. Answer: VM > Networking >
Attach Network Interface
You cannot attach a NIC to a VM while its running, it must be
stopped
A VM can have an IP from subnet 1 going to one NIC and an IP from
subnet 2 going to another NIC
◉ Private IP addresses are used for communication ___________ the
Azure Vnet.. Answer: within
-a private IP address will also be used with communication from the
vnet to an on prem network
◉ Public IP addresses are used for communication with the
__________. Answer: internet
◉ A private IP address can be associated with 3 devices. Answer: VM
Internal Load Balancer
Application Gateway
Dynamic and static supported
◉ A public IP address can be associated with 4 devices. Answer: VM
Load Balancer
VPN Gateway - no static option
,Application Gateway - no static option
◉ Creating a public IP address types - Basic. Answer: Static or
Dynamic options
Security is open by default
Resources are NICs, VPN GWs, App GWs, and internet facing LBs
Not zone redundant
◉ Creating a public IP address types - Standard. Answer: Static IP
only
Security has closed inbound traffic by default
Resources are NICs or Public standard LBs
Zone redundant by default
◉ How to assign a Public IP address you just created to a VM or LB?.
Answer: Search for "public ip addresses"
click on the public ip address listed that you just created
Click associate to assign it a VM or LB
Click dissociate to un assign the public ip address
◉ Powershell - Command to retrieve all network interfaces info in
your subscription. Answer: Get-AzNetworkInterface
, ◉ Powershell - Get-AzNetworkInterface | select Name. Answer:
Shows you as list of all the network interface cards in your
subscription
the piped portion selects just the Name of the NICs and lists only
those names
◉ Powershell - Get-AzNetworkInterface -Name <NIC name> -
ResourceGroupName <RG name>. Answer: gives you networking
information about a specific NIC
◉ Powershell - $nic.IpConfigurations - what is the .Configurations
part called?. Answer: an attribute
◉ Powershell - Commands to set a specific NIC's IP address to static.
Answer: $nic = Get-AzNetworkInterface -Name <NIC> -
ResourceGroup Tech_IT
$nic.IpConfigurations.PrivateIpAllocationMethod - "static"
Set-AzNetworkInterface -NetworkInterface $nic
◉ Powershell - #. Answer: comment out
◉ Service Endpoints. Answer: Azure VMs can interact with Azure
Paas Services like SQL and Storage accounts as if they are apart of
the same Virtual Network rather than using the public internet