I would like to add security
(e.g. a login with a password) for the public-ip
for my Azure
VM. Because else everybody could e.g. deploy smart contracts via the cakeshop
links or turn off and on the Ethereum
nodes
.
Does anybody know how to do it?
It seems that you cannot set a password for the public IP. But you can set the password for the VM. For the security of the VM, you can use the Azure Network Security Group to filter the traffic. For more details, see Filter network traffic with a network security group.
For more security to the VM, you can try the Identity of Azure AD. Take a look at this Configure managed identities for Azure resources on a VM. Hope this will help you.