I guess you are trying to use an image from Azure Marketplace and there you must select the specific resources defined in the marketplace. You may try using a generalized image as explained in the following Microsoft reference: vm-generalized-image-version
----------
--please don't forget to upvote
and Accept as answer
if the reply is helpful--