question

NaveenKumarSamineniINFOSYSLIMITED-8184 avatar image
0 Votes"
NaveenKumarSamineniINFOSYSLIMITED-8184 asked Grmacjon-MSFT edited

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

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-webapps-content-deployment
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT answered Grmacjon-MSFT edited

Hi @NaveenKumarSamineniINFOSYSLIMITED-8184,

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--



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.