azure-native.testbase.TestBaseAccount
Explore with Pulumi AI
The Test Base Account resource.
Uses Azure REST API version 2023-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-04-01-preview.
Other available API versions: 2022-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native testbase [ApiVersion]
. See the version guide for details.
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/v3"
"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,
identity: Optional[SystemAssignedServiceIdentityArgs] = 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",
},
Identity = new AzureNative.TestBase.Inputs.SystemAssignedServiceIdentityArgs
{
Type = "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"),
},
Identity: &testbase.SystemAssignedServiceIdentityArgs{
Type: 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())
.identity(SystemAssignedServiceIdentityArgs.builder()
.type("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",
},
identity={
"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",
},
identity: {
type: "string",
},
location: "string",
restore: false,
tags: {
string: "string",
},
testBaseAccountName: "string",
});
type: azure-native:testbase:TestBaseAccount
properties:
identity:
type: string
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sku
Pulumi.
Azure Native. Test Base. Inputs. Test Base Account SKU - The SKU of the Test Base Account.
- Identity
Pulumi.
Azure Native. Test Base. Inputs. System Assigned Service Identity - The identity of the testBaseAccount.
- 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>
- Resource tags.
- Test
Base stringAccount Name - The resource name of the Test Base Account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sku
Test
Base Account SKUArgs - The SKU of the Test Base Account.
- Identity
System
Assigned Service Identity Args - The identity of the testBaseAccount.
- 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
- Resource tags.
- Test
Base stringAccount Name - The resource name of the Test Base Account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sku
Test
Base Account SKU - The SKU of the Test Base Account.
- identity
System
Assigned Service Identity - The identity of the testBaseAccount.
- 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>
- Resource tags.
- test
Base StringAccount Name - The resource name of the Test Base Account.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- sku
Test
Base Account SKU - The SKU of the Test Base Account.
- identity
System
Assigned Service Identity - The identity of the testBaseAccount.
- 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}
- Resource tags.
- test
Base stringAccount Name - The resource name of the Test Base Account.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- sku
Test
Base Account SKUArgs - The SKU of the Test Base Account.
- identity
System
Assigned Service Identity Args - The identity of the testBaseAccount.
- 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]
- Resource tags.
- test_
base_ straccount_ name - The resource name of the Test Base Account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sku Property Map
- The SKU of the Test Base Account.
- identity Property Map
- The identity of the testBaseAccount.
- 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>
- Resource tags.
- 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.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the resource.
- System
Data Pulumi.Azure Native. Test Base. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Access
Level string - The access level of the Test Base Account.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioning state of the resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- access
Level String - The access level of the Test Base Account.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- access
Level string - The access level of the Test Base Account.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioning state of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- access_
level str - The access level of the Test Base Account.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioning state of the resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- access
Level String - The access level of the Test Base Account.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioning state of the resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemAssignedServiceIdentity, SystemAssignedServiceIdentityArgs
- Type
string | Pulumi.
Azure Native. Test Base. System Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- Type
string | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
String | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
string | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
str | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
String | "None" | "System
Assigned" - Type of managed service identity (either system assigned, or none).
SystemAssignedServiceIdentityResponse, SystemAssignedServiceIdentityResponseArgs
- Principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id string - The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Type string
- Type of managed service identity (either system assigned, or none).
- Principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id string - The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Type string
- Type of managed service identity (either system assigned, or none).
- principal
Id String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id String - The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- type String
- Type of managed service identity (either system assigned, or none).
- principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id string - The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- type string
- Type of managed service identity (either system assigned, or none).
- principal_
id str - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant_
id str - The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- type str
- Type of managed service identity (either system assigned, or none).
- principal
Id String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id String - The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
- type String
- Type of managed service identity (either system assigned, or none).
SystemAssignedServiceIdentityType, SystemAssignedServiceIdentityTypeArgs
- None
- None
- System
Assigned - SystemAssigned
- System
Assigned Service Identity Type None - None
- System
Assigned Service Identity Type System Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- "None"
- None
- "System
Assigned" - SystemAssigned
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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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 timestamp of resource last modification (UTC)
- 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/{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