Credentials not accessible in early morning for Azure Automation

Anonymous
2021-10-05T14:31:12.91+00:00

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.
Windows for business | Windows Server | User experience | PowerShell
{count} votes

Answer accepted by question author
  1. Limitless Technology 40,076 Reputation points
    2021-10-06T11:02:39.047+00:00

    Hello,

    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
    $log.SaveChanges()

    https://learn.microsoft.com/en-us/powershell/scripting/dsc/troubleshooting/troubleshooting?view=powershell-7.1#what-do-dsc-logs-contain


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

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.