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_media_streaming_endpoint should support Standard Type #12684

Closed
sanglt opened this issue Jul 22, 2021 · 2 comments · Fixed by #16304
Closed

azurerm_media_streaming_endpoint should support Standard Type #12684

sanglt opened this issue Jul 22, 2021 · 2 comments · Fixed by #16304

Comments

@sanglt
Copy link

sanglt commented Jul 22, 2021

Community Note

  • Please vote on this issue by adding a 👍 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 v1.0.3

  • provider registry.terraform.io/hashicorp/azurerm v2.68.0

Affected Resource(s)

  • azurerm_media_streaming_endpoint

Terraform Configuration Files

resource "azurerm_media_streaming_endpoint" "media_adaptive_streaming" {
  name                        = "adaptive-streaming"
  location                    = data.azurerm_resource_group.media.location
  resource_group_name         = data.azurerm_resource_group.media.name
  media_services_account_name = azurerm_media_services_account.media.name
  scale_units                 = 0
  cdn_enabled                 = true
  cdn_provider                = "StandardAkamai"
}

Debug Output

terraform validate

╷
61│ Error: expected scale_units to be in the range (1 - 10), got 0
62│ 
63│   with azurerm_media_streaming_endpoint.media_adaptive_streaming,
64│   on media-services.tf line 42, in resource "azurerm_media_streaming_endpoint" "media_adaptive_streaming":
65│   42:   scale_units                 = 0
66│ 
67╵

Expected Behaviour

Streaming Endpoint have 2 types: Standard and Premium. The validation should only for Premium type

Actual Behaviour

We should have type property, and only check scale_units for Premium type.

References

@sanglt sanglt changed the title azurerm_media_streaming_endpoint Standard Types azurerm_media_streaming_endpoint should support Standard Type Jul 22, 2021
@github-actions github-actions bot added this to the v3.2.0 milestone Apr 8, 2022
@github-actions
Copy link

This functionality has been released in v3.2.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!

@github-actions
Copy link

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 have found a problem that seems similar to this, 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 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants