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.34.0 published on Thursday, Mar 28, 2024 by Pulumi
azure-native.devtestlab.ServiceRunner
Explore with Pulumi AI
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.34.0 published on Thursday, Mar 28, 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 (
"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
new ServiceRunner(name: string, args: ServiceRunnerArgs, opts?: CustomResourceOptions);
@overload
def ServiceRunner(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[IdentityPropertiesArgs] = None,
lab_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def ServiceRunner(resource_name: str,
args: ServiceRunnerArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- 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 {serviceRunnerName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/servicerunners/{name}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.34.0 published on Thursday, Mar 28, 2024 by Pulumi