Can't export to Azure Compute gallery

Doan Le 10 Reputation points
2023-04-02T23:31:35.8066667+00:00

hi support team,

I just started to use this service as PoC for an education institution.

I created a Ubuntu Server LTS 20.04 Template with some additional apps installed.

I created the Azure Compute gallery and tried to export the template to it, however, it keeps saying "Unable to save the image because an error has occurred."

Can you kindly provide some guidance ?

Thanks

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
282 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Susheel Bhatt 351 Reputation points
    2023-04-03T07:59:27.9366667+00:00

    There could be various reasons why you are encountering this error while trying to export the image to the Azure Compute gallery. Here are some things you can try:

    1. Check your permissions: Ensure that you have the necessary permissions to perform the export operation. Check that you are assigned the Contributor role or have been granted the necessary permissions on the target Azure subscription. If not, ask your Azure administrator to grant you the necessary permissions.
    2. Check the image name: Ensure that the name of the image that you are trying to export does not contain special characters or exceeds the maximum allowed length (64 characters). Also, ensure that the image name is unique within the Azure Compute gallery.
    3. Check the image status: Ensure that the status of the image is "Generalized" before exporting it to the Azure Compute gallery. If the image status is "Specialized", you will need to generalize the image before exporting it.
    4. Check the image size: Ensure that the size of the image does not exceed the maximum allowed size (128GB). If the image size exceeds this limit, you will need to reduce the size of the image before exporting it.
    5. Check the network connectivity: Ensure that you have a stable internet connection and that you are not behind a proxy or firewall that might be blocking the export operation.

    If none of the above solutions work, you can try exporting the image using the Azure CLI or PowerShell. Here are some resources that can help you with that:


  2. kobulloc-MSFT 24,321 Reputation points Microsoft Employee
    2023-04-19T17:58:11.8966667+00:00

    Thank you for reporting this, @Doan Le !

    Why am I getting an Unable to save the image because an error has occurred. error when attempting to export a template to Azure Compute gallery in Azure Lab Services?

    There was an issue on our end that was causing this error and a fix has been released that should resolve the issue. If you continue to see this error, please let us know in the comments so we can address this. Thank you!

    0 comments No comments