Azure CI/CD Pipeline With Private EndPoint WebApp

Shabbir, Hassan 1 Reputation point
2022-07-13T12:00:30.413+00:00

Hi Everyone,
I have created a azure devOps pipeline for CI/CD for my Azure AppService which was working fine until I didn't add the Private Endpoint & Custom Domain. For this i created Virtual machine on same Virtual Network on which my WebApp currently running.

-I Created Selfhosted agent in VM within same VN but when i run agents CI agent work fine but release agent getting error which i attached Below

myapp.azurewebsites.net myapp.scm.azurewebsites.net

220423-devopsrerror.png

Its still getting public Url not Private Endpoint custom Domain url

My question is this why its still getting here public url nor privateend point and why its giving me this error.

Is there a way I can do resolve this-?

Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
550 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2022-07-20T23:28:52.19+00:00

    Hi @Shabbir, Hassan ,

    Make sure from your virtual machine, you can ping the IP address of your app service. If you get a successful ping, then your VNET setup is good. Next step is to verify DNS from the virtual machine. Use nslookup yourapp.azurewebsites.net and it should resolve the DNS name yourapp.privatelink.azurewebsites.net with an alias to yourapp.azurewebsites.net and its private IP address. If everything is resolving to this point, then what you need to do is add an A record yourapp.scm.privatelink.azurewebsites.net to the private IP address of your app service.

    I've linked some reference docs down below:

    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.