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

data source azurerm_linux_web_app, azurerm_windows_web_app - add vnet writeback #20577

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions internal/services/appservice/linux_web_app_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func (r LinuxWebAppDataSource) Read() sdk.ResourceFunc {
webApp.OutboundIPAddressList = strings.Split(webApp.OutboundIPAddresses, ",")
webApp.PossibleOutboundIPAddresses = utils.NormalizeNilableString(props.PossibleOutboundIPAddresses)
webApp.PossibleOutboundIPAddressList = strings.Split(webApp.PossibleOutboundIPAddresses, ",")
if subnetId := utils.NormalizeNilableString(props.VirtualNetworkSubnetID); subnetId != "" {
webApp.VirtualNetworkSubnetID = subnetId
}
}

webApp.AuthSettings = helpers.FlattenAuthSettings(auth)
Expand Down
3 changes: 3 additions & 0 deletions internal/services/appservice/windows_web_app_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ func (d WindowsWebAppDataSource) Read() sdk.ResourceFunc {
webApp.OutboundIPAddressList = strings.Split(webApp.OutboundIPAddresses, ",")
webApp.PossibleOutboundIPAddresses = utils.NormalizeNilableString(props.PossibleOutboundIPAddresses)
webApp.PossibleOutboundIPAddressList = strings.Split(webApp.PossibleOutboundIPAddresses, ",")
if subnetId := utils.NormalizeNilableString(props.VirtualNetworkSubnetID); subnetId != "" {
webApp.VirtualNetworkSubnetID = subnetId
}
}

webApp.AuthSettings = helpers.FlattenAuthSettings(auth)
Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/linux_web_app.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ In addition to the Arguments listed above - the following Attributes are exporte

* `storage_account` - A `storage_account` block as defined below.

* `virtual_network_subnet_id` - The subnet id which the Linux Web App is vNet Integrated with.

* `tags` - A mapping of tags assigned to the Linux Web App.

---
Expand Down