Deleting Azure SWA named environment getting AuthorizationFailed but removes.

Per Kortbek Jørgensen 0 Reputation points
2024-07-02T14:04:37.51+00:00

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

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
904 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.