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

New data sources azurerm_management_group_template_deployment, azurerm_resource_group_template_deployment, azurerm_subscription_template_deployment, azurerm_tenant_template_deployment #14524

Merged
merged 20 commits into from
Jun 22, 2022

Conversation

sdebruyn
Copy link
Contributor

@sdebruyn sdebruyn commented Dec 8, 2021

Fixes #14523

Adds data sources as mentioned in the title so that you can retrieve the values of outputs of deployed templates.

@katbyte
Copy link
Collaborator

katbyte commented Dec 9, 2021

test failure @sdebruyn

------- Stdout: -------
=== RUN   TestAccDataSourceManagementGroupTemplateDeployment
=== PAUSE TestAccDataSourceManagementGroupTemplateDeployment
=== CONT  TestAccDataSourceManagementGroupTemplateDeployment
    testing_new_config.go:81: no "id" found in attributes
    testing_new.go:53: no "id" found in attributes
--- FAIL: TestAccDataSourceManagementGroupTemplateDeployment (136.73s)
FAIL

@sdebruyn
Copy link
Contributor Author

sdebruyn commented Jan 6, 2022

sorry about that @katbyte, should be fixed now

@sdebruyn
Copy link
Contributor Author

@katbyte @tombuildsstuff Any chance to merge this in before we get to 3.0?

@tombuildsstuff tombuildsstuff self-assigned this Mar 21, 2022
@sdebruyn
Copy link
Contributor Author

sdebruyn commented Apr 7, 2022

Rebased on latest main
@tombuildsstuff @katbyte Would you care to took a look please? The label says XL but most of the changes are very similar to what's already there.

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @sdebruyn

Thanks for this PR - apologies this has taken a while for us to get too.

I've taken a look through and left some comments inline, but on the whole this looks pretty good, if we can fix those up then we should be able to get this merged. From the Management Group resource whilst the API accepts both the Name and the ID - within Terraform we consistently use the ID (to avoid unintentional diff's in the responses due to escaping differences between the different API's) - so we'd need to update this to use the (UU)ID rather than the Name.

Thanks!

@sdebruyn
Copy link
Contributor Author

sdebruyn commented Jun 3, 2022

@tombuildsstuff Thanks for the first review 🙌 It is now ready for re-review 😉

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @sdebruyn

Thanks for pushing those changes - apologies for the delay on the re-review here!

Taking a look through this now LGTM 👍

Thanks!

@tombuildsstuff tombuildsstuff added this to the v3.11.0 milestone Jun 22, 2022
@tombuildsstuff
Copy link
Contributor

Acceptance Tests look good 👍

@tombuildsstuff tombuildsstuff merged commit 48a5ebf into hashicorp:main Jun 22, 2022
tombuildsstuff added a commit that referenced this pull request Jun 22, 2022
@github-actions
Copy link

This functionality has been released in v3.11.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

sergelogvinov pushed a commit to sergelogvinov/terraform-provider-azurerm that referenced this pull request Jul 11, 2022
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Azure Template Deployment data sources
3 participants