Deleting Azure SWA named environment getting AuthorizationFailed but removes.
Per Kortbek Jørgensen
5
Reputation points
I am have a pipeline, were we are running some security scanning.
We first deploy the site to SWA named environments, then run the scan and removes the site (Using 'az staticwebapp environment delete').
It removes the site, but the task returns following:
ERROR: (AuthorizationFailed) The client 'xxxxxx' with object id 'xxxxxx' does not have authorization to perform action 'Microsoft.Web/locations/operationResults/read' over scope '/subscriptions/***/providers/Microsoft.Web/locations/westeurope/operationResults/xxxxx' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Sign in to answer