What DNS Name Label should I give my Azure Virtual Machine? -


in ongoing effort wrap head around azure's new resource group model (see previous questions here , here), trying create new virtual machine used web server.

i have thee questions:

question one:

assuming want vm host website woodswild.com, dns name label should give vm? matter? know sure needs globally unique. need reflect domain want host (woodswild.com)?

question two:

do need set dns name @ all?

question three:

and, i've created it, can still change dns name label "none" something? , if so, how?

enter image description here

there no requirement @ either have dns name, or have 1 setting up. have script use creates 1 guid!

this follows usual process of assigning setting azure.

  1. get-something, assign variable.
  2. change property of variable, assigning other value.
  3. write change azure using set-something cmdlet.

in case little complicated since ultimate structure want looks

dnssettings  : {         "domainnamelabel": "mytestdnsname",         "fqdn": "mytestdnsname.westeurope.cloudapp.azure.com"                } 

presuming created pip

new-azurermpublicipaddress -name test01pip -resourcegroupname test01 `                            -allocationmethod dynamic -location westeurope   

the qualified domain name set automatically, need set domainnamelabel this,

$ip =get-azurermpublicipaddress -name test01pip -resourcegroupname test01 [1]  $ip.dnssettings += @{domainnamelabel = "mytestdnsname"}                   [2] set-azurermpublicipaddress -publicipaddress $ip                           [3] 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -