ContainerSolutions / terraform-examples

Simple and idiomatic examples of various Terraform functions and features.
https://containersolutions.github.io/terraform-examples/
159 stars 51 forks source link

Move azurerm to azure, add providers example #56

Closed teszes closed 3 years ago

sanyer commented 3 years ago

What's the reasoning behind the renaming azurerm to azure @teszes ?

teszes commented 3 years ago

The provider azurerm is one of four providers covering Azure stuff. There is three others, and they use resources which are interconnected with azurerm's. So for example to register a managed identitiy in Azure AD for a VM created w/ azurerm, you would use the azuread provider's resources. So they are separate, but tightly coupled. There are no such connections between other provider that I know of. Also, TF actually aliases the azure provider to azurerm, so if it introduces confusion, it resolves itself automatically.

teszes commented 3 years ago

So to be clear, you need to provide azurerm resources as params to azuread resources for example.

The other two providers are azurestack for Stack, which is on-prem Azure, and azuredevops, which I think is obvious.

sanyer commented 3 years ago

Ok. And you plan to put examples of all of these providers?

teszes commented 3 years ago

Yes, that's right. Plan is to work up to Landing Zones, reference architectures created by Microsoft, which would bring a lot of value in my opinion, and we could use them directly for projects