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

azurerm_windows_web_app,azurerm_windows_web_app_slot, azurerm_windows_function_app, azurerm_windows_function_app_slot, azurerm_linux_web_app,azurerm_linux_web_app_slot, azurerm_linux_function_app, azurerm_linux_function_app_slot - add hosting_environment_id property #20471

Merged
merged 7 commits into from
Apr 20, 2023

Conversation

xiaxyi
Copy link
Contributor

@xiaxyi xiaxyi commented Feb 15, 2023

No description provided.

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @xiaxyi - Thanks for this PR. I've left a few comments inline below if you can take a look and address I think this will be good to merge.

Thanks!

@@ -639,6 +645,10 @@ func (r WindowsFunctionAppResource) Read() sdk.ResourceFunc {
DefaultHostname: utils.NormalizeNilableString(props.DefaultHostName),
}

if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil {
state.HostingEnvId = utils.NormalizeNilableString(hostingEnv.ID)
Copy link
Member

Choose a reason for hiding this comment

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

Can we change this to use the pointer package as it's already imported? We'll be refactoring all references of this soon, but we shouldn't continue use of the utils package in new changes.

@@ -314,6 +320,9 @@ func (d WindowsWebAppDataSource) Read() sdk.ResourceFunc {
if subnetId := utils.NormalizeNilableString(props.VirtualNetworkSubnetID); subnetId != "" {
webApp.VirtualNetworkSubnetID = subnetId
}
if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil {
webApp.HostingEnvId = utils.NormalizeNilableString(hostingEnv.ID)
Copy link
Member

Choose a reason for hiding this comment

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

As above, can we change to pointer package here?

@@ -63,6 +63,8 @@ In addition to the Arguments listed above - the following Attributes are exporte

* `default_hostname` - The default hostname of the Linux Function App.

* `hosting_environment_id` - The hosting environment id used by Function App.
Copy link
Member

Choose a reason for hiding this comment

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

The resource name in the provider is app_servce_environment we should make this clearer in the documentation references? Perhaps:

Suggested change
* `hosting_environment_id` - The hosting environment id used by Function App.
* `hosting_environment_id` - The ID of the App Service Environment used by this Linux Function App.

Can you also do similar for the other property references below?

@xiaxyi
Copy link
Contributor Author

xiaxyi commented Apr 6, 2023

Thanks @jackofallops , code is updated.

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thanks for those changes @xiaxyi - this LGTM now 👍

@jackofallops jackofallops merged commit 5ce58f2 into hashicorp:main Apr 20, 2023
@github-actions github-actions bot added this to the v3.53.0 milestone Apr 20, 2023
jackofallops added a commit that referenced this pull request Apr 20, 2023
@github-actions
Copy link

This functionality has been released in v3.53.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!

Copy link

github-actions bot commented Jun 2, 2024

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 Jun 2, 2024
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.

2 participants