So here is how you enable or allow ping (ICMP) to an Azure VM. Click on add a new inbound port rule for the Azure network security group (NSG). Change the protocol to ICMP. As you can see, you can also limit the sources which can make use of that rule, as well as change the name and description.
ICMP is a network-layer protocol. There is no TCP or UDP port number associated with ICMP packets as these numbers are associated with the transport layer above.
What Port Does Ping Use? Remember that a ping test uses ICMP, so there are no real ports being used. ICMP basically roofs, or sits on top of, the IP address. Therefore it is not a layer four protocol.
Troubleshoot using the Azure portal
- Reset your RDP connection.
- Verify Network Security Group rules.
- Review VM boot diagnostics.
- Reset the NIC for the VM.
- Check the VM Resource Health.
- Reset user credentials.
- Restart your VM.
- Redeploy your VM.
To do that,
- Log in to Azure portal (azure.com) as Global Administrator.
- Go to Virtual Machines.
- From the VM list, click on the Windows server 2019 VM we created in the earlier step.
- In VM properties page, verify it doesn't have public IP assigned.
- To test the bastion service, click on Connect.
When setting up your Virtual machine you can assign it an "Instance IP address". Once that has been configured, you can enabled ICMP in and out in the local firewall. You will then be able to ping out of your Azure VM and also use tools like "traceroute".
Windows Firewall
- Search for Windows Firewall , and click to open it. Note:
- Click Advanced Settings on the left.
- From the left pane of the resulting window, click Inbound Rules.
- In the right pane, find the rules titled File and Printer Sharing (Echo Request - ICMPv4-In).
- Right-click each rule and choose Enable Rule.
Log into the VM and go to Control Panel > System and Security > Windows Firewall > Allowed Apps. Then check all of the boxes next to "File and Printer Sharing" to enable file sharing. This should allow you to ping the VM.
put the network adapter on bridge for the virtual machine (right click on virtual machine, select settings, then network adapter. click on bridge (connected directly to the physical network)… 2. use a DHCP setting for your virtual machine, or put manual an IP from the same class with the HOST.
In the vSphere Client Inventory, right-click the virtual machine and click Edit Settings. Click the Hardware tab. Select VMCI device and select Enable VMCI Between VMs. Click OK.
Log into the VM and go to Control Panel > System and Security > Windows Firewall > Allowed Apps. Then check all of the boxes next to "File and Printer Sharing" to enable file sharing. This should allow you to ping the VM. The screenshot below is from a 2016 Windows Server but the same method will work on older ones.
What is a Ping?How do I Ping something?
- To ping in Windows, go to Start -> Programs -> Accessories -> Command Prompt. Then type "ping google.com" and press Enter.
- In Mac OS X, go to Applications -> Utilities -> Terminal. Then type "ping -c 4 google.com" and press Enter.
How to Ping a Website Using Either Windows or Mac Operating Systems
- Hold down the Windows key and the R key at the same time.
- In the RUN box, type in CMD and press OK. The Command Prompt will appear. Type in the address (or IP address you wish to ping). (In this example it was 10.0. 0.2), and hit Enter.
Follow these steps to add a host virtual adapter on a Windows host.
- Go to Edit > Virtual Network Settings > Host Virtual Adapters.
- Click Add new adapter.
- Choose the virtual network on which you want to use the adapter and click OK.
- Click Apply.
- Click OK to close the Virtual Network Editor.
To connect two virtual machines to each other, use the Internal Network interface type. Select one of the virtual machines in the VirtualBox Manager window and click on Settings. Then, in the settings window, click on Network. In the example below, you will configure Network Adapter 2 on the Router-1 virtual machine.
Create a Load Balancer rule
- Select All services in the left-hand menu, select All resources, and then click myLoadBalancer from the resources list.
- Under Settings, click Load balancing rules, then click Add.
- Use these values to configure the load-balancing rule: Table 3.
- Leave the rest of the defaults and select OK.
Get-AzureRmLoadBalancer cmdlet
The backend pool is a critical component of the load balancer. The backend pool defines the group of resources that will serve traffic for a given load-balancing rule. There are two ways of configuring a backend pool: Network Interface Card (NIC) Combination of IP address and Virtual Network (VNET) Resource ID.
Enable logging
- In the portal, click Resource groups.
- Select <resource-group-name> where your load balancer is.
- Select your load balancer.
- Select Activity log > Diagnostic settings.
- In the Diagnostics settings pane, under Diagnostics settings, select + Add diagnostic setting.
By default, the Standard SKU is used when you create an Azure Kubernetes Service(AKS) cluster. Using a Standard SKU load balancer, it offers more features and functionality, such as a larger backend pool size and Availability Zones.
Floating IP is Azure's terminology for a portion of what is known as Direct Server Return (DSR). 2. An IP address-mapping scheme at a platform level. Azure Load Balancer always operates in a DSR flow topology whether floating IP is enabled or not.
Azure Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications. This type of routing is known as application layer (OSI layer 7) load balancing. Azure Application Gateway can do URL-based routing and more.
When setting up an Azure Load Balancer, you configure a health probe that your load balancer can use to determine if your instance is healthy. If your instance fails its health probe enough times, it will stop receiving traffic until it starts passing health probes again.
To get the health probe status for your Standard Load Balancer resources:
- Select the Health Probe Status metric with Avg aggregation type.
- Apply a filter on the required Frontend IP address or port (or both).
View performance directly from an Azure VM
- In the Azure portal, select Virtual Machines.
- From the list, choose a VM and in the Monitoring section choose Insights.
- Select the Performance tab.
Monitor VM in Azure Management Portal.
- Step 1 − Login to Azure Management Portal.
- Step 2 − Go to Virtual Machine.
- Step 3 − Select the virtual machine you want to monitor.
- Step 4 − Select Monitor from the top menu as shown in following image.
- Step 1 − Switch to the 'preview portal'.
So, hopefully, now, it is clear that Azure Monitor is the tool to get the data from the Azure resources, and Log Analytics is the tool to query that data if you want to query over multiple resources.
You can access monitoring data collected from your resource from a command line or include in a script using Azure PowerShell or Azure Command Line Interface.
- See CLI metrics reference for accessing metric data from CLI.
- See CLI Log Analytics reference for accessing Azure Monitor Logs data using a log query from CLI.
In the Monitor tab of the vSphere Web Client, the stacked line chart on the host Virtual Machine view shows the CPU usage for virtual machines on the host.
CPU Time: The amount of CPU consumed by each app in seconds, because one of their quotas is defined in CPU minutes used by the app. Its calculated over one application uses.
Azure Monitor maximizes the availability and performance of your applications and services by delivering a comprehensive solution for collecting, analyzing, and acting on telemetry from your cloud and on-premises environments. Detect and diagnose issues across applications and dependencies with Application Insights.
Go to specific azure resource such as web app and than click on Diagnose and solve problem -> Availability and Performance -> CPU Usage.
Select the
container. Click “Folder Statistics” button.
Calculate the size/capacity of storage account and it services (Blob/Table)
- Sign in to the Azure portal.
- Select Monitor from the left-hand pane in the Azure portal, and.
- Under the Insights section, select Storage Accounts (preview).