A VM with Linux operating system is installed on the PowerFlex platform. The VM is connected to Azure by installing Azure connected Machines Agent. The hybrid VM once added to the Azure resource group is called a connected machine and is treated as an Azure resource. Similarly, the VMs and physical servers with Windows and Linux operating system that is hosted on the PowerFlex platform is managed using Azure Arc-enabled server capabilities.
Perform the following steps to connect the VM hosted on the PowerFlex platform to Azure:
To generate the installation script from the Azure portal, go to Servers > Azure Arc > Add servers with Azure Arc and select Generate script.
The installation script contains the agent installation command. Run the following command on the Linux VM:
[****@azurevm1 ~]# wget aka.ms/azcmagent -O ~/install_linux_azcmagent.sh
[*****@azurevm1 ~]# bash ~/install_linux_azcmagent.sh
After the agent installation, run the connect command to connect the hybrid VM to Azure:
[root@azurevm1 ~]# azcmagent connect --resource-group "AzureArcTest" --tenant-id "XXXXXXXXX" --location "eastus" --subscription-id "XXXXXXXXXXX" --cloud "AzureCloud" --correlation-id "XXXXXXXXXXXXX"
INFO Onboarding Machine. It usually takes a few minutes to complete. Sometimes it may take longer depending on network and server load status.
INFO Check network connectivity to all endpoints...
INFO All endpoints are available... continue onboarding
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXX94XX7 to authenticate.
INFO Successfully Onboarded Resource to Azure VM Id=XXXX-XXX-XXX-XXX-XXXXX
From the Azure portal, verify that the connected hybrid VM is listed under the Azure resource group.