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_windows_web_app,azurerm_windows_web_app_slot,azurerm_windows_function_app,azurerm_windows_function_app_slot - add push_setting feature. #20522

Closed
wants to merge 12 commits into from

Conversation

xiaxyi
Copy link
Contributor

@xiaxyi xiaxyi commented Feb 17, 2023

Add push feature for windows apps.

acc tests:

--- PASS: TestAccWindowsFunctionApp_withPush (838.18s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice    838.951s
--- PASS: TestAccWindowsWebApp_push (783.80s)
--- PASS: TestAccWindowsWebApp_pushUpdate (1252.96s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/appservice    1253.777s



@jackofallops jackofallops self-assigned this Apr 17, 2023
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 @xiaxyi
Thanks for this PR. I've left some comments below on the implementation / design of this property and how it's used. Can you take a look?

Thanks!

MaxItems: 1,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
"is_push_enabled": {
Copy link
Member

Choose a reason for hiding this comment

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

The presence of this block should be used define this value?

Comment on lines +1670 to +1671
},
"tags_to_whitelist": {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
},
"tags_to_whitelist": {
},
"tags_to_whitelist": {

tags_requiring_auth = ["dtags1"]
}
app_settings = {
"MS_NotificationHubName" = "${azurerm_notification_hub.test.name}"
Copy link
Member

Choose a reason for hiding this comment

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

I feel this should be a schema property, specifically the ID of the notification hub, and not a value in the app_settings map so we can validate it, and retrieve the name value from the resource? This will allow terraform to correctly plan the dependencies, and will also better inform users that this is required, rather than expecting users to know this needs adding here?

@katbyte
Copy link
Collaborator

katbyte commented Dec 7, 2023

@xiaxyi - i'm going to close this out as its been sitting here for a number of months, please do reopen it once you are ready to continue working on it. thanks

@katbyte katbyte closed this Dec 7, 2023
Copy link

github-actions bot commented May 4, 2024

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 May 4, 2024
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.

3 participants