-
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_slot
, azurerm_windows_function_app_slot
- Fix error 500/409 when using virtual network subnet
#25634
azurerm_windows_web_app_slot
, azurerm_windows_function_app_slot
- Fix error 500/409 when using virtual network subnet
#25634
Conversation
Thanks @Apokalypt for the PR, can we please hold adding the serverFarmId in the request as I'm trying to confirm with the app service team to see if it's required. I will update the thread once I have a progress, thanks for your understanding! |
Ok thanks. We will wait for your answer @xiaxyi .
curl --location --request PUT 'https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Web/sites/<web-app-name>/slots/test-error-slot?api-version=2022-09-01' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '{
"location": "West Europe",
"kind": "app",
"properties": {
"virtualNetworkSubnetId": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-vnet—name>/providers/Microsoft.Network/virtualNetworks/<vnet-name>/subnets/<subnet-name>",
"siteConfig": {}
}
}'
curl --location --request PUT 'https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Web/sites/<web-app-name>/slots/test-error-slot?api-version=2022-09-01' \
--header 'authorization: Bearer <token>' \
--header 'content-type: application/json' \
--data '{
"location": "West Europe",
"kind": "app",
"properties": {
"virtualNetworkSubnetId": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-vnet—name>/providers/Microsoft.Network/virtualNetworks/<vnet-name>/subnets/<subnet-name>",
"serverFarmId": "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Web/serverfarms/<service-plan-name>",
"siteConfig": {}
}
}' |
Thanks @Apokalypt , I will let you know about any progress. |
@xiaxyi Have you had any news on this subject? |
@xiaxyi Any updates? |
It would be great to get this PR approved, thanks. |
Also waiting on this PR to be approved to help unblock us. |
Hi, also looking for an update on this... |
@xiaxyi were you able to confirm with the app service team? Dmitrii034, in the issue thread, says he confirmed with Microsoft: #24618 (comment) saveler says a similar thing but with the specific change: #24618 (comment) Based on the curl examples provided by @Apokalypt, serverFarmId not included, it fails, serverFarmId included, it works. The solution seems pretty clear. What else do we need in order to feel like this is an appropriate fix? This has been a blocker for a lot of us since January... |
@xiaxyi what are your feelings about this? Sounds like Dmitrii034 from the issue thread was advised to specify the serverFarmId. |
Thanks everyone for your patience, we just got some updates from the service team, but still in the discussion about the api behavior, will update once we confirmed the final action |
Eagerly awaiting this fix. Do you have an idea when we would have an action? Will Microsoft need to release an update as a dependency? Thankyou! |
Hello @xiaxyi Do you have any idea when it will be merged? Thank you! |
@stephybun the code change looks good to me, tests are good, failed ones are not related. More information about the api behavior: Even the Would you mind taking another look and let me know if you have any other concerns? |
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.
Thanks @Apokalypt, thanks @xiaxyi LGTM 💯
This functionality has been released in v3.105.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Description
Since the release
3.88.0
, Azure reject the creation of web app slot and function app slot when there is a virtual network subnet. Initially the API rejects all calls with an error 500 but since this morning the error is clearer and validate analysis perform by few users in the issue linked :PR Checklist
Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_windows_web_app_slot
- Force "serverFarmId" to be set when "virtualNetworkSubnetId" is set as requested by Azure API Creating azurerm_windows_web_app_slot with virtual_network_subnet_id specified results in Internal server error (500) #24618azurerm_windows_function_app_slot
- Force "serverFarmId" to be set when "virtualNetworkSubnetId" is set as requested by Azure API Creating azurerm_windows_web_app_slot with virtual_network_subnet_id specified results in Internal server error (500) #24618This is a (please select all that apply):
Related Issue(s)
Fixes #24618