1. Packages
  2. Azure Native
  3. API Docs
  4. devtestlab
  5. ServiceRunner
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.devtestlab.ServiceRunner

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    A container for a managed identity to execute DevTest lab services. Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 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/v2"
    	"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 pulumi
    import pulumi_azure_native as azure_native
    
    service_runner = azure_native.devtestlab.ServiceRunner("serviceRunner",
        identity=azure_native.devtestlab.IdentityPropertiesArgs(
            client_secret_url="{identityClientSecretUrl}",
            principal_id="{identityPrincipalId}",
            tenant_id="{identityTenantId}",
            type="{identityType}",
        ),
        lab_name="{devtestlabName}",
        location="{location}",
        name="{servicerunnerName}",
        resource_group_name="resourceGroupName",
        tags={
            "tagName1": "tagValue1",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serviceRunner = new azure_native.devtestlab.ServiceRunner("serviceRunner", {
        identity: {
            clientSecretUrl: "{identityClientSecretUrl}",
            principalId: "{identityPrincipalId}",
            tenantId: "{identityTenantId}",
            type: "{identityType}",
        },
        labName: "{devtestlabName}",
        location: "{location}",
        name: "{servicerunnerName}",
        resourceGroupName: "resourceGroupName",
        tags: {
            tagName1: "tagValue1",
        },
    });
    
    resources:
      serviceRunner:
        type: azure-native:devtestlab:ServiceRunner
        properties:
          identity:
            clientSecretUrl: '{identityClientSecretUrl}'
            principalId: '{identityPrincipalId}'
            tenantId: '{identityTenantId}'
            type: '{identityType}'
          labName: '{devtestlabName}'
          location: '{location}'
          name: '{servicerunnerName}'
          resourceGroupName: resourceGroupName
          tags:
            tagName1: tagValue1
    

    Create ServiceRunner Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceRunner(name: string, args: ServiceRunnerArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceRunner(resource_name: str,
                      args: ServiceRunnerArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceRunner(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      lab_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      identity: Optional[IdentityPropertiesArgs] = None,
                      location: Optional[str] = None,
                      name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
    func NewServiceRunner(ctx *Context, name string, args ServiceRunnerArgs, opts ...ResourceOption) (*ServiceRunner, error)
    public ServiceRunner(string name, ServiceRunnerArgs args, CustomResourceOptions? opts = null)
    public ServiceRunner(String name, ServiceRunnerArgs args)
    public ServiceRunner(String name, ServiceRunnerArgs args, CustomResourceOptions options)
    
    type: azure-native:devtestlab:ServiceRunner
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceRunnerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceRunnerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceRunnerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceRunnerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceRunnerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serviceRunnerResource = new AzureNative.DevTestLab.ServiceRunner("serviceRunnerResource", new()
    {
        LabName = "string",
        ResourceGroupName = "string",
        Identity = new AzureNative.DevTestLab.Inputs.IdentityPropertiesArgs
        {
            ClientSecretUrl = "string",
            PrincipalId = "string",
            TenantId = "string",
            Type = "string",
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := devtestlab.NewServiceRunner(ctx, "serviceRunnerResource", &devtestlab.ServiceRunnerArgs{
    LabName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    Identity: &devtestlab.IdentityPropertiesArgs{
    ClientSecretUrl: pulumi.String("string"),
    PrincipalId: pulumi.String("string"),
    TenantId: pulumi.String("string"),
    Type: pulumi.String("string"),
    },
    Location: pulumi.String("string"),
    Name: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var serviceRunnerResource = new ServiceRunner("serviceRunnerResource", ServiceRunnerArgs.builder()
        .labName("string")
        .resourceGroupName("string")
        .identity(IdentityPropertiesArgs.builder()
            .clientSecretUrl("string")
            .principalId("string")
            .tenantId("string")
            .type("string")
            .build())
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    service_runner_resource = azure_native.devtestlab.ServiceRunner("serviceRunnerResource",
        lab_name="string",
        resource_group_name="string",
        identity=azure_native.devtestlab.IdentityPropertiesArgs(
            client_secret_url="string",
            principal_id="string",
            tenant_id="string",
            type="string",
        ),
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const serviceRunnerResource = new azure_native.devtestlab.ServiceRunner("serviceRunnerResource", {
        labName: "string",
        resourceGroupName: "string",
        identity: {
            clientSecretUrl: "string",
            principalId: "string",
            tenantId: "string",
            type: "string",
        },
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:devtestlab:ServiceRunner
    properties:
        identity:
            clientSecretUrl: string
            principalId: string
            tenantId: string
            type: string
        labName: string
        location: string
        name: string
        resourceGroupName: string
        tags:
            string: string
    

    ServiceRunner Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServiceRunner resource accepts the following input properties:

    LabName string
    The name of the lab.
    ResourceGroupName string
    The name of the resource group.
    Identity Pulumi.AzureNative.DevTestLab.Inputs.IdentityProperties
    The identity of the resource.
    Location string
    The location of the resource.
    Name string
    The name of the service runner.
    Tags Dictionary<string, string>
    The tags of the resource.
    LabName string
    The name of the lab.
    ResourceGroupName string
    The name of the resource group.
    Identity IdentityPropertiesArgs
    The identity of the resource.
    Location string
    The location of the resource.
    Name string
    The name of the service runner.
    Tags map[string]string
    The tags of the resource.
    labName String
    The name of the lab.
    resourceGroupName String
    The name of the resource group.
    identity IdentityProperties
    The identity of the resource.
    location String
    The location of the resource.
    name String
    The name of the service runner.
    tags Map<String,String>
    The tags of the resource.
    labName string
    The name of the lab.
    resourceGroupName string
    The name of the resource group.
    identity IdentityProperties
    The identity of the resource.
    location string
    The location of the resource.
    name string
    The name of the service runner.
    tags {[key: string]: string}
    The tags of the resource.
    lab_name str
    The name of the lab.
    resource_group_name str
    The name of the resource group.
    identity IdentityPropertiesArgs
    The identity of the resource.
    location str
    The location of the resource.
    name str
    The name of the service runner.
    tags Mapping[str, str]
    The tags of the resource.
    labName String
    The name of the lab.
    resourceGroupName String
    The name of the resource group.
    identity Property Map
    The identity of the resource.
    location String
    The location of the resource.
    name String
    The name of the service runner.
    tags Map<String>
    The tags of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceRunner resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The type of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The type of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    The type of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The type of the resource.

    Supporting Types

    IdentityProperties, IdentityPropertiesArgs

    ClientSecretUrl string
    The client secret URL of the identity.
    PrincipalId string
    The principal id of resource identity.
    TenantId string
    The tenant identifier of resource.
    Type string | Pulumi.AzureNative.DevTestLab.ManagedIdentityType
    Managed identity.
    ClientSecretUrl string
    The client secret URL of the identity.
    PrincipalId string
    The principal id of resource identity.
    TenantId string
    The tenant identifier of resource.
    Type string | ManagedIdentityType
    Managed identity.
    clientSecretUrl String
    The client secret URL of the identity.
    principalId String
    The principal id of resource identity.
    tenantId String
    The tenant identifier of resource.
    type String | ManagedIdentityType
    Managed identity.
    clientSecretUrl string
    The client secret URL of the identity.
    principalId string
    The principal id of resource identity.
    tenantId string
    The tenant identifier of resource.
    type string | ManagedIdentityType
    Managed identity.
    client_secret_url str
    The client secret URL of the identity.
    principal_id str
    The principal id of resource identity.
    tenant_id str
    The tenant identifier of resource.
    type str | ManagedIdentityType
    Managed identity.
    clientSecretUrl String
    The client secret URL of the identity.
    principalId String
    The principal id of resource identity.
    tenantId String
    The tenant identifier of resource.
    type String | "None" | "SystemAssigned" | "UserAssigned" | "SystemAssigned,UserAssigned"
    Managed identity.

    IdentityPropertiesResponse, IdentityPropertiesResponseArgs

    ClientSecretUrl string
    The client secret URL of the identity.
    PrincipalId string
    The principal id of resource identity.
    TenantId string
    The tenant identifier of resource.
    Type string
    Managed identity.
    ClientSecretUrl string
    The client secret URL of the identity.
    PrincipalId string
    The principal id of resource identity.
    TenantId string
    The tenant identifier of resource.
    Type string
    Managed identity.
    clientSecretUrl String
    The client secret URL of the identity.
    principalId String
    The principal id of resource identity.
    tenantId String
    The tenant identifier of resource.
    type String
    Managed identity.
    clientSecretUrl string
    The client secret URL of the identity.
    principalId string
    The principal id of resource identity.
    tenantId string
    The tenant identifier of resource.
    type string
    Managed identity.
    client_secret_url str
    The client secret URL of the identity.
    principal_id str
    The principal id of resource identity.
    tenant_id str
    The tenant identifier of resource.
    type str
    Managed identity.
    clientSecretUrl String
    The client secret URL of the identity.
    principalId String
    The principal id of resource identity.
    tenantId String
    The tenant identifier of resource.
    type String
    Managed identity.

    ManagedIdentityType, ManagedIdentityTypeArgs

    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    ManagedIdentityTypeNone
    None
    ManagedIdentityTypeSystemAssigned
    SystemAssigned
    ManagedIdentityTypeUserAssigned
    UserAssigned
    ManagedIdentityType_SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    None
    None
    SystemAssigned
    SystemAssigned
    UserAssigned
    UserAssigned
    SystemAssigned_UserAssigned
    SystemAssigned,UserAssigned
    NONE
    None
    SYSTEM_ASSIGNED
    SystemAssigned
    USER_ASSIGNED
    UserAssigned
    SYSTEM_ASSIGNED_USER_ASSIGNED
    SystemAssigned,UserAssigned
    "None"
    None
    "SystemAssigned"
    SystemAssigned
    "UserAssigned"
    UserAssigned
    "SystemAssigned,UserAssigned"
    SystemAssigned,UserAssigned

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi