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_function_app & azurerm_app_service - support for vnet_route_all_enabled #13310

Merged
merged 3 commits into from
Sep 23, 2021
Merged

azurerm_function_app & azurerm_app_service - support for vnet_route_all_enabled #13310

merged 3 commits into from
Sep 23, 2021

Conversation

henrymcconville
Copy link
Contributor

Fixes #13259, inspired by #13073

Acceptance Tests:

➜  ~/go/src/github.com/hashicorp/terraform-provider-azurerm: git:(function-app-vnet-route-all) ✗ make acctests SERVICE='web' TESTARGS='-run=VnetRouteAllEnabled'
 TESTTIMEOUT='60m'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/web -run=VnetRouteAllEnabled -timeout 180m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled
=== PAUSE TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled
=== RUN   TestAccFunctionApp_siteConfigVnetRouteAllEnabled
=== PAUSE TestAccFunctionApp_siteConfigVnetRouteAllEnabled
=== RUN   TestAccFunctionApp_appSettingsVnetRouteAllEnabled
=== PAUSE TestAccFunctionApp_appSettingsVnetRouteAllEnabled
=== CONT  TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled
=== CONT  TestAccFunctionApp_appSettingsVnetRouteAllEnabled
=== CONT  TestAccFunctionApp_siteConfigVnetRouteAllEnabled
--- PASS: TestAccFunctionApp_siteConfigVnetRouteAllEnabled (151.79s)
--- PASS: TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled (154.94s)
--- PASS: TestAccFunctionApp_appSettingsVnetRouteAllEnabled (216.97s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/web	218.560s

@tdever42
Copy link

I'm waiting for this so I can start deploying my function apps with terraform. Thanks for getting it done!

@katbyte katbyte added the service/functions Function Apps label Sep 15, 2021
@piwi91
Copy link

piwi91 commented Sep 17, 2021

This should also be added to the azurerm_app_service resource

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 @henrymcconville - Thanks for this, it looks good, if you can resolve the conflicts I'll run it through tests and get it approved / merged.

@henrymcconville
Copy link
Contributor Author

Thanks @jackofallops! Conflicts resolved and acc tests are still passing:

==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/web -run=VnetRouteAllEnabled -timeout 180m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled
=== PAUSE TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled
=== RUN   TestAccFunctionApp_siteConfigVnetRouteAllEnabled
=== PAUSE TestAccFunctionApp_siteConfigVnetRouteAllEnabled
=== RUN   TestAccFunctionApp_appSettingsVnetRouteAllEnabled
=== PAUSE TestAccFunctionApp_appSettingsVnetRouteAllEnabled
=== CONT  TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled
=== CONT  TestAccFunctionApp_appSettingsVnetRouteAllEnabled
=== CONT  TestAccFunctionApp_siteConfigVnetRouteAllEnabled
--- PASS: TestAccFunctionAppDataSource_siteConfigVnetRouteAllEnabled (155.38s)
--- PASS: TestAccFunctionApp_appSettingsVnetRouteAllEnabled (165.74s)
--- PASS: TestAccFunctionApp_siteConfigVnetRouteAllEnabled (183.52s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/web	185.315s

@jackofallops jackofallops added this to the v2.78.0 milestone Sep 20, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @henrymcconville - LGTM now 🙌

@katbyte katbyte changed the title azurerm_function_app - Add VNET Route All site config option azurerm_function_app & azurerm_app_service - support for vnet_route_all_enabled Sep 23, 2021
@katbyte katbyte merged commit 460d7a2 into hashicorp:main Sep 23, 2021
katbyte added a commit that referenced this pull request Sep 23, 2021
@henrymcconville henrymcconville deleted the function-app-vnet-route-all branch September 23, 2021 10:37
@github-actions
Copy link

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

@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 Oct 29, 2021
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 vnet_route_all_enabled in azurerm_function_app
5 participants