question

TomJoyce-6178 avatar image
0 Votes"
TomJoyce-6178 asked LimitlessTechnology-2700 answered

Credentials not accessible in early morning for Azure Automation

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

windows-server-powershellazure-automation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TomJoyce-6178 ,

Thanks for bringing this issue to our attention, We apologize for the inconvenience this issue may have caused.

Where you using Get-AutomationPSCredential in an Azure sandbox environment or on a Windows Hybrid Runbook Worker?
When did you start experiencing this issue? Can you please share the full error message you received this morning? We will check internally with the engineering team to see what is causing this issue and get back to you.

Best,
Grace

0 Votes 0 ·

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

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://docs.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--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.