Get-AzDiagnosticSetting:异常类型:ErrorResponseException,消息:Microsoft.Azure.Management.Monitor.Models.ErrorResponseException:操作在 Microsoft.Azure.Management.Monitor.DiagnosticSettingsOperations.d__8.MoveNext() 处返回了无效状态代码“BadRequest”-- - 从先前引发异常的位置结束堆栈跟踪 --- 在 Microsoft.Azure.Management.Monitor 的 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 的 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()。 DiagnosticSettingsOperationsExtensions.d__7.MoveNext() --- 在 System.Runtime.CompilerServices.TaskAwaiter 的 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 处从先前引发异常的位置结束堆栈跟踪。在 Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCommand.ProcessRecordInternal() 在 Microsoft.Azure.Commands.Insights.MonitorCmdletBase .ExecuteCmdlet(),代码:Null,状态码:Null,原因短语:Null At C:\Users\n1542975\Desktop\MigrationScripts\WAF_Policy.ps1:121 char:26原因短语:Null At C:\Users\n1542975\Desktop\MigrationScripts\WAF_Policy.ps1:121 char:26原因短语:Null At C:\Users\n1542975\Desktop\MigrationScripts\WAF_Policy.ps1:121 char:26
- ... gsettings = Get-AzDiagnosticSetting -ResourceID $FrontDoorWAFPolicyNa ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [Get-AzDiagnosticSetting], PSInvalidOperationException
- fullyQualifiedErrorId:Microsoft.Azure.Commands.Insights.Diagnostics.GetAzureRmDiagnosticSettingCommand