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?
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.
- get-something, assign variable.
- change property of variable, assigning other value.
- 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
Post a Comment