ServiceRunner

class ServiceRunner : KotlinCustomResource

A container for a managed identity to execute DevTest lab services. Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 2018-09-15.

Example Usage

ServiceRunners_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceRunner = new AzureNative.DevTestLab.ServiceRunner("serviceRunner", new()
{
Identity = new AzureNative.DevTestLab.Inputs.IdentityPropertiesArgs
{
ClientSecretUrl = "{identityClientSecretUrl}",
PrincipalId = "{identityPrincipalId}",
TenantId = "{identityTenantId}",
Type = "{identityType}",
},
LabName = "{devtestlabName}",
Location = "{location}",
Name = "{servicerunnerName}",
ResourceGroupName = "resourceGroupName",
Tags =
{
{ "tagName1", "tagValue1" },
},
});
});
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewServiceRunner(ctx, "serviceRunner", &devtestlab.ServiceRunnerArgs{
Identity: &devtestlab.IdentityPropertiesArgs{
ClientSecretUrl: pulumi.String("{identityClientSecretUrl}"),
PrincipalId: pulumi.String("{identityPrincipalId}"),
TenantId: pulumi.String("{identityTenantId}"),
Type: pulumi.String("{identityType}"),
},
LabName: pulumi.String("{devtestlabName}"),
Location: pulumi.String("{location}"),
Name: pulumi.String("{servicerunnerName}"),
ResourceGroupName: pulumi.String("resourceGroupName"),
Tags: pulumi.StringMap{
"tagName1": pulumi.String("tagValue1"),
},
})
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.devtestlab.ServiceRunner;
import com.pulumi.azurenative.devtestlab.ServiceRunnerArgs;
import com.pulumi.azurenative.devtestlab.inputs.IdentityPropertiesArgs;
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 serviceRunner = new ServiceRunner("serviceRunner", ServiceRunnerArgs.builder()
.identity(IdentityPropertiesArgs.builder()
.clientSecretUrl("{identityClientSecretUrl}")
.principalId("{identityPrincipalId}")
.tenantId("{identityTenantId}")
.type("{identityType}")
.build())
.labName("{devtestlabName}")
.location("{location}")
.name("{servicerunnerName}")
.resourceGroupName("resourceGroupName")
.tags(Map.of("tagName1", "tagValue1"))
.build());
}
}

Import

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

$ pulumi import azure-native:devtestlab:ServiceRunner {serviceRunnerName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

The identity of the resource.

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

The location of the resource.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

The tags of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>