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_autoscale_setting fails on app_service_plan #2726

Closed
Revolucio opened this issue Jan 21, 2019 · 3 comments · Fixed by #2760
Closed

azurerm_autoscale_setting fails on app_service_plan #2726

Revolucio opened this issue Jan 21, 2019 · 3 comments · Fixed by #2760

Comments

@Revolucio
Copy link

Community Note

Please vote on this issue by adding a +1 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform v0.11.11
AzureRM 1.21.0

Affected Resource(s)

azurerm_autoscale_setting

Terraform Configuration Files

https://gist.github.com/Revolucio/c0151f3d9d24cfe4055628ec86f57674

Debug Output

Panic Output

https://gist.github.com/Revolucio/646dd6245b0e8f0eeaecfbf91fc7e742

Expected Behavior

It should add autoscale_setting to an app service plan

Actual Behavior

I'm following https://www.terraform.io/docs/providers/azurerm/r/autoscale_setting.html
If I comment the rule it works, but once I add it it always fail.

Steps to Reproduce

terraform apply

Important Factoids

References

@Revolucio
Copy link
Author

Revolucio commented Jan 21, 2019

Hi,

I found that on the documentation it is said:

metric_name = "Percentage CPU"

but checking on Azure templates I found that the right metric name is CpuPercentage, so

metric_name = "CpuPercentage"

works.

Find the complet list of metric name on the following page

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/metrics-supported

@metacpp
Copy link
Contributor

metacpp commented Jan 24, 2019

@Revolucio Thanks for reporting this issue and share the investigation result.

This is because that different types of resources will have different naming convention even for same metric concept. I've updated the documentation to put the link shared by you.

@ghost
Copy link

ghost commented Mar 5, 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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants