0

I have created a test in Azure Load Testing using Azure CLI

az group create --name sample-rg --location westus2

az load create --name sample-resource --resource-group sample-rg --location westus2

az load test create --test-id sample-test-id --load-test-resource sample-resource --resource-group sample-rg --display-name "Find IP" --description "Test description" --test-plan IPLoadTesting.jmx --engine-instances 1 --env rps=2 count=1

enter image description here

While terraform allow us to create the Azure Load Testing resource https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/load_test, I don't find an option to create a Test within the Azure Load Testing using Terraform. Is this possible?

One Developer
  • 99
  • 5
  • 43
  • 103
  • 1
    If the resource isn't available, you can ask for a feature or contribute via github. In the meantime, you can use [azapi](https://registry.terraform.io/providers/Azure/azapi/latest/docs) resource by invoking the API with payload.. – harshavmb Jul 20 '23 at 20:28
  • 1
    Try this link: https://learn.microsoft.com/en-us/azure/templates/microsoft.loadtestservice/2022-12-01/loadtests?pivots=deployment-language-terraform to create using Azapi. – Venkat V Jul 21 '23 at 11:18

0 Answers0