unable to create Powershell object for cmdlets to move a VM using Azure Resource Mover

Emmanuel Njang (TATA CONSULTANCY SERVICES LTD) 0 Reputation points Microsoft External Staff
2026-06-26T23:51:32.09+00:00

$targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IVirtualMachineResourceSettings

New-Object: Cannot find type [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api20230801.IVirtualMachineResourceSettings]: verify that the assembly containing this type is loaded.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 132.3K Reputation points MVP Volunteer Moderator
    2026-06-27T07:00:16.74+00:00

    Hi @Emmanuel Njang (TATA CONSULTANCY SERVICES LTD) ,

    did you try to install the module again?

    Install-Module -Name Az.ResourceMover -Force -AllowClobber 
    
    

    Please update all depended modules as well, for instance all Az modules.Verify there is no restriction to execute the modules/cmdlets (Execution Policy of PowerShell).


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.