Job Deploy: Environment test-ode could not be found. The environment does not exist or has not been authorized for use.

Jayashree Bose 21 Reputation points

We have an pipeline which is being used to provision our resources. This pipeline uses a deployment job. Earlier, if the Environment does not exist, pipeline used to create the environment automatically which is not happening due to the recent changes in Azure DevOps as mentioned in the documentation .
So, when I am trying to run the pipeline without the environment, I am getting the below error:


I have tried to create the environment using powershell script (which is using APIs to create the environment) within pipeline, but still getting the same error. I would like to Know, if the older behavior of automatic environment creation can be achieved?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,755 questions
0 comments No comments
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee

    @Jayashree Bose Thank you for your query!!!

    Please note that Azure DevOps is currently not supported in the Q&A forums, the supported products are listed over here :

    You may ask the experts in the dedicated Azure DevOps forum over here:

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful