How to fix error "Required environment variable not found: AZ_LS_CERT_THUMBPRINT."

Sophie30Reputation points
2025-04-20T14:59:34.22+00:00

I am using Azure platform the maching learning service. In the designer tab, I created a pipeline and then submit and configure. However, everytime I have the error listed as "Failed to execute command group with error An unexpected error occurred while executing command due to: Required environment variable not found: AZ_LS_CERT_THUMBPRINT. (inner_err: None)".

My compute instance is created and running, but I haven’t been able to identify why this environment variable is missing or how to set it correctly. Could you please advise on the steps needed to resolve this error so the pipeline can run successfully?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,244 questions
{count} vote

Accepted answer
  1. Azar27,670Reputation pointsMVP
    2025-04-20T17:46:11.85+00:00

    Hi there Sophie

    Thanks for using QandA platform

    Guess the compute environment is missing a needed variable for secure certificate-based communication — specifically AZ_LS_CERT_THUMBPRINT.

    1. Go to your pipeline job settings and check the environment configuration.
    2. If you’re using a custom Docker image or environment, make sure this variable is defined in your environment or passed during job setup.
    3. You can manually set it by going to the Environment variables section in your compute configuration or pipeline step and adding: AZ_LS_CERT_THUMBPRINT=<your_thumbprint_here>

    Also try recreating the compute or using a default Azure ML environment to see if that resolves it.

    If this helps kindly accept the answer thanks much.


0 additional answers

Sort by: Most helpful

    Your answer