Skip to content

Set-AzureRmDiagnosticSetting in Module 5.1.0 does not work #6833

@DirkBrinkmann

Description

@DirkBrinkmann

Description

With 5.1.0 you introduced the new -Name parameter. Great! But unfortunately it does not work and the whole Cmdlet seems to be broken!

Script/Steps for Reproduction

If you specifiy the -name param or not, you will always get the error:

The diagnostic setting 'service' [or whatever name you entered]
doesn't exist., Code: ResourceNotFound, Status code:NotFound, Reason phrase: Not Found

Module Version

5.1.0

Environment Data

$PSVersionTable

Debug Output

<Set-AzureRmDiagnosticSetting : Exception type: ErrorResponseException, Message: The diagnostic setting 'service'
doesn't exist., Code: ResourceNotFound, Status code:NotFound, Reason phrase: Not Found
At line:1 char:1

  • Set-AzureRmDiagnosticSetting -ResourceId $r.Id -WorkspaceId /subscrip ...
  •   + CategoryInfo          : CloseError: (:) [Set-AzureRmDiagnosticSetting], PSInvalidOperationException
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand
    

Metadata

Metadata

Labels

MonitorService AttentionThis issue is responsible by Azure service team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions