MSRC-Microsoft-Security-Updates-API
MSRC-Microsoft-Security-Updates-API copied to clipboard
Azure Automation is freezing if this module is used
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

Ever lasting dots continues
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
It's a specific problem related to AzureAutomation. Like you said, it seems to be unable to handle the Verbose stream.