Facint 401 issue while executing AzSKContinuousAssurance on azure portal
Opened this issue · 0 comments
rahulkrachamalla commented
Having installed AzSKContinuousAssurance with Install-AzSKContinuousAssurance command and trying to execute the Run book for Powershell I have facing Error 401 Not authorized. Please find the logs below
**https://getazsdkcontrolsms.azurewebsites.net/api/files?version=1.0.0&fileName=RunbookScanAgent.ps1
2
Exception happened in runbook...
iwr : The remote server returned an error: (401) Unauthorized.
At line:110 char:15
-
$result = iwr $validatedUri -UseBasicParsing
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],
WebException - FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand**
- CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],
Access Token is generated and the validate uri is "https://getazsdkcontrolsms.azurewebsites.net/api/files?version=1.0.0&fileName=RunbookScanAgent.ps1"