0

I'm trying to access my app, hosted on azure. I've a finished c# solution. When I commit changes to Azure DevOps it triggers a (working & successful) build-pipeline. It runs tests, publishes an artifact & testresults.

enter image description here

In my ServicePlan status is Ready and I see Data Exchanges on DataIn & DataOut graphs.

enter image description here

The Deployment Center: Deployment Center

enter image description here

Bu when I click the https://mywebsite.azurewebsites.net, No webpage was found for the web address.

I have Some basic Azure DevOps expierence, but this Azure Portal is something else :)

My basic questions would be: Why is it not working?

Do I need a second pipeline, only for release? Or can I recycle the build pipeline?

Do I need some kind of deployment slots? Before I select a not-free slot, I want to know if this is necessary

What else could I be missing? (My Azure resources include a sql-server, a sql-db, the actual appservice & a app service plan)

Thanks!

4
  • 2
    In Azure DevOps you will need to setup a build pipeline and a release pipeline. This is a lengthy topic and probably not suitable to this forum. Commented Feb 9, 2021 at 17:05
  • @Kane, thanks for the answer. I can set up a release pipeline I guess. Will do some research on what makes it different from build pipeline. I noticed it's quite a big topic (:o) but you gave me a good lead! Thanks again Commented Feb 9, 2021 at 17:10
  • @Kane still have some troubles, do you know a forum where this topic is suitable? I've followed micrsoft tutorial, pluralsight and an old school course. But all sources are outdated or not applicable to my issue it seems.. Commented Feb 12, 2021 at 13:36
  • Hi @BHANG, You can free free to share your questions in the SO and add related tags, better for specific problems. Commented Feb 15, 2021 at 13:00

1 Answer 1

2

If you deploy web app to Azure and login https://<app-name>.azurewebsites.net, then the page still shows Microsoft page instead you owner page. You need check the default document, please ensure that the default page is listed in here.

Steps: login azure portal->App Service->configuration->Default documents

In Azure Web Apps, the default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used. Refer File structure on azure to know more about the files and directories on Azure Web App.

Update1

When I go to the azurewebsites.net url I get a 404: No webpage was found for the web address.

Check this doc:

If you receive an HTTP 404 (Not Found) error when you browse to the URL of your custom domain, verify that your domain resolves to your app's IP address by using WhatsmyDNS.net. If not, it might be because of one of the following reasons:

  • The custom domain configured is missing an A record or a CNAME record.

  • The browser client has cached the old IP address of your domain. Clear the cache, and test DNS resolution again. On a Windows machine, you clear the cache with ipconfig /flushdns.

Update2

the URL in my appservice is Azure-generated right?

Yes, then app service url is generated by Azure.

With making a new app service and going to the URL I do get a message app service is up and running.Time to take the next step and deploy your code.

And now, we should get this page, we need create new service connection and re-configure build and release pipeline and deploy your app.

enter image description here

Note: We need use the same user account and AAD domain to do this.

Sign up to request clarification or add additional context in comments.

7 Comments

Thank you for your answer. My default document is index.html. When I go to the azurewebsites.net url I get a 404: No webpage was found for the web address. I have a working release pipeline (that takes an artifact from a build pipeline). If I ng build --prod in angular, build succeeds. But when I ng run <projectname>:deploy I get: Project target does not exist. I've tried fondling with the inner workings of angular-devkit architect to get a more elaborate error message but somehow my changes don't even get implemented.
Hi @BHANG, check the update1 and kindly share the result here. In addition, you could also check this ticket
Thank you for the update! ATM I'm not working with custom domains. Have flushed DNS. When I want to deploy from AngularCLI I still get Unhandled Exception: Project target does not exist. If I try to access my azurewebsites.net through azurePortal I still get the 404
Hi @BHANG, could you log in azure portal and open app service to check if URL is correct? When we create app service in the azure portal, we could see the URL link in the app service summary page. Please create a new app service and try it again.
Hi @BHANG, I have updated my answer, check the update2.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.