1

I uploaded my api to azure. I know that you shouldn't direct to the below shown url because there is no webpage. But all api requests are not working

It seems as though everything was published fine but is not working. What could be the problem?

3
  • 1
    What kind of response/response code you are getting when calling API ? Commented Dec 17, 2021 at 7:25
  • Could you please let us know have you tried with https://xxxx.azurewebsites.net/api/xxx Commented Dec 18, 2021 at 6:43
  • Please provide more details on the error you are getting. Currently it's hard to guess what what exactly is going on. Commented Dec 23, 2021 at 23:15

1 Answer 1

0

To deploy your webapi to azure and get it to work make sure that you have following workaround :

  • I have created .Net webAPI and here make sure that you have following in your program.cs app.UseHttpsRedirection(); enter image description here

  • And after deploy to azure App service make sure that you have the following configuration ,In my case i have created web+Database in portal and deploy my webAPI

enter image description here

enter image description here

For more information please refer the below links :

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

Comments

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.