Hi Robert Moorcroft,
Thanks for your post.
It's not unusual for different images to have different versions of packages. You can specify the version of the module to be imported.
Import-Module -Name Az.Accounts -RequiredVersion 2.19.0
Or you can uninstall the older version of the package.
Uninstall-Module -Name Az.Accounts -RequiredVersion 2.17.0
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.