none
Set-AzDiagnosticsSetting

    Question

  • I am facing the below error while trying to configure Log Analytics in Azure Data Lake Store Diagnostics Settings

    WARNING: 1:08:03 PM - *** The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Model
    s to Microsoft.Azure.Management.Monitor.Models in future releases.
    WARNING: 1:08:03 PM - *** The namespace for output classes will be uniform for all classes in future releases to make it independent o
    f modifications in the model classes.
    Set-AzDiagnosticSetting : Exception type: ErrorResponseException, Message: Null/Empty, Code: Null, Status code:BadRequest, Reason 
    phrase: Bad Request
    At line:1 char:1
    + Set-AzDiagnosticSetting -ResourceId $adls.Id -Name ADLS_Log_Analytics ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [Set-AzDiagnosticSetting], PSInvalidOperationException
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Insights.Diagnostics.SetAzureRmDiagnosticSettingCommand

    Saturday, January 19, 2019 7:53 AM

All replies

  • Hi Jaya,

    Hope your issue was resolved as mentioned by you on this thread :

    https://techcommunity.microsoft.com/t5/Windows-PowerShell/Set-AzDiagnosticSettings/m-p/321156#M571

    Thanks for sharing your findings. They will be beneficial for the community.


    MSDN

    Monday, January 21, 2019 8:20 AM
    Moderator