MSRC-Microsoft-Security-Updates-API icon indicating copy to clipboard operation
MSRC-Microsoft-Security-Updates-API copied to clipboard

Azure Automation is freezing if this module is used

Open satyajit321 opened this issue 4 years ago • 2 comments

I was able to import the module without any issues and its shows in the Modules section 1.9.5 The script works fine locally, however inside Azure Automation it keeps on loading.

Any reference to this module, gets into a hung state.

#Script sample - ModuleTester
gcm Get-Mailbox

Get-Module ExchangeOnlineManagement
Get-Command -Module ExchangeOnlineManagement

Get-Module

#Below section causes the issue

#Install-Module MSRCSecurityUpdates -Force
#Import-Module MSRCSecurityUpdates

Get-Module MSRCSecurityUpdates

Get-Command -Module MSRCSecurityUpdates

image

Ever lasting dots continues

satyajit321 avatar Jun 17 '21 10:06 satyajit321

Post further testing there seems to be issue with the Verbose switch in AzureAutomation. It runs fine locally.

$monthOfInterest = "2021-May"

#This one run smoothly
Get-MsrcCvrfDocument -ID $monthOfInterest

#This one get's stuck
Get-MsrcCvrfDocument -ID $monthOfInterest -Verbose

satyajit321 avatar Jun 17 '21 12:06 satyajit321

It's a specific problem related to AzureAutomation. Like you said, it seems to be unable to handle the Verbose stream.

p0w3rsh3ll avatar Jul 17 '21 15:07 p0w3rsh3ll