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

AzureLogAnalytics target generates an error when no Body provided #101

Closed
Glober777 opened this issue Jun 5, 2020 · 0 comments
Closed

Comments

@Glober777
Copy link
Contributor

Hi,

I've noticed that AzureLogAnalytics target (in module version 4.3.2) produces an error when no Body property is provided:
A hash table can only be added to another hash table.

Here's a simple repro script:

Import-Module Logging

Add-LoggingTarget -Name AzureLogAnalytics -Configuration @{
    WorkspaceID = 'some-workspace-id';
    SharedKey = 'some-Shared-Key';
    LogType = 'MyCustomScript'
}

Write-Log -Level INFO -Message "This is a simple test informational message"

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

No branches or pull requests

2 participants