Hi Itamar Safri
Welcome to Microsoft Q&A, Thanks for asking question here...!
To enable the replication on a VMware VM using Azure PowerShell, please follow with the below steps:
1.Use this command to get the list of process servers:
$processServers = Get-AzRecoveryServicesAsrFabric | Where-Object { $_.FabricType -eq "VMware" } | Select-Object -ExpandProperty FabricSpecificDetails | Select-Object -ExpandProperty ProcessServers
2.Pick a process server from the list:
$selectedProcessServer = $processServers[0] # Choose the appropriate index
3.When creating a replication item, use the selected process server:
New-AzRecoveryServicesAsrReplicationProtectedItem -ResourceGroupName "<YourResourceGroup>" -VaultName "<YourVaultName>" -ProtectionContainer "<YourContainer>" -ProtectableItem "<YourItem>" -ProcessServer $selectedProcessServer
Fixing the RunAs Account Issue
4.Make sure the ASR appliance is correctly registered in the Azure portal.
5.See available RunAs accounts, use:
$runAsAccounts = Get-AzRecoveryServicesAsrFabric | Select-Object -ExpandProperty FabricSpecificDetails | Select-Object -ExpandProperty RunAsAccounts
7.If no accounts are listed, create one through the Azure portal or PowerShell.
Reference Document : https://stackoverflow.com/questions/78118001/azure-site-recovery-vmware-to-azure-a-few-issues, https://docs.azure.cn/en-us/migrate/tutorial-migrate-vmware-powershell
Please let is know if required anything.