My feedback

  1. 6 votes
    Sign in
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Automation » Desired State Configuration  ·  Flag idea as inappropriate…  ·  Admin →
    kubilay commented  · 

    Adding VM's Resource Group Name column into the DSC Nodes blade in the Portal may help.
    Below is PS script which adds VM Resource Group Name as the first column.
    Hope this helps until the Portal is updated.

    1. Please save the below script as file name Get-AzureRmAutomationDscNode-WithVMsRGName.ps1.
    2. Then run it in a local PowerShell windows as:
    .\Get-AzureRmAutomationDscNode-WithVMsRGName.ps1 -AutomationResourceGroupName YourAutomationRGName -AutomationAccountName YourAutomationAccountName

    [Parameter(Mandatory = $true)]
    [String] $AutomationResourceGroupName,

    [Parameter(Mandatory = $true)]
    [String] $AutomationAccountName
    import-module AzureRM.profile -MinimumVersion 4.0.0

    Import-Module AzureRM.Automation
    Import-Module AzureRM.Network

    $dscNodes = Get-AzureRmAutomationDscNode -ResourceGroupName $AutomationResourceGroupName -AutomationAccountName $AutomationAccountName
    $dscNodesWithRgName = @()
    foreach($dscNode in $dscNodes)
    $ipOfDsc = $dscNode.IpAddress.Split(";")[0]
    $vmRgName = (Get-AzureRmNetworkInterface | where { $_.IpConfigurations.PrivateIpAddress -eq "$ipOfDsc" }).ResourceGroupName

    $dscNode | Add-Member -NotePropertyName VmRgName -NotePropertyValue $vmRgName
    $dscNodesWithRgName += $dscNode
    $dscNodesWithRgName | select -Property VmRgName,Name,Status, NodeConfigurationName,LastSeen | ft

Feedback and Knowledge Base