Score:0

Ubunutu 22.04 Azure marketplace image - Static IP Address?

qa flag

Image deploys in Azure fine, I can access the Server but its dhcp... I need it to be static.

I have edited the 50-cloud-init.yaml and applied using netplan apply, but this gets over written on reboot.

I have added the 99-.....yaml file as suggested in the text of the 50-cloud-init.yaml file to stop the cloud networking on reboot applying again.

I have then edited the 50-cloud-init.yaml file again and changed to dhcp false and added and ip address and routes (cant use gateway anymore) etc. But then this breaks the ability for the server to access the apt updates etc and services start failing.

any help appreciated...

vidarlo avatar
om flag
*Why* do you need it to be static? Generally you'll set such properties in [the azure portal](https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-networks-static-private-ip-arm-pportal), *not* inside the individual VM.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.