Can you setup Azure CDN custom origin to be public IP address of windows azure virtual machine running IIS

Mike Myers 20 Reputation points
2024-05-22T20:28:23.3366667+00:00

Trying to see if this is even possible.

I have Azure Virtual Machine running as a windows webserver IIS.

Is it possible to setup Azure CDN to pull content from that webserver?

Things tried. Created CDN. Changed Origin to custom and set the public IP address of the webserver. But just get "Our services aren't available right now message" when accessing with the cdn hostname.

Webserver works fine if I go to by the public ip address.

Azure Content Delivery Network
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2024-05-23T06:01:27.11+00:00

    @Mike Myers ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Greetings.

    You should be able to use a public IP behind Azure CDN as long as the backend is healthy.

    The error message you shared usually appears with new deployments.

    Can you please confirm if the issue still persists?

    Cheers,

    Kapil


0 additional answers

Sort by: Most helpful

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.