Hi @Stack Admin
If you are still facing this issue, please try with below
$Subscription = "XXX"
New-AzConnectedMachineExtension -Name "AzureEdgeLifecycleManager" -ResourceGroupName XXX -MachineName $env:COMPUTERNAME -Location XX -Publisher "Microsoft.AzureStack.Orchestration" -ExtensionType "LcmController" -SubscriptionId $Subscription
New-AzConnectedMachineExtension -Name "AzureEdgeDeviceManagement" -ResourceGroupName XXX -MachineName $env:COMPUTERNAME -Location XX -Publisher "Microsoft.Edge" -ExtensionType "DeviceManagementExtension" -SubscriptionId $Subscription
Please feel free to let me know if you have any question.
If I have answered your query, please click "Accept as answer" as a token of appreciation