How to assign an existing public IP (e.g. mydomain.org) to Azure VM (IIS on WinServ2019DC)

%3CLINGO-SUB%20id%3D%22lingo-sub-783496%22%20slang%3D%22en-US%22%3EHow%20to%20assign%20an%20existing%20public%20IP%20(e.g.%20mydomain.org)%20to%20Azure%20VM%20(IIS%20on%20WinServ2019DC)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783496%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20one%20VM%20running%20(ISS%20on%20WinServ2019%20DC)%20with%20internal%20IP%20and%20static%20public%20IP%20(provided%20by%20Azure%20in%20%E2%80%9C%3CEM%3Evmname%3C%2FEM%3E.westeurope.cloudapp.azure.com%E2%80%9C%20domain)%20but%20I%20have%20got%20a%20domain%20(e.g.%20mydomain.org)%20with%20associated%20public%20IP%20which%20I%20bought%20(not%20in%20Azure%20Marketplace)%20for%20myself.%20This%20domain%20was%20added%20in%20my%20office%20365%20business%20premium%20setup.%3C%2FP%3E%3CP%3EHow%20can%20I%20assign%20my%20existing%20public%20IP%20(mydomain.org)%20to%20this%20(ISS)%20VM%20through%20powershell%20and%20Azure%20Portal%3F%3C%2FP%3E%3CP%3EPlease%20advise.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EWilhelm%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-783496%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Resource%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENetworking%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVirtual%20Network%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-785667%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20assign%20an%20existing%20public%20IP%20(e.g.%20mydomain.org)%20to%20Azure%20VM%20(IIS%20on%20WinServ2019DC)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785667%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93442%22%20target%3D%22_blank%22%3E%40Wilhelm%20Meister%3C%2FA%3E%26nbsp%3BAs%20far%20i%20remember%2C%20you%20can%20not%20add%20any%20other%20IP-Addresses%20except%20the%20onece%2C%20which%20are%20assigned%20to%20microsoft.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-785705%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20assign%20an%20existing%20public%20IP%20(e.g.%20mydomain.org)%20to%20Azure%20VM%20(IIS%20on%20WinServ2019DC)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785705%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F79492%22%20target%3D%22_blank%22%3E%40Pawel%20Kostelnik%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ethx%20Pawel%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20added%20mydomain.de%20with%20related%20public%20IP%20to%20Microsoft%20DNS%20Server%20via%20Office%20365%20Setup%20Utility%20so%20this%20domain%20and%20this%20public%20IP%20is%20assigned%20to%20Microsoft%20DNS%3C%2FSPAN%3E%3CSPAN%3Ebut%20probably%20I%20should%20do%20some%20additional%20configuration%20in%20Azure%20(DNS%20service%20%3F!%E2%80%A6).%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWilhelm%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-785730%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20assign%20an%20existing%20public%20IP%20(e.g.%20mydomain.org)%20to%20Azure%20VM%20(IIS%20on%20WinServ2019DC)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785730%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93442%22%20target%3D%22_blank%22%3E%40Wilhelm%20Meister%3C%2FA%3E%26nbsp%3Bso%20you%20added%20your%20domain%20to%20office%20365.%20If%20you%20wanna%20to%20access%20the%20VM%20(IIS%20service%3F)%20threw%20web%2C%20then%20you%20need%20to%20add%20an%20cname%20in%20the%20DNS%20Service%20to%20point%20%22your.domain%22%20to%20the%20static%20IP%20of%20the%20Azure%20VM.%20you%20also%20have%20to%20create%20access%20rules%20in%20the%20Network%20security%20Group%2C%20which%20allows%20traffic%20from%20everywhere%20to%20your%20VM%20on%20your%20designated%20Port%20(http%2F80%20or%20https%2F443%20or%20any%20other).%3C%2FP%3E%3CP%3EIs%20this%20more%20something%20you%20like%20to%20know%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-785763%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20assign%20an%20existing%20public%20IP%20(e.g.%20mydomain.org)%20to%20Azure%20VM%20(IIS%20on%20WinServ2019DC)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-785763%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F79492%22%20target%3D%22_blank%22%3E%40Pawel%20Kostelnik%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ethx%20once%20again.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EISS%20on%20VM%20is%20already%20running%20and%20the%20%3C%2FSPAN%3E%3CSPAN%3Ehomepage%20%3C%2FSPAN%3E%3CSPAN%3Ewith%20Azure%20%E2%80%9Cdefault%E2%80%9D%20domain%20name%3C%2FSPAN%3E%3CSPAN%3Eis%20reachable%20via%20internet%3C%2FSPAN%3E%3CSPAN%3E.%20So%2C%20no%20worries%20here%3C%2FSPAN%3E%3CSPAN%3Ebut%20%3C%2FSPAN%3E%3CSPAN%3EI%20struggle%20to%20assign%20the%20mydomain.de%2Fpublic%20IP%20to%20this%20VM%20(ISS).%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20created%20CNAMES%20i%3CSPAN%3En%20Office365%20DNS%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3Ebut%20I%20am%20not%20sure%20whether%20%3C%2FSPAN%3E%3CSPAN%3Eand%20how%20%3C%2FSPAN%3E%3CSPAN%3EI%20have%20%3C%2FSPAN%3E%3CSPAN%3Eto%20configure%20DNS%20in%20Azure.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi,

I have one VM running (ISS on WinServ2019 DC) with internal IP and static public IP (provided by Azure in “vmname.westeurope.cloudapp.azure.com“ domain) but I have got a domain (e.g. mydomain.org) with associated public IP which I bought (not in Azure Marketplace) for myself. This domain was added in my office 365 business premium setup.

How can I assign my existing public IP (mydomain.org) to this (ISS) VM through powershell and Azure Portal?

Please advise.

Thank you in advance.

Regards,

Wilhelm

4 Replies
Highlighted

@Wilhelm Meister As far i remember, you can not add any other IP-Addresses except the onece, which are assigned to microsoft.

Highlighted

@Pawel Kostelnik 

thx Pawel. 

I added mydomain.de with related public IP to Microsoft DNS Server via Office 365 Setup Utility so this domain and this public IP is assigned to Microsoft DNS but probably I should do some additional configuration in Azure (DNS service ?!…). 

Regards, 

Wilhelm 

Highlighted

@Wilhelm Meister so you added your domain to office 365. If you wanna to access the VM (IIS service?) threw web, then you need to add an cname in the DNS Service to point "your.domain" to the static IP of the Azure VM. you also have to create access rules in the Network security Group, which allows traffic from everywhere to your VM on your designated Port (http/80 or https/443 or any other).

Is this more something you like to know ?

Highlighted

@Pawel Kostelnik 

thx once again. 

ISS on VM is already running and the homepage with Azure “default” domain name is reachable via internet. So, no worries here but I struggle to assign the mydomain.de/public IP to this VM (ISS).  

I created CNAMES in Office365 DNS but I am not sure whether and how I have to configure DNS in Azure.