Execption: The Resource 'Microsoft.Scheduler/jobcollections/XXX' under resource group 'XXX-XXX-XXX' was not found

Naveen Kumar Samineni (INFOSYS LIMITED) 1 Reputation point Microsoft Vendor
2022-04-26T12:35:45.937+00:00

While Deploying app service through release pipeline, i got below exception
Exception: The Resource 'Microsoft.Scheduler/jobcollections/XXX' under resource group 'XXX-XXX-XXX' was not found

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,456 Reputation points
    2022-04-27T06:24:46.71+00:00

    Hi @Naveen Kumar Samineni (INFOSYS LIMITED) ,

    We are sorry to hear you are facing this issue. Based on the error message it looks like Resource Manager needs to retrieve the properties for a resource but can't find the resource in your subscription.

    Based this trouble shooting Azure doc here are some solutions you can try to resolve your issue:

    1. check resource properties
    When you receive this error while doing a management task, check the values you provided for the resource. The three values to check are:

    • Resource name
    • Resource group name
    • Subscription

    If you're using PowerShell or Azure CLI, check that you're running commands in the subscription that contains the resource. You can change the subscription with Set-AzContext or az account set. Many commands provide a subscription parameter that lets you specify a different subscription than the current context.

    If you can't verify the properties, sign in to the Microsoft Azure portal. Find the resource you're trying to use and examine the resource name, resource group, and subscription.

    2. set dependencies
    If you get this error when deploying a template, you may need to add a dependency. Resource Manager optimizes deployments by creating resources in parallel, when possible.

    For example, when you deploy a web app, the App Service plan must exist. If you haven't specified that the web app depends on the App Service plan, Resource Manager creates both resources at the same time. The web app fails with an error that the App Service plan resource can't be found because it doesn't exist yet. You prevent this error by setting a dependency in the web app.

    please take a look at the troubleshooting doc to see more possible solutions.

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    ------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments