none
Trouble using Azure Automation to connect to an Azure VM RRS feed

  • Question

  • Hello,

    I've been trying to figure out how to run powershell scripts from Azure Automation against Azure VMs in my environment.  Following the steps at https://blogs.technet.microsoft.com/heyscriptingguy/2016/11/08/part-3-how-to-avoid-reinventing-the-wheel-in-azure-automation I have a question for you... what is the "ServiceName" parameter for?  I want to connect to a class VM, not a Cloud service.  

    The script is failing at the Add-AzureAccount line:

        $AzureOrgIdCredential = Get-AutomationPSCredential -Name $AzureOrgIdCredentialAsset 
        Add-AzureAccount -Credential $AzureOrgIdCredential | Write-Verbose

    Thanks for any help and insight.

    -Travis

    • Moved by Bill_Stewart Tuesday, November 7, 2017 10:17 PM Off-topic/abandoned
    Wednesday, September 27, 2017 4:23 PM