diff --git a/internal/services/appservice/linux_web_app_data_source.go b/internal/services/appservice/linux_web_app_data_source.go index 5e714212dc6b..c978ecd6c6c4 100644 --- a/internal/services/appservice/linux_web_app_data_source.go +++ b/internal/services/appservice/linux_web_app_data_source.go @@ -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) diff --git a/internal/services/appservice/windows_web_app_data_source.go b/internal/services/appservice/windows_web_app_data_source.go index 53ebad72ca6a..6bdf98710bca 100644 --- a/internal/services/appservice/windows_web_app_data_source.go +++ b/internal/services/appservice/windows_web_app_data_source.go @@ -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) diff --git a/website/docs/d/linux_web_app.html.markdown b/website/docs/d/linux_web_app.html.markdown index 0640d6aabe28..88f3df6f2bf8 100644 --- a/website/docs/d/linux_web_app.html.markdown +++ b/website/docs/d/linux_web_app.html.markdown @@ -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. ---