ui.Error("Warning: You are using Azure Packer Builder to create VHDs which is being deprecated, consider using Managed Images. Learn more http://aka.ms/packermanagedimage")
}
// validate that Shared Gallery Image exists before publishing to SIG
// for Managed Images, validate that Shared Gallery Image exists before publishing to SIG
returnnil,fmt.Errorf("the Shared Gallery Image to which to publish the managed image version to does not exists in the resource group %s",b.config.SharedGalleryDestination.SigDestinationResourceGroup)
}
// SIG requires that replication regions include the region in which the Managed Image resides
returnnil,fmt.Errorf("SIG requires that replication regions %v include the region %s in which the Managed Image resides",b.config.SharedGalleryDestination.SigDestinationReplicationRegions,b.config.manageImageLocation)