Please vote on this issue by adding a :thumbsup: 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 Version
0.15.4 -> 1.2.1
AzureRM Provider Version
2.69.0 -> 3.10.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_endpoint
Terraform Configuration Files
resource "azurerm_cdn_profile" "example" {
name = "example-cdn"
location = "china east 2"
resource_group_name = azurerm_resource_group.example.name
sku = "Standard_Verizon"
}
resource "azurerm_cdn_endpoint" "example" {
name = "example"
profile_name = azurerm_cdn_profile.example.name
location = "china east 2"
resource_group_name = azurerm_resource_group.example.name
origin {
name = "example"
host_name = "www.contoso.com"
}
}
Debug Output/Panic Output
creating Endpoint: (Name "<redacted>" / Profile Name "<redacted>" / Resource Group "<redacted>"): cdn.EndpointsClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="Custom domain must be specified for endpoint creation."
│
Expected Behaviour
Custom domain should be optional for cdn endpoint.
Is there an existing issue for this?
Community Note
Terraform Version
0.15.4 -> 1.2.1
AzureRM Provider Version
2.69.0 -> 3.10.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_endpoint
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Custom domain should be optional for cdn endpoint.
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_endpoint