-
Notifications
You must be signed in to change notification settings - Fork 66
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
Terraform Import blocks aren't working correctly between windows / linux #258
Comments
When I log into the build agent directly and run the There seems to be something missing in regards to the backend configuration maybe? Is there special setup I need to do for that to work correctly for plan steps? Shouldn't the init be enough? |
I think this may be due to permissions errors. Is there a better way to maybe surface those? When I enable trace logging I get this: 2024-11-11T08:49:37.301Z [DEBUG] provider.terraform-provider-azurerm_v4.7.0_x5: {"error":{"code":"AuthorizationFailed","message":"The client '' with object id '' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/lhg-sandboxes' or the scope is invalid. If access was recently granted, please refresh your credentials."}} |
I'd like to request that this error be surfaced better. If there is a permissions error I feel like that should be displayed instead of a "not found" generic message. The only way to know you're hitting permissions errors is to enable trace logging. |
Hi, sorry for late reply, I will see if we can surface permission errors better. br |
That would be great! Thank you
…On Sun, Dec 15, 2024, 2:41 PM mericstam ***@***.***> wrote:
Hi, sorry for late reply, I will see if we can surface permission errors
better.
br
Manuel
—
Reply to this email directly, view it on GitHub
<#258 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVIV2N4LD55VCXFXK3WA7D2FXSOFAVCNFSM6AAAAABRRIYRNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBUGA2TENZWGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Hi, I have some code like this:
On windows, when I run this it does this:
On my linux build agent, I get the following:
It looks like it's adding some "\"'s in the import statements for some reason. I can't reproduce locally, or on WSL. Only on my build agent using this task...
This is my build script so far, as bare bones as I could make it:
The text was updated successfully, but these errors were encountered: