Open nithilin1 opened 11 months ago
Wow that's a tough one. I don't know if this works, but give this a try:
filePath: 'Scripts/New-Win32App.ps1' arguments: -TenantID $(TenantID) -ClientID $(ClientID) -ClientSecret $(SP-IntuneAppFactory-ClientSecret) -WorkspaceID $(ReportWorkspaceID) -SharedKey """$(LA-IntuneAppFactory-PrimaryKey)"""
or;
filePath: 'Scripts/New-Win32App.ps1' arguments: -TenantID $(TenantID) -ClientID $(ClientID) -ClientSecret $(SP-IntuneAppFactory-ClientSecret) -WorkspaceID $(ReportWorkspaceID) -SharedKey "$(LA-IntuneAppFactory-PrimaryKey)"
This is a wild guess, it's probably not going to work.
My log analytics primary key was hashed correctly in the scripting, but the hashed string included &. This caused the script to fail as the & symbol is protected.
(Yes, this is the hashed and old version of the key.)
I was able to solve this by using my Loganalytics secondary key. I was however unable to detect where exactly to input the needed wraps for the & symbol to avoid this problem in the future.