Credentials not accessible in early morning for Azure Automation

Tom Joyce 61 Reputation points

On some of my runbooks I am receiving the below error but when the runbook runs again an hour later it is fine. Is there an outage window I need to be aware of for Azure Automation or what could be happening to web service?

Get-AutomationPSCredential : A webservice exception occured. Response Code: Unused

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,184 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,448 questions
{count} votes

Accepted answer
  1. Limitless Technology 39,506 Reputation points


    I would suggest in addition to dig in the View DSC logs on your node.

    In Event Viewer, DSC events are in: Applications and Services Logs/Microsoft/Windows/Desired State Configuration

    The corresponding PowerShell cmdlet, Get-WinEvent, can also be run to view the event logs:

    PS C:\> Get-WinEvent -LogName "Microsoft-Windows-Dsc/Operational"

    ProviderName: Microsoft-Windows-DSC

    TimeCreated Id LevelDisplayName Message

    11/17/2014 10:27:23 PM 4102 Information Job {02C38626-D95A-47F1-9DA2-C1D44A7128E7} :

    The log name for the analytic channel is Microsoft-Windows-Dsc/Analytic, and the debug channel is Microsoft-Windows-Dsc/Debug

    You can also use the wevtutil utility to enable the logs, as shown in the following example.

    wevtutil.exe set-log "Microsoft-Windows-Dsc/Analytic" /q:true /e:true

    Or, use PowerShell and .NET to enable the logs as shown in the following example:

    $logName = 'Microsoft-Windows-Dsc/Analytic'
    $log = New-Object System.Diagnostics.Eventing.Reader.EventLogConfiguration $logName
    $log.IsEnabled = $true

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

    0 comments No comments

0 additional answers

Sort by: Most helpful