-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,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 +131,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 +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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above, can we change to |
||
} | ||
} | ||
|
||
webApp.AuthSettings = helpers.FlattenAuthSettings(auth) | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -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. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The resource name in the provider is
Suggested change
Can you also do similar for the other property references below? |
||||||
|
||||||
* `enabled` - Is the Function App enabled? | ||||||
|
||||||
* `functions_extension_version` - The runtime version associated with the Function App. | ||||||
|
There was a problem hiding this comment.
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 theutils
package in new changes.