Linker Dryrun
a dryrun job resource Uses Azure REST API version 2022-11-01-preview. Other available API versions: 2023-04-01-preview, 2024-04-01, 2024-07-01-preview.
Example Usage
PutDryrun
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var linkerDryrun = new AzureNative.ServiceLinker.LinkerDryrun("linkerDryrun", new()
{
DryrunName = "dryrunName",
Parameters = new AzureNative.ServiceLinker.Inputs.CreateOrUpdateDryrunParametersArgs
{
ActionName = "createOrUpdate",
AuthInfo = new AzureNative.ServiceLinker.Inputs.SecretAuthInfoArgs
{
AuthType = "secret",
Name = "name",
SecretInfo = new AzureNative.ServiceLinker.Inputs.ValueSecretInfoArgs
{
SecretType = "rawValue",
Value = "secret",
},
},
TargetService = new AzureNative.ServiceLinker.Inputs.AzureResourceArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
Type = "AzureResource",
},
},
ResourceUri = "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app",
});
});
Content copied to clipboard
package main
import (
servicelinker "github.com/pulumi/pulumi-azure-native-sdk/servicelinker/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicelinker.NewLinkerDryrun(ctx, "linkerDryrun", &servicelinker.LinkerDryrunArgs{
DryrunName: pulumi.String("dryrunName"),
Parameters: &servicelinker.CreateOrUpdateDryrunParametersArgs{
ActionName: pulumi.String("createOrUpdate"),
AuthInfo: servicelinker.SecretAuthInfo{
AuthType: "secret",
Name: "name",
SecretInfo: servicelinker.ValueSecretInfo{
SecretType: "rawValue",
Value: "secret",
},
},
TargetService: servicelinker.AzureResource{
Id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db",
Type: "AzureResource",
},
},
ResourceUri: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.servicelinker.LinkerDryrun;
import com.pulumi.azurenative.servicelinker.LinkerDryrunArgs;
import com.pulumi.azurenative.servicelinker.inputs.CreateOrUpdateDryrunParametersArgs;
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 linkerDryrun = new LinkerDryrun("linkerDryrun", LinkerDryrunArgs.builder()
.dryrunName("dryrunName")
.parameters(CreateOrUpdateDryrunParametersArgs.builder()
.actionName("createOrUpdate")
.authInfo(AccessKeyInfoBaseArgs.builder()
.authType("secret")
.name("name")
.secretInfo(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.targetService(AzureResourceArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db")
.type("AzureResource")
.build())
.build())
.resourceUri("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Web/sites/test-app")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicelinker:LinkerDryrun dryrunName /{resourceUri}/providers/Microsoft.ServiceLinker/dryruns/{dryrunName}
Content copied to clipboard
Properties
Link copied to clipboard
the preview of the operations for creation
Link copied to clipboard
The parameters of the dryrun
Link copied to clipboard
val prerequisiteResults: Output<List<Either<BasicErrorDryrunPrerequisiteResultResponse, PermissionsMissingDryrunPrerequisiteResultResponse>>>
the result of the dryrun
Link copied to clipboard
The provisioning state.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.