code: def _create_storage_profile(self):
          
          if self.image_publisher:
              storage_profile = {
                  'image_reference': {
                      'publisher': self.image_publisher,
                      'offer': self.image_offer,
                      'sku': self.image_sku,
                      'version': self.image_version
                  },
              }
          else:
              for image in self.compute.images.list():
                  if image.name == self.image_id:
                      image_id = image.id
                      break
              else:
                  raise AzureCloudException(
                      'Image with name {0} not found.'.format(self.image_id)
                  )
  
              storage_profile = {
                  'image_reference': {
                      'id': image_id
                  }
              }
  
          return storage_profile
docs: Create the storage profile for the instance.
  
          Image reference can be a custom image name or a published urn.