DraftPackage

class DraftPackage : KotlinCustomResource

The Test Base Draft Package resource. Uses Azure REST API version 2023-11-01-preview.

Example Usage

DraftPackageCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var draftPackage = new AzureNative.TestBase.DraftPackage("draftPackage", new()
{
AppFileName = "TestBaseM365DigitalClock.msi",
ApplicationName = "contoso-package",
DraftPackageName = "61d99543-14ff-47ae-bf03-8a8b8445502e",
ResourceGroupName = "contoso-rg1",
SourceType = AzureNative.TestBase.DraftPackageSourceType.Native,
TestBaseAccountName = "contoso-testBaseAccount1",
UseSample = false,
Version = "1.0",
});
});
package main
import (
testbase "github.com/pulumi/pulumi-azure-native-sdk/testbase/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := testbase.NewDraftPackage(ctx, "draftPackage", &testbase.DraftPackageArgs{
AppFileName: pulumi.String("TestBaseM365DigitalClock.msi"),
ApplicationName: pulumi.String("contoso-package"),
DraftPackageName: pulumi.String("61d99543-14ff-47ae-bf03-8a8b8445502e"),
ResourceGroupName: pulumi.String("contoso-rg1"),
SourceType: pulumi.String(testbase.DraftPackageSourceTypeNative),
TestBaseAccountName: pulumi.String("contoso-testBaseAccount1"),
UseSample: pulumi.Bool(false),
Version: pulumi.String("1.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.DraftPackage;
import com.pulumi.azurenative.testbase.DraftPackageArgs;
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 draftPackage = new DraftPackage("draftPackage", DraftPackageArgs.builder()
.appFileName("TestBaseM365DigitalClock.msi")
.applicationName("contoso-package")
.draftPackageName("61d99543-14ff-47ae-bf03-8a8b8445502e")
.resourceGroupName("contoso-rg1")
.sourceType("Native")
.testBaseAccountName("contoso-testBaseAccount1")
.useSample(false)
.version("1.0")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:testbase:DraftPackage 61d99543-14ff-47ae-bf03-8a8b8445502e /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/draftPackages/{draftPackageName}

Properties

Link copied to clipboard
val appFileName: Output<String>?

The name of the app file.

Link copied to clipboard
val applicationName: Output<String>?

Application name

Link copied to clipboard
val comments: Output<String>?

Comments added by user.

Link copied to clipboard

The relative path of the folder hosting package files.

Link copied to clipboard
val editPackage: Output<Boolean>?

Specifies whether this draft package is used to edit a package.

Link copied to clipboard

The executable launch command for script auto-fill. Will be used to run the application.

Link copied to clipboard

The list of first party applications to test along with user application.

Link copied to clipboard
val flightingRing: Output<String>?

The flighting ring for feature update.

Link copied to clipboard

The list of gallery apps to test along with user application.

Link copied to clipboard

The highlight files in the package.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Specifies the baseline os and target os for inplace upgrade.

Link copied to clipboard

The metadata of Intune enrollment.

Link copied to clipboard

Metadata used to generate draft package folder and scripts.

Link copied to clipboard

The UTC timestamp when the package was last modified.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val packageId: Output<String>?

Specifies the package id from which the draft package copied.

Link copied to clipboard
val packageTags: Output<Map<String, String>>?

Tags of the package to be created.

Link copied to clipboard
val processName: Output<String>?

The process name for script auto-fill. Will be used to identify the application process.

Link copied to clipboard

The provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sourceType: Output<String>?

The source type.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard

Tab state.

Link copied to clipboard

Specifies the target OSs of specific OS Update types.

Link copied to clipboard
val tests: Output<List<TestResponse>>?

The detailed test information.

Link copied to clipboard
val testTypes: Output<List<String>>?

OOB, functional or flow driven. Mapped to the data in 'tests' property.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val useAutofill: Output<Boolean>?

Indicates whether user choose to enable script auto-fill.

Link copied to clipboard
val useSample: Output<Boolean>?

Specifies whether a sample package should be used instead of the one uploaded by the user.

Link copied to clipboard
val version: Output<String>?

Application version

Link copied to clipboard
val workingPath: Output<String>

The relative path for a temporarily folder for package creation work.