azureautomation/update-management-turn-on-vms

Error

Opened this issue · 0 comments

Job stream details
Get-AzResource : Could not convert string to DateTimeOffset: 1706089004. Path 'expires_on', line 1, position 1591. At line:104 char:23 + ... nResource = Get-AzResource -ResourceType Microsoft.Automation/Automat ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzResource], JsonReaderException + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureResourceCmdlet

Cannot index into a null array. At line:140 char:5 + $state = ($vm.Statuses[1].DisplayStatus -split " ")[1] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray

Get-AzVM : Could not convert string to DateTimeOffset: 1706089007. Path 'expires_on', line 1, position 1591. At line:137 char:11 + $vm = Get-AzVM -ResourceGroupName $rg -Name $name -Status -Defaul ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzVM], JsonReaderException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.GetAzureVMCommand

New-AzAutomationVariable : Cannot validate argument on parameter 'ResourceGroupName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At line:118 char:45 + New-AzAutomationVariable -ResourceGroupName $ResourceGroup -Automatio ... + ~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [New-AzAutomationVariable], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.Automation.Cmdlet.NewAzureAutomationVariable