Error: Code="InvalidParameter" Message="Parameter 'osProfile' is not allowed." Target="osProfile"

Hi,

I am trying to create a VM scale set using a specialized image from the compute gallery. Then I am getting the error

and when i tries without the os_profile block I am getting the below error

image

Is there a way to go around this issue?