Hi @Laine Eetu ,
Did you check this documentation that has detailed walk through on Classic to ARM migration of Azure VMs, using PowerShell method as well as CLI
Links here :
[https://learn.microsoft.com/en-us/azure/virtual-machines/migration-classic-resource-manager-ps
[https://learn.microsoft.com/en-us/azure/virtual-machines/migration-classic-resource-manager-ps
Hope this helps.
Please "Accept as Answer" and Upvote with "Thumbs up" if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.