-
Notifications
You must be signed in to change notification settings - Fork 192
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
There must be at least one subscription that is eligible to contain resources. #385
Comments
@SapanPatibandha Thank you for reaching out! Does your user account has the proper role to the |
Hi @magodo to verify this point I perform following two things.
|
@SapanPatibandha The error you were getting is when sending the |
Hi @magodo I check and try few commands when i check version of cli it shows as following. So it looks like it is already installed, because i am able to generate terraform from my 'patibandha' subscription. I fun following query also and that works fine on cli. I think problem is something else.. |
@SapanPatibandha Yes, you can enable the log via |
@SapanPatibandha Another suspicious is that you are targeting to cloud rather than public (like #331 and #288)? |
What i understood from last reference (like #331 and #288) that i am not working in US Government. This is related to normal Azure cloud hosting. I am not sure if i can verify ARM_ENVIRONMENT variable to confirm. I am going to try |
I tried this command |
@SapanPatibandha From the log, I saw:
This indicates that you are authenticating using the service principal (client). So would you please check if that client has the proper role (e.g. contributor) in the subscription? Alternatively, you can unset those environment variables to fallback to using the azure CLI auth, which will use your user account instead. |
What i underside from your comment is, I need to execute following command to clear altercation . $env:AZURE_CLIENT_ID = $null are you suggesting that only? |
@SapanPatibandha Yes, you'll want to unset these environment variables (not so sure how to do it in powershell though) |
I think i am doing some silly mistake. :( i check command for power shell to remove that evn variable and that is as following.
So, i think even this env variable not set it is going to different subscription. I cant understand what else to verify. |
I think i found this issue. I think I was looking to the wrong variables.
This command gave proper detail about all 4 ARM variables. this looks working fine. Thanks for all the help.. really thanks from the bottom of my heart to get this resolved. |
Hi
I need some help to import Azure resource from other subscription in terraform file.
I am able to import infrastructure from my own account and subscription successfully.
But when I try to import from other subscription I am getting some error, not sure what is the issue in command.
Patibandha --- is my own subscription, from where I can import infrastructure
Eduberance-Subscription - when I try to import from this subscription, i get this error.
I am trying following command.
aztfexport rg --log-level DEBUG --log-path log.txt --s 43c0581c-XXXX-XXXX-XXXX-XXXXXXXX7cb6 Eduberance-Prod
Error is as following.
log.txt
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: