Skip to content
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

Always confirm tenant for connect-graph, confirm Autopilot config exists. #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jorgeasaurus
Copy link

I encountered times when I ran New-ClientVm and I was already authenticated to Tenant A via Connect-Graph but I wanted to create a ClientVm for Tenant B and I also need to create a new Autopilot config for Tenant B. The Connect-Graph step seems to get skipped and I am not then able to authenticate to Tenant B and no Autopilot config is created.
Adding a -ForceInteractive to Connect-Graph solved this in my trial runs by requiring me to select which account to use.
Additionally I added a throw in New-ClientVM.ps1 in case the Autopilot config is not found.

My apologies if I am missed something. This is my first ever pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant