Getting Error while deploy MVC web api

suraj rawat 0 Reputation points
2024-08-09T07:06:59.1933333+00:00

az webapp deploy --src-path site.zip --resource-group learn-b17c4847-5cf0-43c2-942d-a0afdb4e36a3 --name BestBikeApp

Deployment type: zip. To override deployment type, please specify the --type parameter. Possible values: war, jar, ear, zip, startup, script, static

Initiating deployment

Deploying from local path: site.zip

(ResourceNotFound) The Resource 'Microsoft.Web/sites/BestBikeApp' under resource group 'learn-b17c4847-5cf0-43c2-942d-a0afdb4e36a3' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

Code: ResourceNotFound

Message: The Resource 'Microsoft.Web/sites/BestBikeApp' under resource group 'learn-b17c4847-5cf0-43c2-942d-a0afdb4e36a3' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

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

1 answer

Sort by: Most helpful
  1. akinbade abiola 15,295 Reputation points
    2024-08-09T07:22:35.59+00:00

    I will recommend the steps below:

    Go to the App Services section and locate your resource group ("learn-b17c4847-5cf0-43c2-942d-a0afdb4e36a3") and check if your web app named "BestBikeApp" exists within this resource group.

    Confirm the exact name of the RG and app (You can copy to make sure) and deploy again:

    az webapp deploy --src-path site.zip --resource-group <correct-resource-group-name> --name BestBikeApp
    
    

    See: https://video2.skills-academy.com/en-us/cli/azure/webapp/deployment?view=azure-cli-latest

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

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.