azure-native.testbase.Package
Explore with Pulumi AI
The Test Base Package resource. API Version: 2022-04-01-preview.
Example Usage
PackageCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var package = new AzureNative.TestBase.Package("package", new()
    {
        ApplicationName = "contoso-package2",
        BlobPath = "storageAccountPath/package.zip",
        FlightingRing = "Insider Beta Channel",
        Location = "westus",
        PackageName = "contoso-package2",
        ResourceGroupName = "contoso-rg1",
        Tags = null,
        TargetOSList = new[]
        {
            new AzureNative.TestBase.Inputs.TargetOSInfoArgs
            {
                OsUpdateType = "Security updates",
                TargetOSs = new[]
                {
                    "Windows 10 2004",
                    "Windows 10 1903",
                },
            },
        },
        TestBaseAccountName = "contoso-testBaseAccount1",
        Tests = new[]
        {
            new AzureNative.TestBase.Inputs.TestArgs
            {
                Commands = new[]
                {
                    new AzureNative.TestBase.Inputs.CommandArgs
                    {
                        Action = "Install",
                        AlwaysRun = true,
                        ApplyUpdateBefore = false,
                        Content = "app/scripts/install/job.ps1",
                        ContentType = "Path",
                        MaxRunTime = 1800,
                        Name = "Install",
                        RestartAfter = true,
                        RunAsInteractive = true,
                        RunElevated = true,
                    },
                    new AzureNative.TestBase.Inputs.CommandArgs
                    {
                        Action = "Launch",
                        AlwaysRun = false,
                        ApplyUpdateBefore = true,
                        Content = "app/scripts/launch/job.ps1",
                        ContentType = "Path",
                        MaxRunTime = 1800,
                        Name = "Launch",
                        RestartAfter = false,
                        RunAsInteractive = true,
                        RunElevated = true,
                    },
                    new AzureNative.TestBase.Inputs.CommandArgs
                    {
                        Action = "Close",
                        AlwaysRun = false,
                        ApplyUpdateBefore = false,
                        Content = "app/scripts/close/job.ps1",
                        ContentType = "Path",
                        MaxRunTime = 1800,
                        Name = "Close",
                        RestartAfter = false,
                        RunAsInteractive = true,
                        RunElevated = true,
                    },
                    new AzureNative.TestBase.Inputs.CommandArgs
                    {
                        Action = "Uninstall",
                        AlwaysRun = true,
                        ApplyUpdateBefore = false,
                        Content = "app/scripts/uninstall/job.ps1",
                        ContentType = "Path",
                        MaxRunTime = 1800,
                        Name = "Uninstall",
                        RestartAfter = false,
                        RunAsInteractive = true,
                        RunElevated = true,
                    },
                },
                IsActive = true,
                TestType = "OutOfBoxTest",
            },
        },
        Version = "1.0.0",
    });
});
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.NewPackage(ctx, "package", &testbase.PackageArgs{
			ApplicationName:   pulumi.String("contoso-package2"),
			BlobPath:          pulumi.String("storageAccountPath/package.zip"),
			FlightingRing:     pulumi.String("Insider Beta Channel"),
			Location:          pulumi.String("westus"),
			PackageName:       pulumi.String("contoso-package2"),
			ResourceGroupName: pulumi.String("contoso-rg1"),
			Tags:              nil,
			TargetOSList: []testbase.TargetOSInfoArgs{
				{
					OsUpdateType: pulumi.String("Security updates"),
					TargetOSs: pulumi.StringArray{
						pulumi.String("Windows 10 2004"),
						pulumi.String("Windows 10 1903"),
					},
				},
			},
			TestBaseAccountName: pulumi.String("contoso-testBaseAccount1"),
			Tests: []testbase.TestArgs{
				{
					Commands: testbase.CommandArray{
						{
							Action:            pulumi.String("Install"),
							AlwaysRun:         pulumi.Bool(true),
							ApplyUpdateBefore: pulumi.Bool(false),
							Content:           pulumi.String("app/scripts/install/job.ps1"),
							ContentType:       pulumi.String("Path"),
							MaxRunTime:        pulumi.Int(1800),
							Name:              pulumi.String("Install"),
							RestartAfter:      pulumi.Bool(true),
							RunAsInteractive:  pulumi.Bool(true),
							RunElevated:       pulumi.Bool(true),
						},
						{
							Action:            pulumi.String("Launch"),
							AlwaysRun:         pulumi.Bool(false),
							ApplyUpdateBefore: pulumi.Bool(true),
							Content:           pulumi.String("app/scripts/launch/job.ps1"),
							ContentType:       pulumi.String("Path"),
							MaxRunTime:        pulumi.Int(1800),
							Name:              pulumi.String("Launch"),
							RestartAfter:      pulumi.Bool(false),
							RunAsInteractive:  pulumi.Bool(true),
							RunElevated:       pulumi.Bool(true),
						},
						{
							Action:            pulumi.String("Close"),
							AlwaysRun:         pulumi.Bool(false),
							ApplyUpdateBefore: pulumi.Bool(false),
							Content:           pulumi.String("app/scripts/close/job.ps1"),
							ContentType:       pulumi.String("Path"),
							MaxRunTime:        pulumi.Int(1800),
							Name:              pulumi.String("Close"),
							RestartAfter:      pulumi.Bool(false),
							RunAsInteractive:  pulumi.Bool(true),
							RunElevated:       pulumi.Bool(true),
						},
						{
							Action:            pulumi.String("Uninstall"),
							AlwaysRun:         pulumi.Bool(true),
							ApplyUpdateBefore: pulumi.Bool(false),
							Content:           pulumi.String("app/scripts/uninstall/job.ps1"),
							ContentType:       pulumi.String("Path"),
							MaxRunTime:        pulumi.Int(1800),
							Name:              pulumi.String("Uninstall"),
							RestartAfter:      pulumi.Bool(false),
							RunAsInteractive:  pulumi.Bool(true),
							RunElevated:       pulumi.Bool(true),
						},
					},
					IsActive: pulumi.Bool(true),
					TestType: pulumi.String("OutOfBoxTest"),
				},
			},
			Version: pulumi.String("1.0.0"),
		})
		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.Package;
import com.pulumi.azurenative.testbase.PackageArgs;
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 package_ = new Package("package", PackageArgs.builder()        
            .applicationName("contoso-package2")
            .blobPath("storageAccountPath/package.zip")
            .flightingRing("Insider Beta Channel")
            .location("westus")
            .packageName("contoso-package2")
            .resourceGroupName("contoso-rg1")
            .tags()
            .targetOSList(Map.ofEntries(
                Map.entry("osUpdateType", "Security updates"),
                Map.entry("targetOSs",                 
                    "Windows 10 2004",
                    "Windows 10 1903")
            ))
            .testBaseAccountName("contoso-testBaseAccount1")
            .tests(Map.ofEntries(
                Map.entry("commands",                 
                    Map.ofEntries(
                        Map.entry("action", "Install"),
                        Map.entry("alwaysRun", true),
                        Map.entry("applyUpdateBefore", false),
                        Map.entry("content", "app/scripts/install/job.ps1"),
                        Map.entry("contentType", "Path"),
                        Map.entry("maxRunTime", 1800),
                        Map.entry("name", "Install"),
                        Map.entry("restartAfter", true),
                        Map.entry("runAsInteractive", true),
                        Map.entry("runElevated", true)
                    ),
                    Map.ofEntries(
                        Map.entry("action", "Launch"),
                        Map.entry("alwaysRun", false),
                        Map.entry("applyUpdateBefore", true),
                        Map.entry("content", "app/scripts/launch/job.ps1"),
                        Map.entry("contentType", "Path"),
                        Map.entry("maxRunTime", 1800),
                        Map.entry("name", "Launch"),
                        Map.entry("restartAfter", false),
                        Map.entry("runAsInteractive", true),
                        Map.entry("runElevated", true)
                    ),
                    Map.ofEntries(
                        Map.entry("action", "Close"),
                        Map.entry("alwaysRun", false),
                        Map.entry("applyUpdateBefore", false),
                        Map.entry("content", "app/scripts/close/job.ps1"),
                        Map.entry("contentType", "Path"),
                        Map.entry("maxRunTime", 1800),
                        Map.entry("name", "Close"),
                        Map.entry("restartAfter", false),
                        Map.entry("runAsInteractive", true),
                        Map.entry("runElevated", true)
                    ),
                    Map.ofEntries(
                        Map.entry("action", "Uninstall"),
                        Map.entry("alwaysRun", true),
                        Map.entry("applyUpdateBefore", false),
                        Map.entry("content", "app/scripts/uninstall/job.ps1"),
                        Map.entry("contentType", "Path"),
                        Map.entry("maxRunTime", 1800),
                        Map.entry("name", "Uninstall"),
                        Map.entry("restartAfter", false),
                        Map.entry("runAsInteractive", true),
                        Map.entry("runElevated", true)
                    )),
                Map.entry("isActive", true),
                Map.entry("testType", "OutOfBoxTest")
            ))
            .version("1.0.0")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const _package = new azure_native.testbase.Package("package", {
    applicationName: "contoso-package2",
    blobPath: "storageAccountPath/package.zip",
    flightingRing: "Insider Beta Channel",
    location: "westus",
    packageName: "contoso-package2",
    resourceGroupName: "contoso-rg1",
    tags: {},
    targetOSList: [{
        osUpdateType: "Security updates",
        targetOSs: [
            "Windows 10 2004",
            "Windows 10 1903",
        ],
    }],
    testBaseAccountName: "contoso-testBaseAccount1",
    tests: [{
        commands: [
            {
                action: "Install",
                alwaysRun: true,
                applyUpdateBefore: false,
                content: "app/scripts/install/job.ps1",
                contentType: "Path",
                maxRunTime: 1800,
                name: "Install",
                restartAfter: true,
                runAsInteractive: true,
                runElevated: true,
            },
            {
                action: "Launch",
                alwaysRun: false,
                applyUpdateBefore: true,
                content: "app/scripts/launch/job.ps1",
                contentType: "Path",
                maxRunTime: 1800,
                name: "Launch",
                restartAfter: false,
                runAsInteractive: true,
                runElevated: true,
            },
            {
                action: "Close",
                alwaysRun: false,
                applyUpdateBefore: false,
                content: "app/scripts/close/job.ps1",
                contentType: "Path",
                maxRunTime: 1800,
                name: "Close",
                restartAfter: false,
                runAsInteractive: true,
                runElevated: true,
            },
            {
                action: "Uninstall",
                alwaysRun: true,
                applyUpdateBefore: false,
                content: "app/scripts/uninstall/job.ps1",
                contentType: "Path",
                maxRunTime: 1800,
                name: "Uninstall",
                restartAfter: false,
                runAsInteractive: true,
                runElevated: true,
            },
        ],
        isActive: true,
        testType: "OutOfBoxTest",
    }],
    version: "1.0.0",
});
import pulumi
import pulumi_azure_native as azure_native
package = azure_native.testbase.Package("package",
    application_name="contoso-package2",
    blob_path="storageAccountPath/package.zip",
    flighting_ring="Insider Beta Channel",
    location="westus",
    package_name="contoso-package2",
    resource_group_name="contoso-rg1",
    tags={},
    target_os_list=[azure_native.testbase.TargetOSInfoArgs(
        os_update_type="Security updates",
        target_oss=[
            "Windows 10 2004",
            "Windows 10 1903",
        ],
    )],
    test_base_account_name="contoso-testBaseAccount1",
    tests=[{
        "commands": [
            azure_native.testbase.CommandArgs(
                action="Install",
                always_run=True,
                apply_update_before=False,
                content="app/scripts/install/job.ps1",
                content_type="Path",
                max_run_time=1800,
                name="Install",
                restart_after=True,
                run_as_interactive=True,
                run_elevated=True,
            ),
            azure_native.testbase.CommandArgs(
                action="Launch",
                always_run=False,
                apply_update_before=True,
                content="app/scripts/launch/job.ps1",
                content_type="Path",
                max_run_time=1800,
                name="Launch",
                restart_after=False,
                run_as_interactive=True,
                run_elevated=True,
            ),
            azure_native.testbase.CommandArgs(
                action="Close",
                always_run=False,
                apply_update_before=False,
                content="app/scripts/close/job.ps1",
                content_type="Path",
                max_run_time=1800,
                name="Close",
                restart_after=False,
                run_as_interactive=True,
                run_elevated=True,
            ),
            azure_native.testbase.CommandArgs(
                action="Uninstall",
                always_run=True,
                apply_update_before=False,
                content="app/scripts/uninstall/job.ps1",
                content_type="Path",
                max_run_time=1800,
                name="Uninstall",
                restart_after=False,
                run_as_interactive=True,
                run_elevated=True,
            ),
        ],
        "isActive": True,
        "testType": "OutOfBoxTest",
    }],
    version="1.0.0")
resources:
  package:
    type: azure-native:testbase:Package
    properties:
      applicationName: contoso-package2
      blobPath: storageAccountPath/package.zip
      flightingRing: Insider Beta Channel
      location: westus
      packageName: contoso-package2
      resourceGroupName: contoso-rg1
      tags: {}
      targetOSList:
        - osUpdateType: Security updates
          targetOSs:
            - Windows 10 2004
            - Windows 10 1903
      testBaseAccountName: contoso-testBaseAccount1
      tests:
        - commands:
            - action: Install
              alwaysRun: true
              applyUpdateBefore: false
              content: app/scripts/install/job.ps1
              contentType: Path
              maxRunTime: 1800
              name: Install
              restartAfter: true
              runAsInteractive: true
              runElevated: true
            - action: Launch
              alwaysRun: false
              applyUpdateBefore: true
              content: app/scripts/launch/job.ps1
              contentType: Path
              maxRunTime: 1800
              name: Launch
              restartAfter: false
              runAsInteractive: true
              runElevated: true
            - action: Close
              alwaysRun: false
              applyUpdateBefore: false
              content: app/scripts/close/job.ps1
              contentType: Path
              maxRunTime: 1800
              name: Close
              restartAfter: false
              runAsInteractive: true
              runElevated: true
            - action: Uninstall
              alwaysRun: true
              applyUpdateBefore: false
              content: app/scripts/uninstall/job.ps1
              contentType: Path
              maxRunTime: 1800
              name: Uninstall
              restartAfter: false
              runAsInteractive: true
              runElevated: true
          isActive: true
          testType: OutOfBoxTest
      version: 1.0.0
Create Package Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Package(name: string, args: PackageArgs, opts?: CustomResourceOptions);@overload
def Package(resource_name: str,
            args: PackageArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Package(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            application_name: Optional[str] = None,
            blob_path: Optional[str] = None,
            flighting_ring: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            target_os_list: Optional[Sequence[TargetOSInfoArgs]] = None,
            test_base_account_name: Optional[str] = None,
            tests: Optional[Sequence[TestArgs]] = None,
            version: Optional[str] = None,
            location: Optional[str] = None,
            package_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)func NewPackage(ctx *Context, name string, args PackageArgs, opts ...ResourceOption) (*Package, error)public Package(string name, PackageArgs args, CustomResourceOptions? opts = null)
public Package(String name, PackageArgs args)
public Package(String name, PackageArgs args, CustomResourceOptions options)
type: azure-native:testbase:Package
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 PackageArgs
- 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 PackageArgs
- 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 PackageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PackageArgs
- 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 packageResource = new AzureNative.Testbase.Package("packageResource", new()
{
    ApplicationName = "string",
    BlobPath = "string",
    FlightingRing = "string",
    ResourceGroupName = "string",
    TargetOSList = new[]
    {
        
        {
            { "osUpdateType", "string" },
            { "targetOSs", new[]
            {
                "string",
            } },
            { "baselineOSs", new[]
            {
                "string",
            } },
        },
    },
    TestBaseAccountName = "string",
    Tests = new[]
    {
        
        {
            { "commands", new[]
            {
                
                {
                    { "action", "string" },
                    { "content", "string" },
                    { "contentType", "string" },
                    { "name", "string" },
                    { "alwaysRun", false },
                    { "applyUpdateBefore", false },
                    { "maxRunTime", 0 },
                    { "restartAfter", false },
                    { "runAsInteractive", false },
                    { "runElevated", false },
                },
            } },
            { "testType", "string" },
            { "isActive", false },
        },
    },
    Version = "string",
    Location = "string",
    PackageName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := testbase.NewPackage(ctx, "packageResource", &testbase.PackageArgs{
	ApplicationName:   "string",
	BlobPath:          "string",
	FlightingRing:     "string",
	ResourceGroupName: "string",
	TargetOSList: []map[string]interface{}{
		map[string]interface{}{
			"osUpdateType": "string",
			"targetOSs": []string{
				"string",
			},
			"baselineOSs": []string{
				"string",
			},
		},
	},
	TestBaseAccountName: "string",
	Tests: []map[string]interface{}{
		map[string]interface{}{
			"commands": []map[string]interface{}{
				map[string]interface{}{
					"action":            "string",
					"content":           "string",
					"contentType":       "string",
					"name":              "string",
					"alwaysRun":         false,
					"applyUpdateBefore": false,
					"maxRunTime":        0,
					"restartAfter":      false,
					"runAsInteractive":  false,
					"runElevated":       false,
				},
			},
			"testType": "string",
			"isActive": false,
		},
	},
	Version:     "string",
	Location:    "string",
	PackageName: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
})
var packageResource = new Package("packageResource", PackageArgs.builder()
    .applicationName("string")
    .blobPath("string")
    .flightingRing("string")
    .resourceGroupName("string")
    .targetOSList(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .testBaseAccountName("string")
    .tests(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .version("string")
    .location("string")
    .packageName("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
package_resource = azure_native.testbase.Package("packageResource",
    application_name=string,
    blob_path=string,
    flighting_ring=string,
    resource_group_name=string,
    target_os_list=[{
        osUpdateType: string,
        targetOSs: [string],
        baselineOSs: [string],
    }],
    test_base_account_name=string,
    tests=[{
        commands: [{
            action: string,
            content: string,
            contentType: string,
            name: string,
            alwaysRun: False,
            applyUpdateBefore: False,
            maxRunTime: 0,
            restartAfter: False,
            runAsInteractive: False,
            runElevated: False,
        }],
        testType: string,
        isActive: False,
    }],
    version=string,
    location=string,
    package_name=string,
    tags={
        string: string,
    })
const packageResource = new azure_native.testbase.Package("packageResource", {
    applicationName: "string",
    blobPath: "string",
    flightingRing: "string",
    resourceGroupName: "string",
    targetOSList: [{
        osUpdateType: "string",
        targetOSs: ["string"],
        baselineOSs: ["string"],
    }],
    testBaseAccountName: "string",
    tests: [{
        commands: [{
            action: "string",
            content: "string",
            contentType: "string",
            name: "string",
            alwaysRun: false,
            applyUpdateBefore: false,
            maxRunTime: 0,
            restartAfter: false,
            runAsInteractive: false,
            runElevated: false,
        }],
        testType: "string",
        isActive: false,
    }],
    version: "string",
    location: "string",
    packageName: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:testbase:Package
properties:
    applicationName: string
    blobPath: string
    flightingRing: string
    location: string
    packageName: string
    resourceGroupName: string
    tags:
        string: string
    targetOSList:
        - baselineOSs:
            - string
          osUpdateType: string
          targetOSs:
            - string
    testBaseAccountName: string
    tests:
        - commands:
            - action: string
              alwaysRun: false
              applyUpdateBefore: false
              content: string
              contentType: string
              maxRunTime: 0
              name: string
              restartAfter: false
              runAsInteractive: false
              runElevated: false
          isActive: false
          testType: string
    version: string
Package 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 Package resource accepts the following input properties:
- ApplicationName string
- Application name
- BlobPath string
- The file path of the package.
- FlightingRing string
- The flighting ring for feature update.
- ResourceGroup stringName 
- The name of the resource group that contains the resource.
- TargetOSList List<Pulumi.Azure Native. Test Base. Inputs. Target OSInfo> 
- Specifies the target OSs of specific OS Update types.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- Tests
List<Pulumi.Azure Native. Test Base. Inputs. Test> 
- The detailed test information.
- Version string
- Application version
- Location string
- The geo-location where the resource lives
- PackageName string
- The resource name of the Test Base Package.
- Dictionary<string, string>
- The tags of the resource.
- ApplicationName string
- Application name
- BlobPath string
- The file path of the package.
- FlightingRing string
- The flighting ring for feature update.
- ResourceGroup stringName 
- The name of the resource group that contains the resource.
- TargetOSList []TargetOSInfo Args 
- Specifies the target OSs of specific OS Update types.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- Tests
[]TestArgs 
- The detailed test information.
- Version string
- Application version
- Location string
- The geo-location where the resource lives
- PackageName string
- The resource name of the Test Base Package.
- map[string]string
- The tags of the resource.
- applicationName String
- Application name
- blobPath String
- The file path of the package.
- flightingRing String
- The flighting ring for feature update.
- resourceGroup StringName 
- The name of the resource group that contains the resource.
- targetOSList List<TargetOSInfo> 
- Specifies the target OSs of specific OS Update types.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
- tests List<Test>
- The detailed test information.
- version String
- Application version
- location String
- The geo-location where the resource lives
- packageName String
- The resource name of the Test Base Package.
- Map<String,String>
- The tags of the resource.
- applicationName string
- Application name
- blobPath string
- The file path of the package.
- flightingRing string
- The flighting ring for feature update.
- resourceGroup stringName 
- The name of the resource group that contains the resource.
- targetOSList TargetOSInfo[] 
- Specifies the target OSs of specific OS Update types.
- testBase stringAccount Name 
- The resource name of the Test Base Account.
- tests Test[]
- The detailed test information.
- version string
- Application version
- location string
- The geo-location where the resource lives
- packageName string
- The resource name of the Test Base Package.
- {[key: string]: string}
- The tags of the resource.
- application_name str
- Application name
- blob_path str
- The file path of the package.
- flighting_ring str
- The flighting ring for feature update.
- resource_group_ strname 
- The name of the resource group that contains the resource.
- target_os_ Sequence[Targetlist OSInfo Args] 
- Specifies the target OSs of specific OS Update types.
- test_base_ straccount_ name 
- The resource name of the Test Base Account.
- tests
Sequence[TestArgs] 
- The detailed test information.
- version str
- Application version
- location str
- The geo-location where the resource lives
- package_name str
- The resource name of the Test Base Package.
- Mapping[str, str]
- The tags of the resource.
- applicationName String
- Application name
- blobPath String
- The file path of the package.
- flightingRing String
- The flighting ring for feature update.
- resourceGroup StringName 
- The name of the resource group that contains the resource.
- targetOSList List<Property Map>
- Specifies the target OSs of specific OS Update types.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
- tests List<Property Map>
- The detailed test information.
- version String
- Application version
- location String
- The geo-location where the resource lives
- packageName String
- The resource name of the Test Base Package.
- Map<String>
- The tags of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Package resource produces the following output properties:
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsEnabled bool
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- LastModified stringTime 
- The UTC timestamp when the package was last modified.
- Name string
- Resource name.
- PackageStatus string
- The status of the package.
- 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
- TestTypes List<string>
- OOB, functional or both. Mapped to the data in 'tests' property.
- Type string
- Resource type.
- ValidationResults List<Pulumi.Azure Native. Test Base. Outputs. Package Validation Result Response> 
- The validation results. There's validation on package when it's created or updated.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsEnabled bool
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- LastModified stringTime 
- The UTC timestamp when the package was last modified.
- Name string
- Resource name.
- PackageStatus string
- The status of the package.
- ProvisioningState string
- The provisioning state of the resource.
- SystemData SystemData Response 
- The system metadata relating to this resource
- TestTypes []string
- OOB, functional or both. Mapped to the data in 'tests' property.
- Type string
- Resource type.
- ValidationResults []PackageValidation Result Response 
- The validation results. There's validation on package when it's created or updated.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- isEnabled Boolean
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- lastModified StringTime 
- The UTC timestamp when the package was last modified.
- name String
- Resource name.
- packageStatus String
- The status of the package.
- provisioningState String
- The provisioning state of the resource.
- systemData SystemData Response 
- The system metadata relating to this resource
- testTypes List<String>
- OOB, functional or both. Mapped to the data in 'tests' property.
- type String
- Resource type.
- validationResults List<PackageValidation Result Response> 
- The validation results. There's validation on package when it's created or updated.
- etag string
- Resource Etag.
- id string
- The provider-assigned unique ID for this managed resource.
- isEnabled boolean
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- lastModified stringTime 
- The UTC timestamp when the package was last modified.
- name string
- Resource name.
- packageStatus string
- The status of the package.
- provisioningState string
- The provisioning state of the resource.
- systemData SystemData Response 
- The system metadata relating to this resource
- testTypes string[]
- OOB, functional or both. Mapped to the data in 'tests' property.
- type string
- Resource type.
- validationResults PackageValidation Result Response[] 
- The validation results. There's validation on package when it's created or updated.
- etag str
- Resource Etag.
- id str
- The provider-assigned unique ID for this managed resource.
- is_enabled bool
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- last_modified_ strtime 
- The UTC timestamp when the package was last modified.
- name str
- Resource name.
- package_status str
- The status of the package.
- provisioning_state str
- The provisioning state of the resource.
- system_data SystemData Response 
- The system metadata relating to this resource
- test_types Sequence[str]
- OOB, functional or both. Mapped to the data in 'tests' property.
- type str
- Resource type.
- validation_results Sequence[PackageValidation Result Response] 
- The validation results. There's validation on package when it's created or updated.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- isEnabled Boolean
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- lastModified StringTime 
- The UTC timestamp when the package was last modified.
- name String
- Resource name.
- packageStatus String
- The status of the package.
- provisioningState String
- The provisioning state of the resource.
- systemData Property Map
- The system metadata relating to this resource
- testTypes List<String>
- OOB, functional or both. Mapped to the data in 'tests' property.
- type String
- Resource type.
- validationResults List<Property Map>
- The validation results. There's validation on package when it's created or updated.
Supporting Types
Action, ActionArgs  
- Install
- Install
- Launch
- Launch
- Close
- Close
- Uninstall
- Uninstall
- Custom
- Custom
- ActionInstall 
- Install
- ActionLaunch 
- Launch
- ActionClose 
- Close
- ActionUninstall 
- Uninstall
- ActionCustom 
- Custom
- Install
- Install
- Launch
- Launch
- Close
- Close
- Uninstall
- Uninstall
- Custom
- Custom
- Install
- Install
- Launch
- Launch
- Close
- Close
- Uninstall
- Uninstall
- Custom
- Custom
- INSTALL
- Install
- LAUNCH
- Launch
- CLOSE
- Close
- UNINSTALL
- Uninstall
- CUSTOM
- Custom
- "Install"
- Install
- "Launch"
- Launch
- "Close"
- Close
- "Uninstall"
- Uninstall
- "Custom"
- Custom
Command, CommandArgs  
- Action
string | Pulumi.Azure Native. Test Base. Action 
- The action of the command.
- Content string
- The content of the command. The content depends on source type.
- ContentType string | Pulumi.Azure Native. Test Base. Content Type 
- The type of command content.
- Name string
- The name of the command.
- AlwaysRun bool
- Specifies whether to run the command even if a previous command is failed.
- ApplyUpdate boolBefore 
- Specifies whether to apply update before the command.
- MaxRun intTime 
- Specifies the max run time of the command.
- RestartAfter bool
- Specifies whether to restart the VM after the command executed.
- RunAs boolInteractive 
- Specifies whether to run the command in interactive mode.
- RunElevated bool
- Specifies whether to run the command as administrator.
- Action string | Action
- The action of the command.
- Content string
- The content of the command. The content depends on source type.
- ContentType string | ContentType 
- The type of command content.
- Name string
- The name of the command.
- AlwaysRun bool
- Specifies whether to run the command even if a previous command is failed.
- ApplyUpdate boolBefore 
- Specifies whether to apply update before the command.
- MaxRun intTime 
- Specifies the max run time of the command.
- RestartAfter bool
- Specifies whether to restart the VM after the command executed.
- RunAs boolInteractive 
- Specifies whether to run the command in interactive mode.
- RunElevated bool
- Specifies whether to run the command as administrator.
- action String | Action
- The action of the command.
- content String
- The content of the command. The content depends on source type.
- contentType String | ContentType 
- The type of command content.
- name String
- The name of the command.
- alwaysRun Boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate BooleanBefore 
- Specifies whether to apply update before the command.
- maxRun IntegerTime 
- Specifies the max run time of the command.
- restartAfter Boolean
- Specifies whether to restart the VM after the command executed.
- runAs BooleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated Boolean
- Specifies whether to run the command as administrator.
- action string | Action
- The action of the command.
- content string
- The content of the command. The content depends on source type.
- contentType string | ContentType 
- The type of command content.
- name string
- The name of the command.
- alwaysRun boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate booleanBefore 
- Specifies whether to apply update before the command.
- maxRun numberTime 
- Specifies the max run time of the command.
- restartAfter boolean
- Specifies whether to restart the VM after the command executed.
- runAs booleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated boolean
- Specifies whether to run the command as administrator.
- action str | Action
- The action of the command.
- content str
- The content of the command. The content depends on source type.
- content_type str | ContentType 
- The type of command content.
- name str
- The name of the command.
- always_run bool
- Specifies whether to run the command even if a previous command is failed.
- apply_update_ boolbefore 
- Specifies whether to apply update before the command.
- max_run_ inttime 
- Specifies the max run time of the command.
- restart_after bool
- Specifies whether to restart the VM after the command executed.
- run_as_ boolinteractive 
- Specifies whether to run the command in interactive mode.
- run_elevated bool
- Specifies whether to run the command as administrator.
- action String | "Install" | "Launch" | "Close" | "Uninstall" | "Custom"
- The action of the command.
- content String
- The content of the command. The content depends on source type.
- contentType String | "Inline" | "File" | "Path"
- The type of command content.
- name String
- The name of the command.
- alwaysRun Boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate BooleanBefore 
- Specifies whether to apply update before the command.
- maxRun NumberTime 
- Specifies the max run time of the command.
- restartAfter Boolean
- Specifies whether to restart the VM after the command executed.
- runAs BooleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated Boolean
- Specifies whether to run the command as administrator.
CommandResponse, CommandResponseArgs    
- Action string
- The action of the command.
- Content string
- The content of the command. The content depends on source type.
- ContentType string
- The type of command content.
- Name string
- The name of the command.
- AlwaysRun bool
- Specifies whether to run the command even if a previous command is failed.
- ApplyUpdate boolBefore 
- Specifies whether to apply update before the command.
- MaxRun intTime 
- Specifies the max run time of the command.
- RestartAfter bool
- Specifies whether to restart the VM after the command executed.
- RunAs boolInteractive 
- Specifies whether to run the command in interactive mode.
- RunElevated bool
- Specifies whether to run the command as administrator.
- Action string
- The action of the command.
- Content string
- The content of the command. The content depends on source type.
- ContentType string
- The type of command content.
- Name string
- The name of the command.
- AlwaysRun bool
- Specifies whether to run the command even if a previous command is failed.
- ApplyUpdate boolBefore 
- Specifies whether to apply update before the command.
- MaxRun intTime 
- Specifies the max run time of the command.
- RestartAfter bool
- Specifies whether to restart the VM after the command executed.
- RunAs boolInteractive 
- Specifies whether to run the command in interactive mode.
- RunElevated bool
- Specifies whether to run the command as administrator.
- action String
- The action of the command.
- content String
- The content of the command. The content depends on source type.
- contentType String
- The type of command content.
- name String
- The name of the command.
- alwaysRun Boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate BooleanBefore 
- Specifies whether to apply update before the command.
- maxRun IntegerTime 
- Specifies the max run time of the command.
- restartAfter Boolean
- Specifies whether to restart the VM after the command executed.
- runAs BooleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated Boolean
- Specifies whether to run the command as administrator.
- action string
- The action of the command.
- content string
- The content of the command. The content depends on source type.
- contentType string
- The type of command content.
- name string
- The name of the command.
- alwaysRun boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate booleanBefore 
- Specifies whether to apply update before the command.
- maxRun numberTime 
- Specifies the max run time of the command.
- restartAfter boolean
- Specifies whether to restart the VM after the command executed.
- runAs booleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated boolean
- Specifies whether to run the command as administrator.
- action str
- The action of the command.
- content str
- The content of the command. The content depends on source type.
- content_type str
- The type of command content.
- name str
- The name of the command.
- always_run bool
- Specifies whether to run the command even if a previous command is failed.
- apply_update_ boolbefore 
- Specifies whether to apply update before the command.
- max_run_ inttime 
- Specifies the max run time of the command.
- restart_after bool
- Specifies whether to restart the VM after the command executed.
- run_as_ boolinteractive 
- Specifies whether to run the command in interactive mode.
- run_elevated bool
- Specifies whether to run the command as administrator.
- action String
- The action of the command.
- content String
- The content of the command. The content depends on source type.
- contentType String
- The type of command content.
- name String
- The name of the command.
- alwaysRun Boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate BooleanBefore 
- Specifies whether to apply update before the command.
- maxRun NumberTime 
- Specifies the max run time of the command.
- restartAfter Boolean
- Specifies whether to restart the VM after the command executed.
- runAs BooleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated Boolean
- Specifies whether to run the command as administrator.
ContentType, ContentTypeArgs    
- Inline
- Inline
- File
- File
- Path
- Path
- ContentType Inline 
- Inline
- ContentType File 
- File
- ContentType Path 
- Path
- Inline
- Inline
- File
- File
- Path
- Path
- Inline
- Inline
- File
- File
- Path
- Path
- INLINE
- Inline
- FILE
- File
- PATH
- Path
- "Inline"
- Inline
- "File"
- File
- "Path"
- Path
PackageValidationResultResponse, PackageValidationResultResponseArgs        
- Errors List<string>
- Error information.
- IsValid bool
- Indicates whether the package passed the validation.
- ValidationName string
- Validation name.
- Errors []string
- Error information.
- IsValid bool
- Indicates whether the package passed the validation.
- ValidationName string
- Validation name.
- errors List<String>
- Error information.
- isValid Boolean
- Indicates whether the package passed the validation.
- validationName String
- Validation name.
- errors string[]
- Error information.
- isValid boolean
- Indicates whether the package passed the validation.
- validationName string
- Validation name.
- errors Sequence[str]
- Error information.
- is_valid bool
- Indicates whether the package passed the validation.
- validation_name str
- Validation name.
- errors List<String>
- Error information.
- isValid Boolean
- Indicates whether the package passed the validation.
- validationName String
- Validation name.
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.
TargetOSInfo, TargetOSInfoArgs    
- OsUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- TargetOSs List<string>
- Specifies the target OSs to be tested.
- BaselineOSs List<string>
- Specifies the baseline OSs to be tested.
- OsUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- TargetOSs []string
- Specifies the target OSs to be tested.
- BaselineOSs []string
- Specifies the baseline OSs to be tested.
- osUpdate StringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs List<String>
- Specifies the target OSs to be tested.
- baselineOSs List<String>
- Specifies the baseline OSs to be tested.
- osUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs string[]
- Specifies the target OSs to be tested.
- baselineOSs string[]
- Specifies the baseline OSs to be tested.
- os_update_ strtype 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- target_oss Sequence[str]
- Specifies the target OSs to be tested.
- baseline_oss Sequence[str]
- Specifies the baseline OSs to be tested.
- osUpdate StringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs List<String>
- Specifies the target OSs to be tested.
- baselineOSs List<String>
- Specifies the baseline OSs to be tested.
TargetOSInfoResponse, TargetOSInfoResponseArgs      
- OsUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- TargetOSs List<string>
- Specifies the target OSs to be tested.
- BaselineOSs List<string>
- Specifies the baseline OSs to be tested.
- OsUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- TargetOSs []string
- Specifies the target OSs to be tested.
- BaselineOSs []string
- Specifies the baseline OSs to be tested.
- osUpdate StringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs List<String>
- Specifies the target OSs to be tested.
- baselineOSs List<String>
- Specifies the baseline OSs to be tested.
- osUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs string[]
- Specifies the target OSs to be tested.
- baselineOSs string[]
- Specifies the baseline OSs to be tested.
- os_update_ strtype 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- target_oss Sequence[str]
- Specifies the target OSs to be tested.
- baseline_oss Sequence[str]
- Specifies the baseline OSs to be tested.
- osUpdate StringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs List<String>
- Specifies the target OSs to be tested.
- baselineOSs List<String>
- Specifies the baseline OSs to be tested.
Test, TestArgs  
- Commands
List<Pulumi.Azure Native. Test Base. Inputs. Command> 
- The commands used in the test.
- TestType string | Pulumi.Azure Native. Test Base. Test Type 
- The type of the test.
- IsActive bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands List<Command>
- The commands used in the test.
- testType String | TestType 
- The type of the test.
- isActive Boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands Sequence[Command]
- The commands used in the test.
- test_type str | TestType 
- The type of the test.
- is_active bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands List<Property Map>
- The commands used in the test.
- testType String | "OutOf Box Test" | "Functional Test" 
- The type of the test.
- isActive Boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
TestResponse, TestResponseArgs    
- Commands
List<Pulumi.Azure Native. Test Base. Inputs. Command Response> 
- The commands used in the test.
- TestType string
- The type of the test.
- ValidationResult stringId 
- Resource identifier of the validation test result.
- ValidationRun stringStatus 
- The status of the validation run of the package.
- IsActive bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- Commands
[]CommandResponse 
- The commands used in the test.
- TestType string
- The type of the test.
- ValidationResult stringId 
- Resource identifier of the validation test result.
- ValidationRun stringStatus 
- The status of the validation run of the package.
- IsActive bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands
List<CommandResponse> 
- The commands used in the test.
- testType String
- The type of the test.
- validationResult StringId 
- Resource identifier of the validation test result.
- validationRun StringStatus 
- The status of the validation run of the package.
- isActive Boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands
CommandResponse[] 
- The commands used in the test.
- testType string
- The type of the test.
- validationResult stringId 
- Resource identifier of the validation test result.
- validationRun stringStatus 
- The status of the validation run of the package.
- isActive boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands
Sequence[CommandResponse] 
- The commands used in the test.
- test_type str
- The type of the test.
- validation_result_ strid 
- Resource identifier of the validation test result.
- validation_run_ strstatus 
- The status of the validation run of the package.
- is_active bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands List<Property Map>
- The commands used in the test.
- testType String
- The type of the test.
- validationResult StringId 
- Resource identifier of the validation test result.
- validationRun StringStatus 
- The status of the validation run of the package.
- isActive Boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
TestType, TestTypeArgs    
- OutOf Box Test 
- OutOfBoxTest
- FunctionalTest 
- FunctionalTest
- TestType Out Of Box Test 
- OutOfBoxTest
- TestType Functional Test 
- FunctionalTest
- OutOf Box Test 
- OutOfBoxTest
- FunctionalTest 
- FunctionalTest
- OutOf Box Test 
- OutOfBoxTest
- FunctionalTest 
- FunctionalTest
- OUT_OF_BOX_TEST
- OutOfBoxTest
- FUNCTIONAL_TEST
- FunctionalTest
- "OutOf Box Test" 
- OutOfBoxTest
- "FunctionalTest" 
- FunctionalTest
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:testbase:Package contoso-package2 /subscriptions/subscription-id/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2 
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