I'm having trouble with the pipeline finding and publishing to the webapp.

Thiago 0 Reputation points
2025-05-28T01:57:26.01+00:00

Hi There,
Hope you're doing well

I'm currently experiencing an issue while trying to connect my Azure DevOps pipeline to an App Service and Web App that are both within the same Azure subscription.
Additionally, the Azure DevOps billing is also being handled within this same Azure account, so everything should be fully linked.

When attempting the connection—whether through the classic pipeline or a YAML-based pipeline—I receive an error stating that the subscription cannot be found or that it does not belong to the same owner, even though both Azure DevOps and the Web App are under the same subscription.

I've double-checked the service connection and permissions, and I’ve retried the setup multiple times without success. This issue is blocking my deployment, and I’ve already spent a significant amount of time trying to resolve it.
I think there is a technicam issue between Azure Portal and Azure Devops on our account.

Could you please assist me in identifying what might be causing this problem or help me correctly configure the connection?

Thank you in advance for your support.

Best regards, Thiago Rodrigues

Azure Portal
Subscription Name: Azure CSIFLEX Account

Subscription ID: 2fb7d710-dc68-4519-a27a-91a6eff8c4b5

Default Directory (lruivocsiflex.onmicrosoft.com)

Azure Devops
Domain: https://csiflex.visualstudio.com/
DIrectory: camsolutions.ca (8e6e6a48-9e68-41da-8e43-fb6d6c02b346)
Billing

Azure Subscription ID

2fb7d710-dc68-4519-a27a-91a6eff8c4b5


Azure DevOps
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Durga Reshma Malthi 5,310 Reputation points Microsoft External Staff Moderator
    2025-05-28T11:17:47.1166667+00:00

    Hi Thiago

    Could you please try the below steps to resolve this issue:

    1. Try re-authenticating the Service Connection. Ensure that the service principal used in the Azure DevOps service connection has the Owner or User Access Administrator permissions.
    2. Go to Azure Portal -> Navigate to your App Service and Web App -> Access Control (IAM) Ensure you must be part of Contributor or Owner Role.
    3. Clear your browser cache or try accessing Azure DevOps in an incognito/private browsing window.
    4. Since you mentioned that the Azure DevOps organization is under a different directory (camsolutions.ca) and the Azure subscription is in (lruivocsiflex.onmicrosoft.com), this could be causing the issue. You need to switch Azure DevOps to the correct Azure AD tenant or directory.
    5. Go to Azure DevOps Organizations -> Organization Settings -> Microsoft Entra ID -> Check if the correct directory is linked. User's image
    6. Ensure that your YAML file is correctly configured to use the service connection:
         - task: AzureWebApp@1
           inputs:
             azureSubscription: 'your-service-connection-name'
             appType: 'webApp'
             WebAppName: 'your-web-app-name'
             package: '$(System.DefaultWorkingDirectory)/**/*.zip'  # Adjust as necessary
      

    Additional References:

    https://learn.microsoft.com/en-us/troubleshoot/azure/devops/troubleshoot-subscription-related-scenarios

    Hope this helps!

    Please Let me know if you have any queries. If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.


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.