If the provider `Microsoft.ManagedIdentity` is not registered in the subscription, the lab scripts should take care of that. A code sample is available: [Register-LabAzureRequiredResourceProvider.ps1](https://github.com/AutomatedLab/AutomatedLab/blob/bc7440ca15193f6ea7cec110fa09c2442e66dbfd/AutomatedLabCore/functions/Azure/Register-LabAzureRequiredResourceProvider.ps1).
If the provider
Microsoft.ManagedIdentityis not registered in the subscription, the lab scripts should take care of that.A code sample is available: Register-LabAzureRequiredResourceProvider.ps1.