Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,600 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an azure pipeline that deploys 10 Azure Web app to the same Azure resource group.
9 of the apps are deployed, but one of the apps fails with this error in the pipeline:
Deployment Failed with Error: Error: Resource 'app-pricing-api-demo-company' doesn't exist. Resource should exist before deployment.
##[debug]appName=app-pricing-api-demo-company
##[debug]customDeployFolder=undefined
##[debug]eaf38771-121e-4488-a347-b121590db6d0 auth scheme = ServicePrincipal
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data subscriptionid = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data subscriptionname = Pay-As-You-Go
##[debug]eaf38771-121e-4488-a347-b121590db6d0 auth param serviceprincipalid = ***
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data environmentAuthorityUrl = https://login.windows.net/
##[debug]eaf38771-121e-4488-a347-b121590db6d0 auth param tenantid = ***
##[debug]eaf38771-121e-4488-a347-b121590db6d0=https://management.azure.com/
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data environment = AzureCloud
##[debug]eaf38771-121e-4488-a347-b121590db6d0 auth scheme = ServicePrincipal
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data msiclientId = undefined
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data AzureKeyVaultServiceEndpointResourceId = https://vault.azure.net
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data AzureKeyVaultDnsSuffix = vault.azure.net
##[debug]eaf38771-121e-4488-a347-b121590db6d0 auth param authenticationType = ***
##[debug]credentials spn endpoint
##[debug]eaf38771-121e-4488-a347-b121590db6d0 auth param serviceprincipalkey = ***
##[debug]eaf38771-121e-4488-a347-b121590db6d0 data EnableAdfsAuthentication = false
##[debug]{"subscriptionID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx","subscriptionName":"Pay-As-You-Go","servicePrincipalClientID":"***","environmentAuthorityUrl":"https://login.windows.net/","tenantID":"***","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"ServicePrincipal","activeDirectoryResourceID":"https://management.azure.com/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","authenticationType":"***","servicePrincipalKey":***,"isADFSEnabled":false,"applicationTokenCredentials":{"clientId":"***","domain":"***","baseUrl":"https://management.azure.com/","authorityUrl":"https://login.windows.net/","activeDirectoryResourceId":"https://management.azure.com/","isAzureStackEnvironment":false,"authType":"***","secret":***,"isADFSEnabled":false}}
Got service connection details for Azure App Service:'app-pricing-api-demo-company'
##[debug][POST]https://login.windows.net/***/oauth2/token/
##[debug][GET]https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resources?$filter=resourceType EQ 'Microsoft.Web%2FSites' AND name EQ 'app-pricing-api-demo-company'&api-version=2016-07-01
##[debug]Correlation ID from ARM api call response : a4ad608e-8921-4b1a-b668-25eaf4f51ec0
**##[debug]Deployment Failed with Error: Error: Resource 'app-pricing-api-demo-company' doesn't exist. Resource should exist before deployment.**
##[debug]task result: Failed
##[error]Error: Resource 'app-pricing-api-demo-company' doesn't exist. Resource should exist before deployment.
##[debug]Processed: ##vso[task.issue type=error;]Error: Resource 'app-pricing-api-demo-company' doesn't exist. Resource should exist before deployment.
##[debug]Processed: ##vso[task.complete result=Failed;]Error: Resource 'app-pricing-api-demo-company' doesn't exist. Resource should exist before deployment.
##[debug]Deployment failed
Finishing: Deploy Pricing API
What I have tried
Please advise on how to troubleshoot
Hi @Rasmus Østergård I have deployed several times, some's ok and other fails showing "Resource doesn't exist.", it looks random. Could you try to re-deploy it to check the problem?
Hi @Ángel Martín Bartolomé I just tried 5 times in a row with no issues
Any updates on this issue?
The free tier does have limited compute resources which is shared. The original OP here was running into resource constrictions with their deployments. If you're doing development and testing, there shouldn't be any issues. However, if the site is a production site, I do advise scaling up to the standard tier.
Having the same issue, i got the feeling that it's due to the free tier, like always...
Sign in to comment
1 answer
Sort by: Most helpful
Hi @Rasmus Østergård
When you receive a message such as
it usually points to the mapping (or profile) of the app service in the deployment pipeline doesn't exist. An app service can be created, a pipeline configured for that app service, later be removed, and recreated for you to end up in this state. Some other things I could check:
---
EDIT 2022 Mar 14: To benefit the broader community; I'm updating the answer with the findings from offline discussions. It was determined your app service plan was running into high CPU utilization. You're utilizing a single app service plan to run your workloads and were performing terraform deployments when there was zero load on the plan. But due to previous CPU loads, there may not have been enough headroom for deployments. The resolve was to scale out/up your app service plan for more headroom.
Thanks for the response,
Please see my last comment:
Update 14 hours later:
Just tried to deploy again - this time it worked.
What could be the cause of this?
Your issue could be related to https://github.com/microsoft/azure-pipelines-tasks/issues/15532
Sign in to comment
Activity