DraftPackageArgs

data class DraftPackageArgs(val appFileName: Output<String>? = null, val applicationName: Output<String>? = null, val comments: Output<String>? = null, val draftPackageName: Output<String>? = null, val editPackage: Output<Boolean>? = null, val executableLaunchCommand: Output<String>? = null, val firstPartyApps: Output<List<FirstPartyAppDefinitionArgs>>? = null, val flightingRing: Output<String>? = null, val galleryApps: Output<List<GalleryAppDefinitionArgs>>? = null, val highlightedFiles: Output<List<HighlightedFileArgs>>? = null, val inplaceUpgradeOSPair: Output<InplaceUpgradeOSInfoArgs>? = null, val intuneEnrollmentMetadata: Output<IntuneEnrollmentMetadataArgs>? = null, val intuneMetadata: Output<DraftPackageIntuneAppMetadataArgs>? = null, val packageId: Output<String>? = null, val packageTags: Output<Map<String, String>>? = null, val processName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sourceType: Output<Either<String, DraftPackageSourceType>>? = null, val tabState: Output<TabStateArgs>? = null, val targetOSList: Output<List<TargetOSInfoArgs>>? = null, val testBaseAccountName: Output<String>? = null, val testTypes: Output<List<Either<String, TestType>>>? = null, val tests: Output<List<TestArgs>>? = null, val useAutofill: Output<Boolean>? = null, val useSample: Output<Boolean>? = null, val version: Output<String>? = null) : ConvertibleToJava<DraftPackageArgs>

The Test Base Draft Package resource. Uses Azure REST API version 2023-11-01-preview. In version 2.x of the Azure Native provider, it used 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}

Constructors

Link copied to clipboard
constructor(appFileName: Output<String>? = null, applicationName: Output<String>? = null, comments: Output<String>? = null, draftPackageName: Output<String>? = null, editPackage: Output<Boolean>? = null, executableLaunchCommand: Output<String>? = null, firstPartyApps: Output<List<FirstPartyAppDefinitionArgs>>? = null, flightingRing: Output<String>? = null, galleryApps: Output<List<GalleryAppDefinitionArgs>>? = null, highlightedFiles: Output<List<HighlightedFileArgs>>? = null, inplaceUpgradeOSPair: Output<InplaceUpgradeOSInfoArgs>? = null, intuneEnrollmentMetadata: Output<IntuneEnrollmentMetadataArgs>? = null, intuneMetadata: Output<DraftPackageIntuneAppMetadataArgs>? = null, packageId: Output<String>? = null, packageTags: Output<Map<String, String>>? = null, processName: Output<String>? = null, resourceGroupName: Output<String>? = null, sourceType: Output<Either<String, DraftPackageSourceType>>? = null, tabState: Output<TabStateArgs>? = null, targetOSList: Output<List<TargetOSInfoArgs>>? = null, testBaseAccountName: Output<String>? = null, testTypes: Output<List<Either<String, TestType>>>? = null, tests: Output<List<TestArgs>>? = null, useAutofill: Output<Boolean>? = null, useSample: Output<Boolean>? = null, version: Output<String>? = null)

Properties

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

The name of the app file.

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

Application name

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

Comments added by user.

Link copied to clipboard
val draftPackageName: Output<String>? = null

The resource name of the Test Base Draft Package.

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

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

Link copied to clipboard
val executableLaunchCommand: Output<String>? = null

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>? = null

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

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
val packageId: Output<String>? = null

Specifies the package id from which the draft package copied.

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

Tags of the package to be created.

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

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sourceType: Output<Either<String, DraftPackageSourceType>>? = null

The source type.

Link copied to clipboard
val tabState: Output<TabStateArgs>? = null

Tab state.

Link copied to clipboard
val targetOSList: Output<List<TargetOSInfoArgs>>? = null

Specifies the target OSs of specific OS Update types.

Link copied to clipboard
val testBaseAccountName: Output<String>? = null

The resource name of the Test Base Account.

Link copied to clipboard
val tests: Output<List<TestArgs>>? = null

The detailed test information.

Link copied to clipboard
val testTypes: Output<List<Either<String, TestType>>>? = null

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

Link copied to clipboard
val useAutofill: Output<Boolean>? = null

Indicates whether user choose to enable script auto-fill.

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

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

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

Application version

Functions

Link copied to clipboard
open override fun toJava(): DraftPackageArgs