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

Azure Automation is freezing if this module is used #100

Open
satyajit321 opened this issue Jun 17, 2021 · 2 comments
Open

Azure Automation is freezing if this module is used #100

satyajit321 opened this issue Jun 17, 2021 · 2 comments
Assignees

Comments

@satyajit321
Copy link

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
Copy link
Author

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

@p0w3rsh3ll
Copy link
Contributor

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

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

No branches or pull requests

4 participants