Closed glaisne closed 4 years ago
@VeryEarly , please evaluate this issue.
Hi @glaisne ,
The setting you tried to retrieve is for subscription: subscriptions/1b28a830-9863-45b6-89a0-9b5af6655620/providers/microsoft.insights/diagnosticSettings/CopyToPublicCloud
I cannot create diagnostic setting for subscription, can you show me how it can be created?
Attaching an ARM template I used. the only parameter is the workspace ID of a Log Analytic resource. ActivityLogDiagnosticsDeploy.json.txt I used 'New-AzDeployment'
Hi @glaisne ,
This issue will be fixed in the linked PR
Description
Error "System.Management.Automation.PSInvalidOperationException: Exception type: NullReferenceException, Message: System.NullReferenceException: Object reference not set to an instance of an object." When calling "Get-AzDiagnosticSetting -ResourceId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" Where 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is a viable Subscription ID
Steps to reproduce
Environment data
Module versions
Debug output
Error output