azure-native.automation.HybridRunbookWorker
Explore with Pulumi AI
Definition of hybrid runbook worker. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2021-06-22.
Other available API versions: 2023-05-15-preview, 2023-11-01.
Example Usage
Create a V2 hybrid runbook worker
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hybridRunbookWorker = new AzureNative.Automation.HybridRunbookWorker("hybridRunbookWorker", new()
{
AutomationAccountName = "testaccount",
HybridRunbookWorkerGroupName = "TestHybridGroup",
HybridRunbookWorkerId = "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
ResourceGroupName = "rg",
VmResourceId = "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewHybridRunbookWorker(ctx, "hybridRunbookWorker", &automation.HybridRunbookWorkerArgs{
AutomationAccountName: pulumi.String("testaccount"),
HybridRunbookWorkerGroupName: pulumi.String("TestHybridGroup"),
HybridRunbookWorkerId: pulumi.String("c010ad12-ef14-4a2a-aa9e-ef22c4745ddd"),
ResourceGroupName: pulumi.String("rg"),
VmResourceId: pulumi.String("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname"),
})
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.HybridRunbookWorker;
import com.pulumi.azurenative.automation.HybridRunbookWorkerArgs;
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 hybridRunbookWorker = new HybridRunbookWorker("hybridRunbookWorker", HybridRunbookWorkerArgs.builder()
.automationAccountName("testaccount")
.hybridRunbookWorkerGroupName("TestHybridGroup")
.hybridRunbookWorkerId("c010ad12-ef14-4a2a-aa9e-ef22c4745ddd")
.resourceGroupName("rg")
.vmResourceId("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
hybrid_runbook_worker = azure_native.automation.HybridRunbookWorker("hybridRunbookWorker",
automation_account_name="testaccount",
hybrid_runbook_worker_group_name="TestHybridGroup",
hybrid_runbook_worker_id="c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
resource_group_name="rg",
vm_resource_id="/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const hybridRunbookWorker = new azure_native.automation.HybridRunbookWorker("hybridRunbookWorker", {
automationAccountName: "testaccount",
hybridRunbookWorkerGroupName: "TestHybridGroup",
hybridRunbookWorkerId: "c010ad12-ef14-4a2a-aa9e-ef22c4745ddd",
resourceGroupName: "rg",
vmResourceId: "/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname",
});
resources:
hybridRunbookWorker:
type: azure-native:automation:HybridRunbookWorker
properties:
automationAccountName: testaccount
hybridRunbookWorkerGroupName: TestHybridGroup
hybridRunbookWorkerId: c010ad12-ef14-4a2a-aa9e-ef22c4745ddd
resourceGroupName: rg
vmResourceId: /subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname
Create HybridRunbookWorker Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HybridRunbookWorker(name: string, args: HybridRunbookWorkerArgs, opts?: CustomResourceOptions);
@overload
def HybridRunbookWorker(resource_name: str,
args: HybridRunbookWorkerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HybridRunbookWorker(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
hybrid_runbook_worker_group_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
hybrid_runbook_worker_id: Optional[str] = None,
name: Optional[str] = None,
vm_resource_id: Optional[str] = None)
func NewHybridRunbookWorker(ctx *Context, name string, args HybridRunbookWorkerArgs, opts ...ResourceOption) (*HybridRunbookWorker, error)
public HybridRunbookWorker(string name, HybridRunbookWorkerArgs args, CustomResourceOptions? opts = null)
public HybridRunbookWorker(String name, HybridRunbookWorkerArgs args)
public HybridRunbookWorker(String name, HybridRunbookWorkerArgs args, CustomResourceOptions options)
type: azure-native:automation:HybridRunbookWorker
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 HybridRunbookWorkerArgs
- 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 HybridRunbookWorkerArgs
- 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 HybridRunbookWorkerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HybridRunbookWorkerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HybridRunbookWorkerArgs
- 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 hybridRunbookWorkerResource = new AzureNative.Automation.HybridRunbookWorker("hybridRunbookWorkerResource", new()
{
AutomationAccountName = "string",
HybridRunbookWorkerGroupName = "string",
ResourceGroupName = "string",
HybridRunbookWorkerId = "string",
Name = "string",
VmResourceId = "string",
});
example, err := automation.NewHybridRunbookWorker(ctx, "hybridRunbookWorkerResource", &automation.HybridRunbookWorkerArgs{
AutomationAccountName: pulumi.String("string"),
HybridRunbookWorkerGroupName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
HybridRunbookWorkerId: pulumi.String("string"),
Name: pulumi.String("string"),
VmResourceId: pulumi.String("string"),
})
var hybridRunbookWorkerResource = new HybridRunbookWorker("hybridRunbookWorkerResource", HybridRunbookWorkerArgs.builder()
.automationAccountName("string")
.hybridRunbookWorkerGroupName("string")
.resourceGroupName("string")
.hybridRunbookWorkerId("string")
.name("string")
.vmResourceId("string")
.build());
hybrid_runbook_worker_resource = azure_native.automation.HybridRunbookWorker("hybridRunbookWorkerResource",
automation_account_name="string",
hybrid_runbook_worker_group_name="string",
resource_group_name="string",
hybrid_runbook_worker_id="string",
name="string",
vm_resource_id="string")
const hybridRunbookWorkerResource = new azure_native.automation.HybridRunbookWorker("hybridRunbookWorkerResource", {
automationAccountName: "string",
hybridRunbookWorkerGroupName: "string",
resourceGroupName: "string",
hybridRunbookWorkerId: "string",
name: "string",
vmResourceId: "string",
});
type: azure-native:automation:HybridRunbookWorker
properties:
automationAccountName: string
hybridRunbookWorkerGroupName: string
hybridRunbookWorkerId: string
name: string
resourceGroupName: string
vmResourceId: string
HybridRunbookWorker 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 HybridRunbookWorker resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account.
- Hybrid
Runbook stringWorker Group Name - The hybrid runbook worker group name
- Resource
Group stringName - Name of an Azure Resource group.
- Hybrid
Runbook stringWorker Id - The hybrid runbook worker id
- Name string
- Gets or sets the name of the resource.
- Vm
Resource stringId - Azure Resource Manager Id for a virtual machine.
- Automation
Account stringName - The name of the automation account.
- Hybrid
Runbook stringWorker Group Name - The hybrid runbook worker group name
- Resource
Group stringName - Name of an Azure Resource group.
- Hybrid
Runbook stringWorker Id - The hybrid runbook worker id
- Name string
- Gets or sets the name of the resource.
- Vm
Resource stringId - Azure Resource Manager Id for a virtual machine.
- automation
Account StringName - The name of the automation account.
- hybrid
Runbook StringWorker Group Name - The hybrid runbook worker group name
- resource
Group StringName - Name of an Azure Resource group.
- hybrid
Runbook StringWorker Id - The hybrid runbook worker id
- name String
- Gets or sets the name of the resource.
- vm
Resource StringId - Azure Resource Manager Id for a virtual machine.
- automation
Account stringName - The name of the automation account.
- hybrid
Runbook stringWorker Group Name - The hybrid runbook worker group name
- resource
Group stringName - Name of an Azure Resource group.
- hybrid
Runbook stringWorker Id - The hybrid runbook worker id
- name string
- Gets or sets the name of the resource.
- vm
Resource stringId - Azure Resource Manager Id for a virtual machine.
- automation_
account_ strname - The name of the automation account.
- hybrid_
runbook_ strworker_ group_ name - The hybrid runbook worker group name
- resource_
group_ strname - Name of an Azure Resource group.
- hybrid_
runbook_ strworker_ id - The hybrid runbook worker id
- name str
- Gets or sets the name of the resource.
- vm_
resource_ strid - Azure Resource Manager Id for a virtual machine.
- automation
Account StringName - The name of the automation account.
- hybrid
Runbook StringWorker Group Name - The hybrid runbook worker group name
- resource
Group StringName - Name of an Azure Resource group.
- hybrid
Runbook StringWorker Id - The hybrid runbook worker id
- name String
- Gets or sets the name of the resource.
- vm
Resource StringId - Azure Resource Manager Id for a virtual machine.
Outputs
All input properties are implicitly available as output properties. Additionally, the HybridRunbookWorker resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Data Pulumi.Azure Native. Automation. Outputs. System Data Response - Resource system metadata.
- Type string
- The type of the resource.
- Ip string
- Gets or sets the assigned machine IP address.
- Last
Seen stringDate Time - Last Heartbeat from the Worker
- Registered
Date stringTime - Gets or sets the registration time of the worker machine.
- Worker
Name string - Name of the HybridWorker.
- Worker
Type string - Type of the HybridWorker.
- Id string
- The provider-assigned unique ID for this managed resource.
- System
Data SystemData Response - Resource system metadata.
- Type string
- The type of the resource.
- Ip string
- Gets or sets the assigned machine IP address.
- Last
Seen stringDate Time - Last Heartbeat from the Worker
- Registered
Date stringTime - Gets or sets the registration time of the worker machine.
- Worker
Name string - Name of the HybridWorker.
- Worker
Type string - Type of the HybridWorker.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Data SystemData Response - Resource system metadata.
- type String
- The type of the resource.
- ip String
- Gets or sets the assigned machine IP address.
- last
Seen StringDate Time - Last Heartbeat from the Worker
- registered
Date StringTime - Gets or sets the registration time of the worker machine.
- worker
Name String - Name of the HybridWorker.
- worker
Type String - Type of the HybridWorker.
- id string
- The provider-assigned unique ID for this managed resource.
- system
Data SystemData Response - Resource system metadata.
- type string
- The type of the resource.
- ip string
- Gets or sets the assigned machine IP address.
- last
Seen stringDate Time - Last Heartbeat from the Worker
- registered
Date stringTime - Gets or sets the registration time of the worker machine.
- worker
Name string - Name of the HybridWorker.
- worker
Type string - Type of the HybridWorker.
- id str
- The provider-assigned unique ID for this managed resource.
- system_
data SystemData Response - Resource system metadata.
- type str
- The type of the resource.
- ip str
- Gets or sets the assigned machine IP address.
- last_
seen_ strdate_ time - Last Heartbeat from the Worker
- registered_
date_ strtime - Gets or sets the registration time of the worker machine.
- worker_
name str - Name of the HybridWorker.
- worker_
type str - Type of the HybridWorker.
- id String
- The provider-assigned unique ID for this managed resource.
- system
Data Property Map - Resource system metadata.
- type String
- The type of the resource.
- ip String
- Gets or sets the assigned machine IP address.
- last
Seen StringDate Time - Last Heartbeat from the Worker
- registered
Date StringTime - Gets or sets the registration time of the worker machine.
- worker
Name String - Name of the HybridWorker.
- worker
Type String - Type of the HybridWorker.
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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:automation:HybridRunbookWorker c010ad12-ef14-4a2a-aa9e-ef22c4745ddd /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0