i need powershell commands ,no need of any explaination in azure portal

techgiant 1 Reputation point
2021-10-09T05:24:46.837+00:00

How to Check/Find whether Server is added to Azure Monitor or Not.

Is there any Open Alarm/ Health issue reported in Monitor

How to Check/Find wheather Server is added to Log Analytics.

How to Check DMZ Configuration (if any)

How to Check/Find % Compliance in Azure Security Center

How to Check/Find Dependency agent installed on VM and status Healthy.

How to Check/Find/verify All VM extensions in provisioned state

How to Check/Find/verify the Server last 2 Backups

Find Firewall Inbound/Outbound Rules

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,803 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. kobulloc-MSFT 23,416 Reputation points Microsoft Employee
    2021-10-09T23:26:47.757+00:00

    Hello, @techgiant !

    The Azure PowerShell documentation has a full list of modules and cmdlets that you can reference:

    https://learn.microsoft.com/en-us/powershell/module/?view=azps-6.4.0

    So for example, if you were looking for a way to check VM extensions you would look under Az.Compute for Get-AzVM:

    Get-AzVM -ResourceGroupName "myResourceGroup" -VMName "myVM"  
    

    139150-image.png

    If you wanted you could drill down further and get more information on Extensions:

    $vm = Get-AzVM -ResourceGroupName "myResourceGroup" -VMName "myVM"  
    $vm.Extensions | select Publisher, VirtualMachineExtensionType, TypeHandlerVersion  
    

    139149-image.png

    0 comments No comments

  2. Limitless Technology 39,356 Reputation points
    2021-10-13T08:17:36.98+00:00

    Hi there,

    I hope all of this can be done by configuring alerts with Azure Monitor from Windows Admin Center. Azure Monitor is a solution that collects, analyzes, and acts on telemetry from a variety of resources, including Windows Servers and VMs, both on-premises and in the cloud.
    https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/azure/azure-monitor

    ------------------------------------------------------------------------------------------------------------------------

    If the reply is helpful, please Upvote and Accept it as an answer

    0 comments No comments