Update Management - Run Script with Run Command

This script is intended to be run as a part of Update Management Pre/Post scripts.It will run a script locally on an Azure VM using the Run Command functionality. It requires the module "ThreadJob" from the PowerShell Gallery.

 
 
 
 
 
4 Star
(1)
2,194 times
Add to favorites
Windows Azure
9/22/2018
E-mail Twitter del.icio.us Digg Facebook
  • Script Fails to Run ,tried even with Get service command
    1 Posts | Last post July 25, 2019
    • I have tried multiple different PS commandlet,Even Get-service all failed with error below
      
      "Invoke-AzureRmVMRunCommand : Long running operation failed with status 'Failed'. Additional Info:'VM has reported a failure when processing extension 'RunCommandWindows'. Error message: "Finished executing command".' ErrorCode: VMExtensionProvisioningError ErrorMessage: VM has reported a failure when processing extension 'RunCommandWindows'. Error message: "Finished executing command".OperationID: 14acafee-0e15-4c43-88dc-1b8fd0ad022c Status: Failed At line:1 char:46 + ... scriptPath) Invoke-AzureRmVMRunCommand -ResourceGroupName $resourceGr ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Invoke-AzureRmVMRunCommand], ComputeCloudException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Automation.InvokeAzureRmVMRunCommand"