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

provider/azurerm: Add maximum_elastic_worker_count to app_service_plan #3547

Merged

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented May 29, 2019

@tombuildsstuff so I didn't add this to the deprecated properties block and went with the new way of maximum_number_of_workers

Fixes: #3445

▶ acctests azurerm TestAccDataSourceAzureRMAppServicePlan_premiumSKU
=== RUN   TestAccDataSourceAzureRMAppServicePlan_premiumSKU
=== PAUSE TestAccDataSourceAzureRMAppServicePlan_premiumSKU
=== CONT  TestAccDataSourceAzureRMAppServicePlan_premiumSKU
--- PASS: TestAccDataSourceAzureRMAppServicePlan_premiumSKU (87.91s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	87.978s


▶ acctests azurerm TestAccAzureRMAppServicePlan_premiumConsumptionPlan
=== RUN   TestAccAzureRMAppServicePlan_premiumConsumptionPlan
=== PAUSE TestAccAzureRMAppServicePlan_premiumConsumptionPlan
=== CONT  TestAccAzureRMAppServicePlan_premiumConsumptionPlan
--- PASS: TestAccAzureRMAppServicePlan_premiumConsumptionPlan (83.97s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	84.024s

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hi @stack72,

Thank you for the PR. I've left some comments inline, with the most important one being adding this property to some tests.

azurerm/resource_arm_app_service_plan.go Outdated Show resolved Hide resolved
azurerm/resource_arm_app_service_plan.go Outdated Show resolved Hide resolved
azurerm/resource_arm_app_service_plan.go Show resolved Hide resolved
website/docs/d/app_service_plan.html.markdown Show resolved Hide resolved
website/docs/r/app_service_plan.html.markdown Outdated Show resolved Hide resolved
azurerm/data_source_app_service_plan.go Show resolved Hide resolved
azurerm/resource_arm_app_service_plan.go Show resolved Hide resolved
@stack72
Copy link
Contributor Author

stack72 commented Jun 4, 2019

Hi @katbyte, do you have any thoughts on what validation you want added in the question above? I'd love to get this PR finished up :)

@stack72
Copy link
Contributor Author

stack72 commented Jun 4, 2019

@katbyte / @tombuildsstuff so I looked into what Validation was available. The API does have no mention of it:

https://docs.microsoft.com/en-us/azure/templates/microsoft.web/2018-02-01/serverfarms#AppServicePlanProperties

No does the SDK.

I believe this is ready for review again

@stack72 stack72 force-pushed the stack72/add-app-service-plan-properties branch from 0f66fd7 to 1d36cfa Compare June 5, 2019 16:43
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @stack72

Thanks for pushing those changes - besides one minor markdown thing to fix (which I'm going to push a commit to fix) this LGTM 👍

Thanks!


* `is_xenon` - A flag that indicates if it's a xenon plan (support for Windows Container)

* `maximum_number_of_workers` - The maximum number of workers supported with the App Service Plan's sku.
Copy link
Contributor

Choose a reason for hiding this comment

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

to not break the formatting, can we make this:

Suggested change
* `maximum_number_of_workers` - The maximum number of workers supported with the App Service Plan's sku.
* `maximum_number_of_workers` - The maximum number of workers supported with the App Service Plan's sku.

@tombuildsstuff tombuildsstuff changed the title provider/aws: Add maximum_elastic_worker_count to app_service_plan provider/azurerm: Add maximum_elastic_worker_count to app_service_plan Jun 6, 2019
@tombuildsstuff tombuildsstuff dismissed katbyte’s stale review June 6, 2019 08:29

dismissing since changes have been pushed

@katbyte katbyte added this to the v1.30.0 milestone Jun 6, 2019
@katbyte katbyte merged commit 3cc3c1b into hashicorp:master Jun 6, 2019
katbyte added a commit that referenced this pull request Jun 6, 2019
@ghost
Copy link

ghost commented Jun 20, 2019

This has been released in version 1.30.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
	version = "~> 1.30.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jul 7, 2019

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.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 7, 2019
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.

Enable setting maximumElasticWorkerCount for App Service Plan / Premium Functions
3 participants