-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Unable to create App Service Plans for Logic Apps with azurerm_service_plan #16401
Comments
@JameySteinmann thank you for posting this issue here. Unfortunately, I could not reproduce the above issue. After creating an App Service Plans for Logic Apps with azurerm_service_plan(tf configuration below), there is no error message in workflows in Azure and the service plan(SP-01) is available when manually deploying the logic app in the Azure Portal. Could you compare the tf config with yours and try to reproduce with it?
|
Thank you @sinbai. It appears that you have to set the os_type = "Windows" for this to work. I tested it in 3.1.0 and 3.2.0 and it works as you showed. This is a departure from how you would do it in azurerm_app_service_plan and isn't documented. Perhaps this request can just serve to update the docs with a note that when using WS1, WS2, and WS3 skus that they're only available in the os_type = "Windows". Is this the right spot for it, or should I close this and open a new report for just the documentation update? edit: The data source may still need to be updated to output the os_type as "Windows" instead of "" since using the attributes returned to create another service plan would yield an unusable plan for logic apps |
@JameySteinmann thanks for your feedback. In fact, when using WS1, WS2, and WS3 skus, they're available both "Windows" and "Linux". In my sample, os_type is set to "Windows" simply because
For the data source issue, I have submitted a PR to fix it. Thanks again for posting this here. |
You're welcome @sinbai. I have another bug as they relate to creating the logic apps do not work, but I'll file another bug for this. |
This functionality has been released in v3.5.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.1.8
AzureRM Provider Version
3.1.0
Affected Resource(s)/Data Source(s)
azurerm_service_plan, azurerm_app_service_plan
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When using the WS1, WS2, or WS3 sku name for an azurerm_service_plan it should create an app service plan in Azure that shows as an "Elastic App"
When using the data source the kind should show as elastic
Actual Behaviour
When using the WS1, WS2, or WS3 sku names for an azurerm_service_plan it results in creating an App Service Plan and Logic Apps are not able to be deployed via azure to them. You can deploy them with Terraform, however they fail to run due to the wrong Service Plan being created in Azure.
When using the data source the kind shows as ""
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: