1. Packages
  2. Azure Native
  3. API Docs
  4. devtestlab
  5. ServiceRunner
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi

    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 * 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",
        },
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    service_runner = azure_native.devtestlab.ServiceRunner("serviceRunner",
        identity={
            "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",
        })
    
    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={
            "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ServiceRunner resource accepts the following input properties:

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

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemData Pulumi.AzureNative.DevTestLab.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    IdentityProperties, IdentityPropertiesArgs

    Properties of a 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 | 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

    Properties of a 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.
    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

    SystemDataResponse, SystemDataResponseArgs

    Metadata pertaining to creation and last modification of the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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 v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.16.0
    published on Friday, Mar 20, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.