diff --git a/internal/services/appservice/linux_function_app_data_source.go b/internal/services/appservice/linux_function_app_data_source.go index b191d54b57a0..861d1fc9e3e2 100644 --- a/internal/services/appservice/linux_function_app_data_source.go +++ b/internal/services/appservice/linux_function_app_data_source.go @@ -8,6 +8,7 @@ import ( "time" "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-03-01/web" // nolint: staticcheck + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -52,6 +53,7 @@ type LinuxFunctionAppDataSourceModel struct { CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` DefaultHostname string `tfschema:"default_hostname"` + HostingEnvId string `tfschema:"hosting_environment_id"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` OutboundIPAddressList []string `tfschema:"outbound_ip_address_list"` @@ -193,6 +195,11 @@ func (d LinuxFunctionAppDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -323,6 +330,10 @@ func (d LinuxFunctionAppDataSource) Read() sdk.ResourceFunc { DefaultHostname: utils.NormalizeNilableString(functionApp.DefaultHostName), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + if v := props.OutboundIPAddresses; v != nil { state.OutboundIPAddresses = *v state.OutboundIPAddressList = strings.Split(*v, ",") diff --git a/internal/services/appservice/linux_function_app_resource.go b/internal/services/appservice/linux_function_app_resource.go index 45fb03e4dfc4..879c4e5890bc 100644 --- a/internal/services/appservice/linux_function_app_resource.go +++ b/internal/services/appservice/linux_function_app_resource.go @@ -9,6 +9,7 @@ import ( "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-03-01/web" // nolint: staticcheck "github.com/google/uuid" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -61,6 +62,7 @@ type LinuxFunctionAppModel struct { // Computed CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` DefaultHostname string `tfschema:"default_hostname"` + HostingEnvId string `tfschema:"hosting_environment_id"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` OutboundIPAddressList []string `tfschema:"outbound_ip_address_list"` @@ -276,6 +278,11 @@ func (r LinuxFunctionAppResource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -639,6 +646,10 @@ func (r LinuxFunctionAppResource) Read() sdk.ResourceFunc { DefaultHostname: utils.NormalizeNilableString(props.DefaultHostName), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + if v := props.OutboundIPAddresses; v != nil { state.OutboundIPAddresses = *v state.OutboundIPAddressList = strings.Split(*v, ",") diff --git a/internal/services/appservice/linux_function_app_slot_resource.go b/internal/services/appservice/linux_function_app_slot_resource.go index abd3abde1849..03502598a941 100644 --- a/internal/services/appservice/linux_function_app_slot_resource.go +++ b/internal/services/appservice/linux_function_app_slot_resource.go @@ -54,6 +54,7 @@ type LinuxFunctionAppSlotModel struct { Tags map[string]string `tfschema:"tags"` VirtualNetworkSubnetID string `tfschema:"virtual_network_subnet_id"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -267,6 +268,11 @@ func (r LinuxFunctionAppSlotResource) Attributes() map[string]*pluginsdk.Schema Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -636,6 +642,10 @@ func (r LinuxFunctionAppSlotResource) Read() sdk.ResourceFunc { DefaultHostname: pointer.From(props.DefaultHostName), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + functionApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) if err != nil { return fmt.Errorf("reading parent Function App for Linux %s: %+v", *id, err) diff --git a/internal/services/appservice/linux_web_app_data_source.go b/internal/services/appservice/linux_web_app_data_source.go index 9a4319a1601f..a9953c73ea98 100644 --- a/internal/services/appservice/linux_web_app_data_source.go +++ b/internal/services/appservice/linux_web_app_data_source.go @@ -6,6 +6,7 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -43,6 +44,7 @@ type LinuxWebAppDataSourceModel struct { ConnectionStrings []helpers.ConnectionString `tfschema:"connection_string"` Tags map[string]string `tfschema:"tags"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -135,6 +137,11 @@ func (r LinuxWebAppDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "enabled": { Type: pluginsdk.TypeBool, Computed: true, @@ -319,6 +326,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 hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + webApp.HostingEnvId = pointer.From(hostingEnv.ID) + } if subnetId := utils.NormalizeNilableString(props.VirtualNetworkSubnetID); subnetId != "" { webApp.VirtualNetworkSubnetID = subnetId } diff --git a/internal/services/appservice/linux_web_app_resource.go b/internal/services/appservice/linux_web_app_resource.go index 7f07ea86ac4c..154597c86372 100644 --- a/internal/services/appservice/linux_web_app_resource.go +++ b/internal/services/appservice/linux_web_app_resource.go @@ -50,6 +50,7 @@ type LinuxWebAppModel struct { ZipDeployFile string `tfschema:"zip_deploy_file"` Tags map[string]string `tfschema:"tags"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -191,6 +192,11 @@ func (r LinuxWebAppResource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -540,6 +546,10 @@ func (r LinuxWebAppResource) Read() sdk.ResourceFunc { Tags: tags.ToTypedObject(webApp.Tags), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { state.VirtualNetworkSubnetID = subnetId } diff --git a/internal/services/appservice/linux_web_app_slot_resource.go b/internal/services/appservice/linux_web_app_slot_resource.go index c7b17a02b435..a566c2192869 100644 --- a/internal/services/appservice/linux_web_app_slot_resource.go +++ b/internal/services/appservice/linux_web_app_slot_resource.go @@ -49,6 +49,7 @@ type LinuxWebAppSlotModel struct { Tags map[string]string `tfschema:"tags"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` DefaultHostname string `tfschema:"default_hostname"` + HostingEnvId string `tfschema:"hosting_environment_id"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` OutboundIPAddressList []string `tfschema:"outbound_ip_address_list"` @@ -198,6 +199,11 @@ func (r LinuxWebAppSlotResource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -512,6 +518,10 @@ func (r LinuxWebAppSlotResource) Read() sdk.ResourceFunc { Tags: tags.ToTypedObject(webAppSlot.Tags), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + webApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) if err != nil { return fmt.Errorf("reading parent Web App for Linux %s: %+v", *id, err) diff --git a/internal/services/appservice/windows_function_app_data_source.go b/internal/services/appservice/windows_function_app_data_source.go index 1baeac03dfe6..b115611a5853 100644 --- a/internal/services/appservice/windows_function_app_data_source.go +++ b/internal/services/appservice/windows_function_app_data_source.go @@ -8,6 +8,7 @@ import ( "time" "github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-03-01/web" // nolint: staticcheck + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -52,6 +53,7 @@ type WindowsFunctionAppDataSourceModel struct { CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` DefaultHostname string `tfschema:"default_hostname"` + HostingEnvId string `tfschema:"hosting_environment_id"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` OutboundIPAddressList []string `tfschema:"outbound_ip_address_list"` @@ -184,6 +186,11 @@ func (d WindowsFunctionAppDataSource) Attributes() map[string]*pluginsdk.Schema Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -273,6 +280,10 @@ func (d WindowsFunctionAppDataSource) Read() sdk.ResourceFunc { functionApp.DefaultHostname = utils.NormalizeNilableString(props.DefaultHostName) functionApp.VirtualNetworkSubnetId = utils.NormalizeNilableString(props.VirtualNetworkSubnetID) + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + functionApp.HostingEnvId = pointer.From(hostingEnv.ID) + } + if v := props.OutboundIPAddresses; v != nil { functionApp.OutboundIPAddresses = *v functionApp.OutboundIPAddressList = strings.Split(*v, ",") diff --git a/internal/services/appservice/windows_function_app_resource.go b/internal/services/appservice/windows_function_app_resource.go index 25be0ec45e06..9789e69c06ef 100644 --- a/internal/services/appservice/windows_function_app_resource.go +++ b/internal/services/appservice/windows_function_app_resource.go @@ -61,6 +61,7 @@ type WindowsFunctionAppModel struct { // Computed CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -277,6 +278,11 @@ func (r WindowsFunctionAppResource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -639,6 +645,10 @@ func (r WindowsFunctionAppResource) Read() sdk.ResourceFunc { DefaultHostname: utils.NormalizeNilableString(props.DefaultHostName), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + if v := props.OutboundIPAddresses; v != nil { state.OutboundIPAddresses = *v state.OutboundIPAddressList = strings.Split(*v, ",") diff --git a/internal/services/appservice/windows_function_app_slot_resource.go b/internal/services/appservice/windows_function_app_slot_resource.go index ea46482a0341..990b75b69435 100644 --- a/internal/services/appservice/windows_function_app_slot_resource.go +++ b/internal/services/appservice/windows_function_app_slot_resource.go @@ -53,6 +53,7 @@ type WindowsFunctionAppSlotModel struct { SiteConfig []helpers.SiteConfigWindowsFunctionAppSlot `tfschema:"site_config"` Tags map[string]string `tfschema:"tags"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -269,6 +270,11 @@ func (r WindowsFunctionAppSlotResource) Attributes() map[string]*pluginsdk.Schem Description: "The default hostname of the Windows Function App Slot.", }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -644,6 +650,10 @@ func (r WindowsFunctionAppSlotResource) Read() sdk.ResourceFunc { DefaultHostname: pointer.From(props.DefaultHostName), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + functionApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) if err != nil { return fmt.Errorf("reading parent Function App for Linux %s: %+v", *id, err) diff --git a/internal/services/appservice/windows_web_app_data_source.go b/internal/services/appservice/windows_web_app_data_source.go index 826f8aaf2946..0cf31bc9c8fb 100644 --- a/internal/services/appservice/windows_web_app_data_source.go +++ b/internal/services/appservice/windows_web_app_data_source.go @@ -6,6 +6,7 @@ import ( "strings" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" @@ -40,6 +41,7 @@ type WindowsWebAppDataSourceModel struct { StorageAccounts []helpers.StorageAccount `tfschema:"storage_account"` ConnectionStrings []helpers.ConnectionString `tfschema:"connection_string"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -130,6 +132,11 @@ func (d WindowsWebAppDataSource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "enabled": { Type: pluginsdk.TypeBool, Computed: true, @@ -314,6 +321,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 = pointer.From(hostingEnv.ID) + } } webApp.AuthSettings = helpers.FlattenAuthSettings(auth) diff --git a/internal/services/appservice/windows_web_app_resource.go b/internal/services/appservice/windows_web_app_resource.go index 9f498feae215..097c28135f28 100644 --- a/internal/services/appservice/windows_web_app_resource.go +++ b/internal/services/appservice/windows_web_app_resource.go @@ -47,6 +47,7 @@ type WindowsWebAppModel struct { StorageAccounts []helpers.StorageAccount `tfschema:"storage_account"` ConnectionStrings []helpers.ConnectionString `tfschema:"connection_string"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -190,6 +191,11 @@ func (r WindowsWebAppResource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -570,6 +576,10 @@ func (r WindowsWebAppResource) Read() sdk.ResourceFunc { Tags: tags.ToTypedObject(webApp.Tags), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + if subnetId := pointer.From(props.VirtualNetworkSubnetID); subnetId != "" { state.VirtualNetworkSubnetID = subnetId } diff --git a/internal/services/appservice/windows_web_app_slot_resource.go b/internal/services/appservice/windows_web_app_slot_resource.go index 06042465dabf..fdf93a77d06f 100644 --- a/internal/services/appservice/windows_web_app_slot_resource.go +++ b/internal/services/appservice/windows_web_app_slot_resource.go @@ -45,6 +45,7 @@ type WindowsWebAppSlotModel struct { StorageAccounts []helpers.StorageAccount `tfschema:"storage_account"` ConnectionStrings []helpers.ConnectionString `tfschema:"connection_string"` CustomDomainVerificationId string `tfschema:"custom_domain_verification_id"` + HostingEnvId string `tfschema:"hosting_environment_id"` DefaultHostname string `tfschema:"default_hostname"` Kind string `tfschema:"kind"` OutboundIPAddresses string `tfschema:"outbound_ip_addresses"` @@ -198,6 +199,11 @@ func (r WindowsWebAppSlotResource) Attributes() map[string]*pluginsdk.Schema { Computed: true, }, + "hosting_environment_id": { + Type: pluginsdk.TypeString, + Computed: true, + }, + "kind": { Type: pluginsdk.TypeString, Computed: true, @@ -528,6 +534,10 @@ func (r WindowsWebAppSlotResource) Read() sdk.ResourceFunc { Tags: tags.ToTypedObject(webAppSlot.Tags), } + if hostingEnv := props.HostingEnvironmentProfile; hostingEnv != nil { + state.HostingEnvId = pointer.From(hostingEnv.ID) + } + webApp, err := client.Get(ctx, id.ResourceGroup, id.SiteName) if err != nil { return fmt.Errorf("reading parent Web App for Linux %s: %+v", *id, err) diff --git a/website/docs/d/linux_function_app.html.markdown b/website/docs/d/linux_function_app.html.markdown index b7d14296cf3b..a60568198017 100644 --- a/website/docs/d/linux_function_app.html.markdown +++ b/website/docs/d/linux_function_app.html.markdown @@ -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 ID of the App Service Environment used by Function App. + * `enabled` - Is the Function App enabled? * `functions_extension_version` - The runtime version associated with the Function App. diff --git a/website/docs/d/linux_web_app.html.markdown b/website/docs/d/linux_web_app.html.markdown index b1e85024cdb8..93c592344901 100644 --- a/website/docs/d/linux_web_app.html.markdown +++ b/website/docs/d/linux_web_app.html.markdown @@ -59,6 +59,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `custom_domain_verification_id` - The identifier used by App Service to perform domain ownership verification via DNS TXT record. +* `hosting_environment_id` - The ID of the App Service Environment used by App Service. + * `default_hostname` - The default hostname of the Linux Web App. * `enabled` - Is the Linux Web App enabled? diff --git a/website/docs/d/windows_function_app.html.markdown b/website/docs/d/windows_function_app.html.markdown index 8b0aba57c9e6..836436cd58e4 100644 --- a/website/docs/d/windows_function_app.html.markdown +++ b/website/docs/d/windows_function_app.html.markdown @@ -61,6 +61,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `default_hostname` - The default hostname of the Windows Function App. +* `hosting_environment_id` - The ID of the App Service Environment used by Function App. + * `enabled` - Is the Function App enabled? * `functions_extension_version` - The runtime version associated with the Function App. diff --git a/website/docs/d/windows_web_app.html.markdown b/website/docs/d/windows_web_app.html.markdown index 82f5da519f2f..6a83b2df5b9d 100644 --- a/website/docs/d/windows_web_app.html.markdown +++ b/website/docs/d/windows_web_app.html.markdown @@ -57,6 +57,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `custom_domain_verification_id` - The identifier used by App Service to perform domain ownership verification via DNS TXT record. +* `hosting_environment_id` - The ID of the App Service Environment used by App Service. + * `default_hostname` - The Default Hostname of the Windows Web App. * `enabled` - Is the Windows Web App enabled? diff --git a/website/docs/r/linux_function_app.html.markdown b/website/docs/r/linux_function_app.html.markdown index 3bdb0aa3d9d8..66c8c48935a1 100644 --- a/website/docs/r/linux_function_app.html.markdown +++ b/website/docs/r/linux_function_app.html.markdown @@ -504,6 +504,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 ID of the App Service Environment used by Function App. + * `identity` - An `identity` block as defined below. * `kind` - The Kind value for this Linux Function App. diff --git a/website/docs/r/linux_function_app_slot.html.markdown b/website/docs/r/linux_function_app_slot.html.markdown index 42b81bb46e72..30a1a818a31a 100644 --- a/website/docs/r/linux_function_app_slot.html.markdown +++ b/website/docs/r/linux_function_app_slot.html.markdown @@ -510,6 +510,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `default_hostname` - The default hostname of the Linux Function App Slot. +* `hosting_environment_id` - The ID of the App Service Environment used by Function App Slot. + * `identity` - An `identity` block as defined below. * `kind` - The Kind value for this Linux Function App Slot. diff --git a/website/docs/r/linux_web_app.html.markdown b/website/docs/r/linux_web_app.html.markdown index 745ec707d52e..3bbde359edcb 100644 --- a/website/docs/r/linux_web_app.html.markdown +++ b/website/docs/r/linux_web_app.html.markdown @@ -795,6 +795,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `custom_domain_verification_id` - The identifier used by App Service to perform domain ownership verification via DNS TXT record. +* `hosting_environment_id` - The ID of the App Service Environment used by App Service. + * `default_hostname` - The default hostname of the Linux Web App. * `kind` - The Kind value for this Linux Web App. diff --git a/website/docs/r/linux_web_app_slot.html.markdown b/website/docs/r/linux_web_app_slot.html.markdown index 9f215e186464..61628fc73c02 100644 --- a/website/docs/r/linux_web_app_slot.html.markdown +++ b/website/docs/r/linux_web_app_slot.html.markdown @@ -794,6 +794,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `custom_domain_verification_id` - The identifier used by App Service to perform domain ownership verification via DNS TXT record. +* `hosting_environment_id` - The ID of the App Service Environment used by App Service Slot. + * `default_hostname` - The default hostname of the Linux Web App. * `kind` - The Kind value for this Linux Web App. diff --git a/website/docs/r/windows_function_app.html.markdown b/website/docs/r/windows_function_app.html.markdown index 13fec12cca9d..fc24ef1cb269 100644 --- a/website/docs/r/windows_function_app.html.markdown +++ b/website/docs/r/windows_function_app.html.markdown @@ -480,6 +480,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `default_hostname` - The default hostname of the Windows Function App. +* `hosting_environment_id` - The ID of the App Service Environment used by Function App. + * `identity` - An `identity` block as defined below. * `kind` - The Kind value for this Windows Function App. diff --git a/website/docs/r/windows_function_app_slot.html.markdown b/website/docs/r/windows_function_app_slot.html.markdown index 89f009d8c6b6..a1a00f858481 100644 --- a/website/docs/r/windows_function_app_slot.html.markdown +++ b/website/docs/r/windows_function_app_slot.html.markdown @@ -483,6 +483,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `default_hostname` - The default hostname of the Windows Function App Slot. +* `hosting_environment_id` - The ID of the App Service Environment used by Function App Slot. + * `identity` - An `identity` block as defined below. * `kind` - The Kind value for this Windows Function App Slot. diff --git a/website/docs/r/windows_web_app.html.markdown b/website/docs/r/windows_web_app.html.markdown index 7619c70da7e4..706c4dc618fa 100644 --- a/website/docs/r/windows_web_app.html.markdown +++ b/website/docs/r/windows_web_app.html.markdown @@ -838,6 +838,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `custom_domain_verification_id` - The identifier used by App Service to perform domain ownership verification via DNS TXT record. +* `hosting_environment_id` - The ID of the App Service Environment used by App Service. + * `default_hostname` - The default hostname of the Windows Web App. * `identity` - An `identity` block as defined below. diff --git a/website/docs/r/windows_web_app_slot.html.markdown b/website/docs/r/windows_web_app_slot.html.markdown index 0a92cfa0a3ba..caf82099455e 100644 --- a/website/docs/r/windows_web_app_slot.html.markdown +++ b/website/docs/r/windows_web_app_slot.html.markdown @@ -830,6 +830,8 @@ In addition to the Arguments listed above - the following Attributes are exporte * `custom_domain_verification_id` - The identifier used by App Service to perform domain ownership verification via DNS TXT record. +* `hosting_environment_id` - The ID of the App Service Environment used by App Service Slot. + * `default_hostname` - The default hostname of the Windows Web App Slot. * `identity` - An `identity` block as defined below.