I recently found that if i dont include subscriptionId, tenantId, clientId and clientSecret (service principal credentials) in the provider block, my terraform scripts still work - albeit to the wrong subscription.
My question is:
How does this work?
Where is it pulling mhy subscription details from? I have looked at the environment variables and I didnt see anything. I have run terraform in a new terminal window.
Has this recently changed?
Also, I recently read on the Terraform documentation that the provider block is deprecated and used for backward compatibility - but I cant fidn the is paragraph again to find out the context. Does anyone know where this is?