How do you keep Azure or Microsoft Graph automation in the correct tenant and subscription?
Documentation: Microsoft Learn
Keep Azure and Microsoft Graph automation in the intended tenant: set context explicitly, check permissions, and isolate concurrent operations.
Interview · Question 26 of 34
Answer before reveal
Your draft
Write the answer you would give in an interview. The model answer stays hidden until you have drafted at least a short response.
A strong answer
Make tenant and subscription explicit, use a workload identity where possible, inspect the active context before querying, avoid mutable global context in concurrent work, record the actual account/tenant in logs and verify permissions at the required scope.
Show it concretely
Expect this follow-up
How would you design the loop if the same process must work across several tenants?