Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AZAutomationVariabl was not found - VMs not turning off #5

Open
LickingLama opened this issue Aug 28, 2023 · 0 comments
Open

AZAutomationVariabl was not found - VMs not turning off #5

LickingLama opened this issue Aug 28, 2023 · 0 comments

Comments

@LickingLama
Copy link

LickingLama commented Aug 28, 2023

I am using both the turn on and turn off version from the runbook gallery. All scheduled VMs start propperly, but wont shutdown after the updates succeeded. I took a look at the stop vm runbook in the history looking for errors and found the following:

Get-AzAutomationVariable : The variable was not found. Variable name PrescriptContext7c837cc6-3f00-4818-b9ac-8f1c0b36ea4f. At line:95 char:13 + $variable = Get-AzAutomationVariable -Name $runId -ResourceGroupName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzAutomationVariable], ResourceNotFoundException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.GetAzureAutomationVariable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant