-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment Failure With Release V1.2 With Fresh Clone Code #886
Comments
Hello
Actually I have tried deployment many times, this is the issue because of
fresh new deployment with latest version. Because very first time when we
cloned there is no TF states files or nothings
Even, screenshot may be of third forth time very first time there was no
file and still same error, if with every time deployed if any TF related
file will was removed and tried. But it wad giving same error.
Based on the error try to looking at Keyvault resources and Sotrage
Resources, in terraform files also looks same that try to look for existing
resources, bt as it’s fresh new deployment it will never find that resource
OR you can also try with very fresh resources without any single TF or TF
states related files.
Please let me know your thoughts
|
Please try to create a new Codespace and attempt the deployment from there. Also, examine the TF plan to see if Terraform is attempting to reuse or create the resources. Since it's a net new environment, the Storage Account and Key Vault should be marked as create in the TF plan. |
HI bjakems I cloned New codespace and tried to attempt the deployment from there What I feel maybe is from this 5 on main.tf file there is no When I have taken a look at the old version V1.1.1 KV module is on // Function App The above is my understanding and findings, |
This solved the issue for me, thanks @bjakems |
@ravikhunt are you using the latest code in the main branch with no changes? Version 1.2 introduces managed identity instead of using secrets in Key Vault where possible. Additionally, Terraform will automatically build its own dependency chain and depends_on is not required if the module accesses the other resources data in its arguments. |
Summary: Upon deploying the fresh latest clone of release V1.2, the deployment fails with errors indicating that the Storage Account and Key Vault are not found. This is occurring despite it being a fresh deployment with no prior state file, where Terraform should ideally create a new resource group along with all other associated services.
Steps to Reproduce:
Expected Behavior: For a fresh deployment, without an existing state file, Terraform should create a new resource group along with all necessary services such as Storage Account and Key Vault, without referencing or expecting existing resources.
Actual Behavior: The deployment fails with errors suggesting that the required resources (Storage Account, Key Vault) are not found, preventing a successful deployment.
Error Message: (Screenshot attached )
The text was updated successfully, but these errors were encountered: