- Access Methods
- Resetting VM Passwords
- Updating or Adding SSH Keys
- DNS Settings
- Multiple IP Addresses on Azure vms
- Static Mac Address on Nic in Azure
Access Methods
Azure PowerShell
Azure CLI
Azure CloudShell - Direct access links:
Resetting VM Passwords
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/reset-rdp#reset-the-local-administrator-account-password - Reset Password using Azure Portal
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/reset-rdp#reset-the-local-administrator-account-password-1 - Reset Password using Azure PowerShell
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/reset-password - Reset Linux Password using Azure CLI or Azure Cloudshell
Updating or Adding SSH Keys
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/troubleshoot-ssh-connection#use-the-azure-portal - reset or change an existing SSH key
https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/vmaccess-linux#update-ssh-key - setup a ssh key
DNS Settings
Set DNS Servers via Azure Nic interface
Refresh on system via sudo netplan try
Set DNS Domain via Netplan on box: (https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/custom-dns-configuration-for-azure-linux-vms?tabs=Ubuntu)
Don’t worry too much about reddog: (https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances?tabs=ubuntu)
Multiple IP Addresses on Azure vms
Static Mac Address on Nic in Azure
Must be on 2nd non-primary Nic
Understanding static MAC address licensing in Azure
First Time Setup
- Add a 2nd Nic that isn’t the primary nic to your VM
- Connect it up
- Document MAC Address
- Disable your first nic.
- Apply preferred IP Address to 2nd nic
- Put an azure resource lock on 2nd nic but not end of world if it gets deleted.
Using on 2nd machine
- Add a 2nd Nic that isn’t the primary nic to your VM
- Connect it up
- Document MAC Address
- Disable your first nic.
- Apply preferred IP Address to 2nd nic
- Put an azure resource lock on 2nd nic but not end of world if it gets deleted.
- Go to devicemanager and hard code the mac address you want on the 2nd nic
Or something like Set-NetAdapterAdvancedProperty -Name 'Private Team' -DisplayName 'MAC Address' -DisplayValue '00-00-00-00-00-00'