Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure.Provisioning.LoadTesting simplifies declarative resource provisioning for Azure Load Testing in .NET.
Getting started
Install the package
Install the client library for .NET with NuGet:
dotnet add package Azure.Provisioning.LoadTesting --prerelease
Prerequisites
You must have an Azure subscription.
Authenticate the Client
Key concepts
This library allows you to specify your infrastructure in a declarative style using .NET. You can then use azd to deploy your infrastructure to Azure directly without needing to write or maintain Bicep or ARM templates.
Examples
Create a Load Testing resource
This example creates an Azure Load Testing resource with an environment tag.
Infrastructure infra = new();
LoadTestingResource loadTest =
new(nameof(loadTest), LoadTestingResource.ResourceVersions.V2022_12_01)
{
Tags = { ["environment"] = "test" },
};
infra.Add(loadTest);
infra.Add(new ProvisioningOutput("loadTestName", typeof(string)) { Value = loadTest.Name });
infra.Add(new ProvisioningOutput("resourceId", typeof(string)) { Value = loadTest.Id });
Troubleshooting
- File an issue via GitHub Issues.
- Check previous questions or ask new ones on Stack Overflow using Azure and .NET tags.
Next steps
Contributing
For details on contributing to this repository, see the contributing guide.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any questions or comments.
Azure SDK for .NET