![](https://it-infrastructure.solutions/content/images/2022/09/image-12.png)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
Today I was given the task to deploy a Linux VM in Azure to evaluate the features of Azure Arc enabled servers.
Prerequesites
- An Azure Tenant with Global Administrator Permissions
- An Azure Linux VM
First of all, make sure that there are no extensions on the VM.
![](https://it-infrastructure.solutions/content/images/2022/09/image-150.png)
The next step is to disable the Azure VM Guest Agent.
# Disable the Azure VM Guest Agent.
current_hostname=$(hostname)
sudo service walinuxagent stop
sudo waagent -deprovision -force
sudo rm -rf /var/lib/waagent
sudo hostnamectl set-hostname $current_hostname
![](https://it-infrastructure.solutions/content/images/2022/09/image-149.png)
In a further step, specific external communication must be suppressed.
# Install ufw
sudo apt-get update
sudo apt-get install ufw
![](https://it-infrastructure.solutions/content/images/2022/09/image-151.png)
# Block access to the Azure IMDS endpoint.
sudo ufw --force enable
sudo ufw deny out from any to 169.254.169.254
sudo ufw default allow incoming
![](https://it-infrastructure.solutions/content/images/2022/09/image-152.png)
If you want more information about iptables or ufw, you can read another blogpost here.
https://it-infrastructure.solutions/setting-up-iptables/
In a final step, you can install the Azure Arc Agent and onboard the VM into Azure Arc. I have also written a post about it here.
https://it-infrastructure.solutions/onboarding-azure-arc-linux-ubuntu/
References:
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)
https://it-infrastructure.solutions/onboarding-azure-arc-linux-ubuntu/