-
Notifications
You must be signed in to change notification settings - Fork 0
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
Do you have a good way to import existing items into state? #1
Comments
Hi, Sorry for the delay. If you were wanting to import, based on the terraform import module.management-groups.azurerm_management_group.level_2["MH/MH-Prod"] /providers/Microsoft.Management/managementGroups/MH-Prod Hope that helps? Mike :) |
Hi, yes, that helps, but I was looking for an import block. I've been playing around with something like this:
I'm not sure what's going on, but for linux it's not working. For my windows machine locally everything seems to import fine... The message I get on linux:
I'm not really sure why this works on windows. I was thinking maybe because of the "\"? |
Sorry, somewhat debugging here as I type, sorry to blow you up. I'm just not sure at all why this import statement isn't working in AZDO on my build agent.... As you can see it seems to inject I commented out the first level of import statements to see what resource it'd try to add. From what I can tell the names match up |
I also created this issue here, im not really sure where the problem is on my build agents. I'm guessing it has something to do with these build tasks. microsoft/azure-pipelines-terraform#258 Bah.... been doing more tracing.... I think it's just permissions issues. I'll close this if I get it working |
This was a permissions error. Thank you again for the help. |
Glad you got this resolved and thanks for commenting the outcome :) |
For some reason terraform doesn't pick up that I have existing management groups so I can't easily generate the imports via the code.
Do you have a way to generate import statements from this variable that is set?
The text was updated successfully, but these errors were encountered: