azure-native.devtestlab.ServiceRunner
Explore with Pulumi AI
A container for a managed identity to execute DevTest lab services. 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"
"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 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(Map.ofEntries(
Map.entry("clientSecretUrl", "{identityClientSecretUrl}"),
Map.entry("principalId", "{identityPrincipalId}"),
Map.entry("tenantId", "{identityTenantId}"),
Map.entry("type", "{identityType}")
))
.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 =
{
{ "clientSecretUrl", "string" },
{ "principalId", "string" },
{ "tenantId", "string" },
{ "type", "string" },
},
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := devtestlab.NewServiceRunner(ctx, "serviceRunnerResource", &devtestlab.ServiceRunnerArgs{
LabName: "string",
ResourceGroupName: "string",
Identity: map[string]interface{}{
"clientSecretUrl": "string",
"principalId": "string",
"tenantId": "string",
"type": "string",
},
Location: "string",
Name: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var serviceRunnerResource = new ServiceRunner("serviceRunnerResource", ServiceRunnerArgs.builder()
.labName("string")
.resourceGroupName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.name("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
service_runner_resource = azure_native.devtestlab.ServiceRunner("serviceRunnerResource",
lab_name=string,
resource_group_name=string,
identity={
clientSecretUrl: string,
principalId: string,
tenantId: 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:
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group.
- Identity
Pulumi.
Azure Native. Dev Test Lab. Inputs. Identity Properties - The identity of the resource.
- Location string
- The location of the resource.
- Name string
- The name of the service runner.
- Dictionary<string, string>
- The tags of the resource.
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group.
- Identity
Identity
Properties Args - The identity of the resource.
- Location string
- The location of the resource.
- Name string
- The name of the service runner.
- map[string]string
- The tags of the resource.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group.
- identity
Identity
Properties - The identity of the resource.
- location String
- The location of the resource.
- name String
- The name of the service runner.
- Map<String,String>
- The tags of the resource.
- lab
Name string - The name of the lab.
- resource
Group stringName - The name of the resource group.
- identity
Identity
Properties - The identity of the resource.
- location string
- The location of the resource.
- name string
- The name of the service runner.
- {[key: string]: string}
- The tags of the resource.
- lab_
name str - The name of the lab.
- resource_
group_ strname - The name of the resource group.
- identity
Identity
Properties Args - The identity of the resource.
- location str
- The location of the resource.
- name str
- The name of the service runner.
- Mapping[str, str]
- The tags of the resource.
- lab
Name String - The name of the lab.
- resource
Group StringName - 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.
- 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:
Supporting Types
IdentityProperties, IdentityPropertiesArgs
- Client
Secret stringUrl - The client secret URL of the identity.
- Principal
Id string - The principal id of resource identity.
- Tenant
Id string - The tenant identifier of resource.
- Type
string | Pulumi.
Azure Native. Dev Test Lab. Managed Identity Type - Managed identity.
- Client
Secret stringUrl - The client secret URL of the identity.
- Principal
Id string - The principal id of resource identity.
- Tenant
Id string - The tenant identifier of resource.
- Type
string | Managed
Identity Type - Managed identity.
- client
Secret StringUrl - The client secret URL of the identity.
- principal
Id String - The principal id of resource identity.
- tenant
Id String - The tenant identifier of resource.
- type
String | Managed
Identity Type - Managed identity.
- client
Secret stringUrl - The client secret URL of the identity.
- principal
Id string - The principal id of resource identity.
- tenant
Id string - The tenant identifier of resource.
- type
string | Managed
Identity Type - Managed identity.
- client_
secret_ strurl - 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 Type - Managed identity.
- client
Secret StringUrl - The client secret URL of the identity.
- principal
Id String - The principal id of resource identity.
- tenant
Id String - The tenant identifier of resource.
- type
String | "None" | "System
Assigned" | "User Assigned" | "System Assigned,User Assigned" - Managed identity.
IdentityPropertiesResponse, IdentityPropertiesResponseArgs
- Client
Secret stringUrl - The client secret URL of the identity.
- Principal
Id string - The principal id of resource identity.
- Tenant
Id string - The tenant identifier of resource.
- Type string
- Managed identity.
- Client
Secret stringUrl - The client secret URL of the identity.
- Principal
Id string - The principal id of resource identity.
- Tenant
Id string - The tenant identifier of resource.
- Type string
- Managed identity.
- client
Secret StringUrl - The client secret URL of the identity.
- principal
Id String - The principal id of resource identity.
- tenant
Id String - The tenant identifier of resource.
- type String
- Managed identity.
- client
Secret stringUrl - The client secret URL of the identity.
- principal
Id string - The principal id of resource identity.
- tenant
Id string - The tenant identifier of resource.
- type string
- Managed identity.
- client_
secret_ strurl - 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.
- client
Secret StringUrl - The client secret URL of the identity.
- principal
Id String - The principal id of resource identity.
- tenant
Id String - The tenant identifier of resource.
- type String
- Managed identity.
ManagedIdentityType, ManagedIdentityTypeArgs
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- Managed
Identity Type None - None
- Managed
Identity Type System Assigned - SystemAssigned
- Managed
Identity Type User Assigned - UserAssigned
- Managed
Identity Type_System Assigned_User Assigned - SystemAssigned,UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- User
Assigned - UserAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- USER_ASSIGNED
- UserAssigned
- SYSTEM_ASSIGNED_USER_ASSIGNED
- SystemAssigned,UserAssigned
- "None"
- None
- "System
Assigned" - SystemAssigned
- "User
Assigned" - UserAssigned
- "System
Assigned,User Assigned" - SystemAssigned,UserAssigned
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devtestlab:ServiceRunner myresource1 /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-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0