Draft Package
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}
Properties
The name of the app file.
Application name
The Azure API version of the resource.
The relative path of the folder hosting package files.
Specifies whether this draft package is used to edit a package.
The executable launch command for script auto-fill. Will be used to run the application.
The list of first party applications to test along with user application.
The flighting ring for feature update.
The list of gallery apps to test along with user application.
The highlight files in the package.
Specifies the baseline os and target os for inplace upgrade.
The metadata of Intune enrollment.
Metadata used to generate draft package folder and scripts.
The UTC timestamp when the package was last modified.
Tags of the package to be created.
The process name for script auto-fill. Will be used to identify the application process.
The provisioning state of the resource.
The source type.
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Tab state.
Specifies the target OSs of specific OS Update types.
The detailed test information.
Indicates whether user choose to enable script auto-fill.
The relative path for a temporarily folder for package creation work.