azure-native.testbase.TestBaseAccount
Explore with Pulumi AI
The Test Base Account resource. API Version: 2022-04-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 = "Standard",
},
TestBaseAccountName = "contoso-testBaseAccount1",
});
});
package main
import (
testbase "github.com/pulumi/pulumi-azure-native-sdk/testbase"
"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("Standard"),
},
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 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(Map.ofEntries(
Map.entry("name", "S0"),
Map.entry("tier", "Standard")
))
.testBaseAccountName("contoso-testBaseAccount1")
.build());
}
}
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=azure_native.testbase.TestBaseAccountSKUArgs(
name="S0",
tier="Standard",
),
test_base_account_name="contoso-testBaseAccount1")
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: "Standard",
},
testBaseAccountName: "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 =
{
{ "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: "string",
Sku: map[string]interface{}{
"name": "string",
"tier": "string",
"locations": []string{
"string",
},
"resourceType": "string",
},
Location: "string",
Restore: false,
Tags: map[string]interface{}{
"string": "string",
},
TestBaseAccountName: "string",
})
var testBaseAccountResource = new TestBaseAccount("testBaseAccountResource", TestBaseAccountArgs.builder()
.resourceGroupName("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.restore(false)
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.testBaseAccountName("string")
.build());
test_base_account_resource = azure_native.testbase.TestBaseAccount("testBaseAccountResource",
resource_group_name=string,
sku={
name: string,
tier: string,
locations: [string],
resourceType: 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
The TestBaseAccount resource accepts the following input properties:
- Resource
Group 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.
- Test
Base stringAccount Name - The resource name of the Test Base Account.
- Resource
Group stringName - The name of the resource group that contains the resource.
- Sku
Test
Base 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.
- Test
Base stringAccount Name - The resource name of the Test Base Account.
- resource
Group StringName - The name of the resource group that contains the resource.
- sku
Test
Base 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.
- test
Base StringAccount Name - The resource name of the Test Base Account.
- resource
Group stringName - The name of the resource group that contains the resource.
- sku
Test
Base 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.
- test
Base stringAccount Name - The resource name of the Test Base Account.
- resource_
group_ strname - The name of the resource group that contains the resource.
- sku
Test
Base 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.
- resource
Group 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.
- test
Base 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:
- Access
Level 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.
- Provisioning
State string - The provisioning state of the resource.
- System
Data Pulumi.Azure Native. Test Base. Outputs. System Data Response - The system metadata relating to this resource
- Type string
- Resource type.
- Access
Level 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.
- Provisioning
State string - The provisioning state of the resource.
- System
Data SystemData Response - The system metadata relating to this resource
- Type string
- Resource type.
- access
Level 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.
- provisioning
State String - The provisioning state of the resource.
- system
Data SystemData Response - The system metadata relating to this resource
- type String
- Resource type.
- access
Level 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.
- provisioning
State string - The provisioning state of the resource.
- system
Data 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.
- access
Level 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.
- provisioning
State String - The provisioning state of the resource.
- system
Data Property Map - The system metadata relating to this resource
- type String
- Resource type.
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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.
- Resource
Type 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.
- Resource
Type 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.
- resource
Type 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.
- resource
Type 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.
- resource
Type 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.
- Resource
Type string - The type of resource the SKU applies to.
- Capabilities
[]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 []string
- The locations that the SKU is available.
- Resource
Type string - The type of resource the SKU applies to.
- capabilities
List<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.
- resource
Type String - The type of resource the SKU applies to.
- capabilities
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 string[]
- The locations that the SKU is available.
- resource
Type string - The type of resource the SKU applies to.
- capabilities
Sequence[Test
Base 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.
- resource
Type String - The type of resource the SKU applies to.
Tier, TierArgs
- Standard
- Standard
- Tier
Standard - 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/subscription-id/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0