Root Cause:-
The VM creation didn’t go through because the NSG failed to set up. The error message said: “The moc-operator network security group service returned an error while reconciling: AddOrUpdateNetworkSecurityGroup not implemented for non-NC provider: Not Implemented (Code: NotImplemented).
This is because NSGs required SDN with NC (Network Controller) and your cluster is running in Hyper-V networking mode and the moc-operator can't process NSG deployment request in non-SDN environment.
Reference: https://learn.microsoft.com/en-us/azure/azure-local/manage/sdn-troubleshooting?view=azloc-2511#erro…
Solution/Fix:
How to fix the issue:
In order to create the VM with this requirement, you can follow below order to fix the issue :
- Enable SDN Integration (Network Controller): Enable Software-Defined Networking (SDN) enabled by Azure Arc on Azure Local using a PowerShell Act…
- Create Logical Network: Create logical networks for Azure Local VMs for multi-rack deployments (preview) - Azure Local | Mi…
- Create Virtual Network: Create virtual networks for multi-rack deployments of Azure Local (preview) - Azure Local | Microso…
- Create NSG (Network Security Group): Create network security groups, network security rules, default network access policies on Azure Lo…
- Attach NSG to the subnet.
- Prepare the OS image (Ubuntu in your case): Create Azure Local VM images for multi-rack deployments using Azure Storage account (preview) - Azu…
- Create the Virtual Machine: Create Azure Local virtual machines enabled by Azure Arc - Azure Local | Microsoft Learn