Apologies for delayed response on this.
You try with below cmdlets and see if that helps.
https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azgalleryimageversion?view=azps-11.2.0 https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azdisk?view=azps-11.2.0