Load Test
Manages a Load Test Service.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.authorization.UserAssignedIdentity;
import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
import com.pulumi.azure.loadtest.LoadTest;
import com.pulumi.azure.loadtest.LoadTestArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleLoadTest = new LoadTest("exampleLoadTest", LoadTestArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
}
}
Blocks Reference
identity
Block
The identity
block supports the following arguments:
type
- (Required) Specifies the type of Managed Identity that should be assigned to this Load Test. Possible values areSystemAssigned
,SystemAssigned, UserAssigned
andUserAssigned
.identity_ids
- (Optional) A list of the User Assigned Identity IDs that should be assigned to this Load Test. In addition to the arguments defined above, theidentity
block exports the following attributes:principal_id
- The Principal ID for the System-Assigned Managed Identity assigned to this Load Test.tenant_id
- The Tenant ID for the System-Assigned Managed Identity assigned to this Load Test.
Import
An existing Load Test can be imported into Terraform using the resource id
, e.g.
$ pulumi import azure:loadtest/loadTest:LoadTest example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
Where
{subscriptionId}
is the ID of the Azure Subscription where the Load Test exists. For example12345678-1234-9876-4563-123456789012
. * Where{resourceGroupName}
is the name of Resource Group where this Load Test exists. For exampleexample-resource-group
. * Where{loadTestName}
is the name of the Load Test. For exampleloadTestValue
.