An Azure service that is used to provision Windows and Linux virtual machines.
Hello Henrik Flodén
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Based on the issue looks like you are trying to update the OS profile of a migrated VM, which is not allowed. This is because the OS profile is set during the initial deployment of the VM and cannot be changed afterwards.
One workaround for this issue is to create a new VM with the updated OS profile and migrate your workload to the new VM. Alternatively, you can use the deploy-if-not-exist policy to deploy the VM application to the migrated VMs.
If you are still facing issues, I would recommend reaching out to Azure support for further assistance. They will be able to provide you with more specific guidance based on your environment and configuration.
Hope this helps.