Update: Microsoft will be moving away from UserVoice sites on a product-by-product basis throughout the 2021 calendar year. We will leverage 1st party solutions for customer feedback. Learn more here.


My feedback

  1. 6 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Automation » Desired State Configuration  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    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