Skip to content

Commit 952af37

Browse files
committed
added restart instruction for hostname change commands
1 parent d335ef0 commit 952af37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/virtual-network/virtual-networks-viewing-and-modifying-hostnames.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ The following image shows the **Run command** page in the Azure portal for a Win
6565
6666
:::image type="content" source="./media/virtual-networks-viewing-and-modifying-hostnames/virtual-machine-run-command.png" alt-text="Screenshot that shows the Run command page for a Windows virtual machine and highlights the RunPowerShellScript feature.":::
6767
68+
After you run either `Rename-Computer` or `hostnamectl` on your VM, you need to restart your VM for the hostname to change.
69+
6870
## Azure classic deployment model
6971
7072
The Azure classic deployment model uses a configuration file that you can download and upload to change the host name. To allow your host name to reference your role instances, you must set the value for the host name in the service configuration file for each role. You do that by adding the desired host name to the **vmName** attribute of the **Role** element. The value of the **vmName** attribute is used as a base for the host name of each role instance.

0 commit comments

Comments
 (0)