No cloud environment matching the name '*****'

Error: There is no cloud environment matching the name ‘*****’

We have a working packer build that we have tried to promote up to a higher cloud environment. We have modified all of the variables for the new environment but it isn’t recognizing the cloud environment. This is the same cloud environment name that we pull from an az cloud list as well as what is in a working terraform deployment.

How does packer determine if that cloud environment is correct or not and is there a way for us to add one to it so that it doesn’t fail?