Adding custom log azure log analytics

%3CLINGO-SUB%20id%3D%22lingo-sub-2609443%22%20slang%3D%22en-US%22%3EAdding%20custom%20log%20azure%20log%20analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2609443%22%20slang%3D%22en-US%22%3E%3CP%3Ehello%20Team%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehope%20you%20are%20doing%20good%20.could%20you%20please%20tell%20me%20how%20to%20add%20these%20custom%20logs%20and%20pull%20information%20for%20azure%20log%20analytics%20query%26nbsp%3B%20%26nbsp%3B%2Cwhen%20i%20add%20it%20doesn't%20pull%20any%20info%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20whole%20article%20is%20here%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-scaling-script%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E------------------------------------------------------%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%23%26nbsp%3BSpecify%26nbsp%3Bthe%26nbsp%3Bname%26nbsp%3Bof%26nbsp%3Bthe%26nbsp%3Brecord%26nbsp%3Btype%26nbsp%3Bthat%26nbsp%3Byou'll%26nbsp%3Bbe%26nbsp%3Bcreating%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%5B%3C%2FSPAN%3E%3CSPAN%3Estring%3C%2FSPAN%3E%3CSPAN%3E%5D%3C%2FSPAN%3E%3CSPAN%3E%24TenantScaleLogType%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22WVDTenantScale_CL%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%26nbsp%3BSpecify%26nbsp%3Ba%26nbsp%3Bfield%26nbsp%3Bwith%26nbsp%3Bthe%26nbsp%3Bcreated%26nbsp%3Btime%26nbsp%3Bfor%26nbsp%3Bthe%26nbsp%3Brecords%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24TimeStampField%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%26nbsp%3B(%3C%2FSPAN%3E%3CSPAN%3EGet-Date%3C%2FSPAN%3E%3CSPAN%3E).GetDateTimeFormats(%3C%2FSPAN%3E%3CSPAN%3E115%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%26nbsp%3BCustom%26nbsp%3BWVDTenantScale%26nbsp%3BTable%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24CustomLogWVDTenantScale%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3D%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%40%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%5B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22hostpoolName%22%3A%22%26nbsp%3B%22%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%22logmessage%22%3A%26nbsp%3B%22%26nbsp%3B%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%22%40%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
New Contributor

hello Team 

 

hope you are doing good .could you please tell me how to add these custom logs and pull information for azure log analytics query   ,when i add it doesn't pull any info 

 

The whole article is here 

https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script

 

 

------------------------------------------------------

# Specify the name of the record type that you'll be creating
[string]$TenantScaleLogType = "WVDTenantScale_CL"
# Specify a field with the created time for the records
$TimeStampField = (Get-Date).GetDateTimeFormats(115)
# Custom WVDTenantScale Table
$CustomLogWVDTenantScale = @"
[
    {
        "hostpoolName":" ",
        "logmessage": " "
    }
]
"@
0 Replies