Posts

Showing posts from August, 2019

PowerShell: Azure Traffic Manager Profiles with Endpoint details

Image
Here is a PowerShell snippet to query Azure Traffic Managers with endpoint details. The script uses PowerShell Az modules so that it is compatible with both Standard PowerShell and PowerShell Core. The script uses the Azure Resource Graph query to get the resource details. $ trafficManagerQuery = " where type =~ 'microsoft.network/trafficmanagerprofiles' " $ trafficeManagers = Search-AzGraph - Query $ trafficManagerQuery $ resultTM = @ () foreach ($ tm in $ trafficeManagers ) {      $ endPoints = $ tm.properties.endpoints      foreach ($ endPoint in $ endPoints )      {          $ edTagetQuery = " where id =~ '{0}' " -f $ endPoint.properties.targetResourceId          $ endTarget = Search-AzGraph - Query $ edTagetQuery          $ customObjProperties = [ ord...

PowerShell: Check Windows OS Version

Image
Here is a PowerShell script to get the OS details of Windows Machines. The script makes use of CIM cmdlets. The script also provides uptime information. function Get-cOSInfo { <# . SYNOPSIS PowerShell script to collect OS information . DESCRIPTION Get the OS, edition, and build version of Windows Servers . PARAMETER ComputerName Accepts a list of computer names or IP addresses . EXAMPLE Get-cOSInfo -ComputerName Server1,server2 . LINK https://www.posh-scripts.in.net/2019/08/check-windows-os-version.html #> [ CmdletBinding ()] Param ( # A computer name or list of computer names [ Parameter ( Mandatory = $ False , ValueFromPipelineByPropertyName = $ true , Position = 0 )] [ string []]$ ComputerName = ' localhost ' , [ Parameter ( Mandatory = $ False , ValueFromPipelineByPropertyName = $ false , Position = 1 )] [ ValidateNotNull ()] [...

Azure: Learning Resources

Image
image credit: Microsoft I am trying to curate some useful resources to get started with Azure. As Azure is a platform that is consistently evolving I hope I can keep up with the changes in real-time and share that info with all through this post. Official Documentation Azure Resources Architecture References Microsoft Learn Portal Hands-On Labs Azure Portal Navigation VM and Compute Azure Networking Concepts Azure Storage Accounts Azure Administration for AWS Admins Edx Azure Courses Azure Certifications