hashicorp / terraform-provider-azurestack

Terraform provider for Azure Stack
https://www.terraform.io/docs/providers/azurestack/
Mozilla Public License 2.0
39 stars 63 forks source link

Loadbalancer Standard SKU not supported #302

Open Cyr-Az opened 1 week ago

Cyr-Az commented 1 week ago

Community Note

Terraform (and AzureStack Provider) Version

Azure stack provider v1.0.0

Affected Resource(s)

Terraform Configuration Files

resource "azurestack_lb" "example" {
  name = "example-load-balancer"
  location = azurestack_resource_group.test.location
  resource_group_name = azurestack_resource_group.test.name
  sku = "Standard"

  frontend_ip_configuration {
  name = "example-frontend-ip"
  public_ip_address_id = azurestack_public_ip.example.id
  }
}

Debug Output

N/A

Panic Output

N/A

Expected Behaviour

A loadbalancer with SKU "Standard" should have been created, since it should be supported by the provider according to the documentation ( https://registry.terraform.io/providers/hashicorp/azurestack/latest/docs/resources/loadbalancer#sku )

Actual Behaviour

Error: expected sku to be one of [Basic], got Standard
β”‚
β”‚   with azurestack_lb.example,
β”‚   on main.tf line 20, in resource "azurestack_lb" "example":
β”‚   20:   sku = "Standard"

The provider code does actually not support Standard lb : https://github.com/hashicorp/terraform-provider-azurestack/blob/main/internal/services/loadbalancer/loadbalancer_resource.go

Steps to Reproduce

N/A

Important Factoids

N/A

References

https://registry.terraform.io/providers/hashicorp/azurestack/latest/docs/resources/loadbalancer#sku

AHPanna commented 1 week ago

+1