GitHub Actions Deployment to Azure Web App Fails: 'Resource smartovatewebapp of type Microsoft.Web/Sites doesn't exist'– SR# 2503310040011009

Abdelkhalek Bakkari 45 Reputation points
2025-04-01T20:01:17.72+00:00

I’m trying to deploy a Next.js application to an Azure Web App using GitHub Actions. The app runs fine locally with yarn dev, and I’ve been attempting to deploy it to Azure App Service (smartovatewebapp) with a custom startup command (yarn dev --port 8080). However, the deployment fails during the azure/webapps-deploy@v3 step with the error:

"Error: Deployment Failed, Error: Resource smartovatewebapp of type Microsoft.Web/Sites doesn't exist"

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

Accepted answer
  1. Suresh Chikkam 2,135 Reputation points Microsoft External Staff Moderator
    2025-04-04T05:20:46.84+00:00

    Hi Abdelkhalek Bakkari,

    The log shows that GitHub is attempting to log in using OIDC (OpenID Connect), and it does retrieve the federated token successfully. That means you have created a federated credential under an App Registration in Azure.

    • Federated credentials are not fully connected to the subscription, which is why GitHub can’t see any resources during login.

    You should have an entry there that matches your GitHub repository and branch.

    enter image description here

    • Issuer: https://token.actions.githubusercontent.com
    • Subject: repo:caustaza/smartovateai_web:ref:refs/heads/main must match your GitHub repo
    • Audience: api://AzureADTokenExchange

    If it’s not there or doesn’t match your repo and branch exactly, you’ll need to add it manually.

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes wherever the information provided helps you, this can be beneficial to other community members.

    User's image

    If you have any other questions or still running into more issues, let me know in the "comments" and I would be happy to help you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.