azure-native.testbase.TestBaseAccount
Explore with Pulumi AI
The Test Base Account resource. Azure REST API version: 2022-04-01-preview. Prior API version in Azure Native 1.x: 2022-04-01-preview.
Other available API versions: 2023-11-01-preview.
Example Usage
TestBaseAccountCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var testBaseAccount = new AzureNative.TestBase.TestBaseAccount("testBaseAccount", new()
    {
        Location = "westus",
        ResourceGroupName = "contoso-rg1",
        Sku = new AzureNative.TestBase.Inputs.TestBaseAccountSKUArgs
        {
            Name = "S0",
            Tier = AzureNative.TestBase.Tier.Standard,
        },
        TestBaseAccountName = "contoso-testBaseAccount1",
    });
});
package main
import (
	testbase "github.com/pulumi/pulumi-azure-native-sdk/testbase/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := testbase.NewTestBaseAccount(ctx, "testBaseAccount", &testbase.TestBaseAccountArgs{
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("contoso-rg1"),
			Sku: &testbase.TestBaseAccountSKUArgs{
				Name: pulumi.String("S0"),
				Tier: pulumi.String(testbase.TierStandard),
			},
			TestBaseAccountName: pulumi.String("contoso-testBaseAccount1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.testbase.TestBaseAccount;
import com.pulumi.azurenative.testbase.TestBaseAccountArgs;
import com.pulumi.azurenative.testbase.inputs.TestBaseAccountSKUArgs;
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 testBaseAccount = new TestBaseAccount("testBaseAccount", TestBaseAccountArgs.builder()
            .location("westus")
            .resourceGroupName("contoso-rg1")
            .sku(TestBaseAccountSKUArgs.builder()
                .name("S0")
                .tier("Standard")
                .build())
            .testBaseAccountName("contoso-testBaseAccount1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const testBaseAccount = new azure_native.testbase.TestBaseAccount("testBaseAccount", {
    location: "westus",
    resourceGroupName: "contoso-rg1",
    sku: {
        name: "S0",
        tier: azure_native.testbase.Tier.Standard,
    },
    testBaseAccountName: "contoso-testBaseAccount1",
});
import pulumi
import pulumi_azure_native as azure_native
test_base_account = azure_native.testbase.TestBaseAccount("testBaseAccount",
    location="westus",
    resource_group_name="contoso-rg1",
    sku={
        "name": "S0",
        "tier": azure_native.testbase.Tier.STANDARD,
    },
    test_base_account_name="contoso-testBaseAccount1")
resources:
  testBaseAccount:
    type: azure-native:testbase:TestBaseAccount
    properties:
      location: westus
      resourceGroupName: contoso-rg1
      sku:
        name: S0
        tier: Standard
      testBaseAccountName: contoso-testBaseAccount1
Create TestBaseAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TestBaseAccount(name: string, args: TestBaseAccountArgs, opts?: CustomResourceOptions);@overload
def TestBaseAccount(resource_name: str,
                    args: TestBaseAccountArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def TestBaseAccount(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    resource_group_name: Optional[str] = None,
                    sku: Optional[TestBaseAccountSKUArgs] = None,
                    location: Optional[str] = None,
                    restore: Optional[bool] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    test_base_account_name: Optional[str] = None)func NewTestBaseAccount(ctx *Context, name string, args TestBaseAccountArgs, opts ...ResourceOption) (*TestBaseAccount, error)public TestBaseAccount(string name, TestBaseAccountArgs args, CustomResourceOptions? opts = null)
public TestBaseAccount(String name, TestBaseAccountArgs args)
public TestBaseAccount(String name, TestBaseAccountArgs args, CustomResourceOptions options)
type: azure-native:testbase:TestBaseAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TestBaseAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TestBaseAccountArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TestBaseAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TestBaseAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TestBaseAccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var testBaseAccountResource = new AzureNative.TestBase.TestBaseAccount("testBaseAccountResource", new()
{
    ResourceGroupName = "string",
    Sku = new AzureNative.TestBase.Inputs.TestBaseAccountSKUArgs
    {
        Name = "string",
        Tier = "string",
        Locations = new[]
        {
            "string",
        },
        ResourceType = "string",
    },
    Location = "string",
    Restore = false,
    Tags = 
    {
        { "string", "string" },
    },
    TestBaseAccountName = "string",
});
example, err := testbase.NewTestBaseAccount(ctx, "testBaseAccountResource", &testbase.TestBaseAccountArgs{
	ResourceGroupName: pulumi.String("string"),
	Sku: &testbase.TestBaseAccountSKUArgs{
		Name: pulumi.String("string"),
		Tier: pulumi.String("string"),
		Locations: pulumi.StringArray{
			pulumi.String("string"),
		},
		ResourceType: pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Restore:  pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TestBaseAccountName: pulumi.String("string"),
})
var testBaseAccountResource = new TestBaseAccount("testBaseAccountResource", TestBaseAccountArgs.builder()
    .resourceGroupName("string")
    .sku(TestBaseAccountSKUArgs.builder()
        .name("string")
        .tier("string")
        .locations("string")
        .resourceType("string")
        .build())
    .location("string")
    .restore(false)
    .tags(Map.of("string", "string"))
    .testBaseAccountName("string")
    .build());
test_base_account_resource = azure_native.testbase.TestBaseAccount("testBaseAccountResource",
    resource_group_name="string",
    sku={
        "name": "string",
        "tier": "string",
        "locations": ["string"],
        "resource_type": "string",
    },
    location="string",
    restore=False,
    tags={
        "string": "string",
    },
    test_base_account_name="string")
const testBaseAccountResource = new azure_native.testbase.TestBaseAccount("testBaseAccountResource", {
    resourceGroupName: "string",
    sku: {
        name: "string",
        tier: "string",
        locations: ["string"],
        resourceType: "string",
    },
    location: "string",
    restore: false,
    tags: {
        string: "string",
    },
    testBaseAccountName: "string",
});
type: azure-native:testbase:TestBaseAccount
properties:
    location: string
    resourceGroupName: string
    restore: false
    sku:
        locations:
            - string
        name: string
        resourceType: string
        tier: string
    tags:
        string: string
    testBaseAccountName: string
TestBaseAccount Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TestBaseAccount resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group that contains the resource.
- Sku
Pulumi.Azure Native. Test Base. Inputs. Test Base Account SKU 
- The SKU of the Test Base Account.
- Location string
- The geo-location where the resource lives
- Restore bool
- The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.
- Dictionary<string, string>
- The tags of the resource.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- ResourceGroup stringName 
- The name of the resource group that contains the resource.
- Sku
TestBase Account SKUArgs 
- The SKU of the Test Base Account.
- Location string
- The geo-location where the resource lives
- Restore bool
- The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.
- map[string]string
- The tags of the resource.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- resourceGroup StringName 
- The name of the resource group that contains the resource.
- sku
TestBase Account SKU 
- The SKU of the Test Base Account.
- location String
- The geo-location where the resource lives
- restore Boolean
- The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.
- Map<String,String>
- The tags of the resource.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
- resourceGroup stringName 
- The name of the resource group that contains the resource.
- sku
TestBase Account SKU 
- The SKU of the Test Base Account.
- location string
- The geo-location where the resource lives
- restore boolean
- The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.
- {[key: string]: string}
- The tags of the resource.
- testBase stringAccount Name 
- The resource name of the Test Base Account.
- resource_group_ strname 
- The name of the resource group that contains the resource.
- sku
TestBase Account SKUArgs 
- The SKU of the Test Base Account.
- location str
- The geo-location where the resource lives
- restore bool
- The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.
- Mapping[str, str]
- The tags of the resource.
- test_base_ straccount_ name 
- The resource name of the Test Base Account.
- resourceGroup StringName 
- The name of the resource group that contains the resource.
- sku Property Map
- The SKU of the Test Base Account.
- location String
- The geo-location where the resource lives
- restore Boolean
- The flag indicating if we would like to restore the Test Base Accounts which were soft deleted before.
- Map<String>
- The tags of the resource.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
Outputs
All input properties are implicitly available as output properties. Additionally, the TestBaseAccount resource produces the following output properties:
- AccessLevel string
- The access level of the Test Base Account.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- ProvisioningState string
- The provisioning state of the resource.
- SystemData Pulumi.Azure Native. Test Base. Outputs. System Data Response 
- The system metadata relating to this resource
- Type string
- Resource type.
- AccessLevel string
- The access level of the Test Base Account.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- ProvisioningState string
- The provisioning state of the resource.
- SystemData SystemData Response 
- The system metadata relating to this resource
- Type string
- Resource type.
- accessLevel String
- The access level of the Test Base Account.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioningState String
- The provisioning state of the resource.
- systemData SystemData Response 
- The system metadata relating to this resource
- type String
- Resource type.
- accessLevel string
- The access level of the Test Base Account.
- etag string
- Resource Etag.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioningState string
- The provisioning state of the resource.
- systemData SystemData Response 
- The system metadata relating to this resource
- type string
- Resource type.
- access_level str
- The access level of the Test Base Account.
- etag str
- Resource Etag.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_state str
- The provisioning state of the resource.
- system_data SystemData Response 
- The system metadata relating to this resource
- type str
- Resource type.
- accessLevel String
- The access level of the Test Base Account.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioningState String
- The provisioning state of the resource.
- systemData Property Map
- The system metadata relating to this resource
- type String
- Resource type.
Supporting Types
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
TestBaseAccountSKU, TestBaseAccountSKUArgs        
- Name string
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- Tier
string | Pulumi.Azure Native. Test Base. Tier 
- The tier of this particular SKU.
- Locations List<string>
- The locations that the SKU is available.
- ResourceType string
- The type of resource the SKU applies to.
- Name string
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- Tier string | Tier
- The tier of this particular SKU.
- Locations []string
- The locations that the SKU is available.
- ResourceType string
- The type of resource the SKU applies to.
- name String
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier String | Tier
- The tier of this particular SKU.
- locations List<String>
- The locations that the SKU is available.
- resourceType String
- The type of resource the SKU applies to.
- name string
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier string | Tier
- The tier of this particular SKU.
- locations string[]
- The locations that the SKU is available.
- resourceType string
- The type of resource the SKU applies to.
- name str
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier str | Tier
- The tier of this particular SKU.
- locations Sequence[str]
- The locations that the SKU is available.
- resource_type str
- The type of resource the SKU applies to.
- name String
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier String | "Standard"
- The tier of this particular SKU.
- locations List<String>
- The locations that the SKU is available.
- resourceType String
- The type of resource the SKU applies to.
TestBaseAccountSKUCapabilityResponse, TestBaseAccountSKUCapabilityResponseArgs          
TestBaseAccountSKUResponse, TestBaseAccountSKUResponseArgs        
- Capabilities
List<Pulumi.Azure Native. Test Base. Inputs. Test Base Account SKUCapability Response> 
- The capabilities of a SKU.
- Name string
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- Tier string
- The tier of this particular SKU.
- Locations List<string>
- The locations that the SKU is available.
- ResourceType string
- The type of resource the SKU applies to.
- Capabilities
[]TestBase Account SKUCapability Response 
- The capabilities of a SKU.
- Name string
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- Tier string
- The tier of this particular SKU.
- Locations []string
- The locations that the SKU is available.
- ResourceType string
- The type of resource the SKU applies to.
- capabilities
List<TestBase Account SKUCapability Response> 
- The capabilities of a SKU.
- name String
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier String
- The tier of this particular SKU.
- locations List<String>
- The locations that the SKU is available.
- resourceType String
- The type of resource the SKU applies to.
- capabilities
TestBase Account SKUCapability Response[] 
- The capabilities of a SKU.
- name string
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier string
- The tier of this particular SKU.
- locations string[]
- The locations that the SKU is available.
- resourceType string
- The type of resource the SKU applies to.
- capabilities
Sequence[TestBase Account SKUCapability Response] 
- The capabilities of a SKU.
- name str
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier str
- The tier of this particular SKU.
- locations Sequence[str]
- The locations that the SKU is available.
- resource_type str
- The type of resource the SKU applies to.
- capabilities List<Property Map>
- The capabilities of a SKU.
- name String
- The name of the SKU. This is typically a letter + number code, such as B0 or S0.
- tier String
- The tier of this particular SKU.
- locations List<String>
- The locations that the SKU is available.
- resourceType String
- The type of resource the SKU applies to.
Tier, TierArgs  
- Standard
- Standard
- TierStandard 
- Standard
- Standard
- Standard
- Standard
- Standard
- STANDARD
- Standard
- "Standard"
- Standard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:testbase:TestBaseAccount contoso-testBaseAccount1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0