HybridRunbookWorkerGroupArgs

data class HybridRunbookWorkerGroupArgs(val automationAccountName: Output<String>? = null, val credential: Output<RunAsCredentialAssociationPropertyArgs>? = null, val hybridRunbookWorkerGroupName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<HybridRunbookWorkerGroupArgs>

Definition of hybrid runbook worker group. Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2022-08-08. Other available API versions: 2021-06-22, 2022-02-22, 2022-08-08, 2023-05-15-preview, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create a hybrid worker group

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hybridRunbookWorkerGroup = new AzureNative.Automation.HybridRunbookWorkerGroup("hybridRunbookWorkerGroup", new()
{
AutomationAccountName = "testaccount",
Credential = new AzureNative.Automation.Inputs.RunAsCredentialAssociationPropertyArgs
{
Name = "myRunAsCredentialName",
},
HybridRunbookWorkerGroupName = "TestHybridGroup",
ResourceGroupName = "rg",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewHybridRunbookWorkerGroup(ctx, "hybridRunbookWorkerGroup", &automation.HybridRunbookWorkerGroupArgs{
AutomationAccountName: pulumi.String("testaccount"),
Credential: &automation.RunAsCredentialAssociationPropertyArgs{
Name: pulumi.String("myRunAsCredentialName"),
},
HybridRunbookWorkerGroupName: pulumi.String("TestHybridGroup"),
ResourceGroupName: pulumi.String("rg"),
})
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.automation.HybridRunbookWorkerGroup;
import com.pulumi.azurenative.automation.HybridRunbookWorkerGroupArgs;
import com.pulumi.azurenative.automation.inputs.RunAsCredentialAssociationPropertyArgs;
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 hybridRunbookWorkerGroup = new HybridRunbookWorkerGroup("hybridRunbookWorkerGroup", HybridRunbookWorkerGroupArgs.builder()
.automationAccountName("testaccount")
.credential(RunAsCredentialAssociationPropertyArgs.builder()
.name("myRunAsCredentialName")
.build())
.hybridRunbookWorkerGroupName("TestHybridGroup")
.resourceGroupName("rg")
.build());
}
}

Import

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

$ pulumi import azure-native:automation:HybridRunbookWorkerGroup TestHybridGroup /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}

Constructors

Link copied to clipboard
constructor(automationAccountName: Output<String>? = null, credential: Output<RunAsCredentialAssociationPropertyArgs>? = null, hybridRunbookWorkerGroupName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val automationAccountName: Output<String>? = null

The name of the automation account.

Link copied to clipboard

Sets the credential of a worker group.

Link copied to clipboard

The hybrid runbook worker group name

Link copied to clipboard
val name: Output<String>? = null

Gets or sets the name of the resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of an Azure Resource group.

Functions

Link copied to clipboard
open override fun toJava(): HybridRunbookWorkerGroupArgs