We recommend using Azure Native.
azure.automation.HybridRunbookWorker
Explore with Pulumi AI
Manages a Automation Hybrid Runbook Worker.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAccount = new azure.automation.Account("example", {
name: "example-account",
location: example.location,
resourceGroupName: example.name,
skuName: "Basic",
});
const exampleHybridRunbookWorkerGroup = new azure.automation.HybridRunbookWorkerGroup("example", {
name: "example",
resourceGroupName: example.name,
automationAccountName: exampleAccount.name,
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-vnet",
resourceGroupName: example.name,
addressSpaces: ["192.168.1.0/24"],
location: example.location,
});
const exampleSubnet = new azure.network.Subnet("example", {
name: "example-subnet",
resourceGroupName: example.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["192.168.1.0/24"],
});
const exampleNetworkInterface = new azure.network.NetworkInterface("example", {
name: "example-nic",
location: example.location,
resourceGroupName: example.name,
ipConfigurations: [{
name: "vm-example",
subnetId: exampleSubnet.id,
privateIpAddressAllocation: "Dynamic",
}],
});
const exampleLinuxVirtualMachine = new azure.compute.LinuxVirtualMachine("example", {
name: "example-vm",
location: example.location,
resourceGroupName: example.name,
size: "Standard_B1s",
adminUsername: "testadmin",
adminPassword: "Password1234!",
disablePasswordAuthentication: false,
sourceImageReference: {
publisher: "Canonical",
offer: "0001-com-ubuntu-server-jammy",
sku: "22_04-lts",
version: "latest",
},
osDisk: {
caching: "ReadWrite",
storageAccountType: "Standard_LRS",
},
networkInterfaceIds: [exampleNetworkInterface.id],
});
const exampleHybridRunbookWorker = new azure.automation.HybridRunbookWorker("example", {
resourceGroupName: example.name,
automationAccountName: exampleAccount.name,
workerGroupName: exampleHybridRunbookWorkerGroup.name,
vmResourceId: exampleLinuxVirtualMachine.id,
workerId: "00000000-0000-0000-0000-000000000000",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_account = azure.automation.Account("example",
name="example-account",
location=example.location,
resource_group_name=example.name,
sku_name="Basic")
example_hybrid_runbook_worker_group = azure.automation.HybridRunbookWorkerGroup("example",
name="example",
resource_group_name=example.name,
automation_account_name=example_account.name)
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-vnet",
resource_group_name=example.name,
address_spaces=["192.168.1.0/24"],
location=example.location)
example_subnet = azure.network.Subnet("example",
name="example-subnet",
resource_group_name=example.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["192.168.1.0/24"])
example_network_interface = azure.network.NetworkInterface("example",
name="example-nic",
location=example.location,
resource_group_name=example.name,
ip_configurations=[{
"name": "vm-example",
"subnet_id": example_subnet.id,
"private_ip_address_allocation": "Dynamic",
}])
example_linux_virtual_machine = azure.compute.LinuxVirtualMachine("example",
name="example-vm",
location=example.location,
resource_group_name=example.name,
size="Standard_B1s",
admin_username="testadmin",
admin_password="Password1234!",
disable_password_authentication=False,
source_image_reference={
"publisher": "Canonical",
"offer": "0001-com-ubuntu-server-jammy",
"sku": "22_04-lts",
"version": "latest",
},
os_disk={
"caching": "ReadWrite",
"storage_account_type": "Standard_LRS",
},
network_interface_ids=[example_network_interface.id])
example_hybrid_runbook_worker = azure.automation.HybridRunbookWorker("example",
resource_group_name=example.name,
automation_account_name=example_account.name,
worker_group_name=example_hybrid_runbook_worker_group.name,
vm_resource_id=example_linux_virtual_machine.id,
worker_id="00000000-0000-0000-0000-000000000000")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := automation.NewAccount(ctx, "example", &automation.AccountArgs{
Name: pulumi.String("example-account"),
Location: example.Location,
ResourceGroupName: example.Name,
SkuName: pulumi.String("Basic"),
})
if err != nil {
return err
}
exampleHybridRunbookWorkerGroup, err := automation.NewHybridRunbookWorkerGroup(ctx, "example", &automation.HybridRunbookWorkerGroupArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
AutomationAccountName: exampleAccount.Name,
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-vnet"),
ResourceGroupName: example.Name,
AddressSpaces: pulumi.StringArray{
pulumi.String("192.168.1.0/24"),
},
Location: example.Location,
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
Name: pulumi.String("example-subnet"),
ResourceGroupName: example.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("192.168.1.0/24"),
},
})
if err != nil {
return err
}
exampleNetworkInterface, err := network.NewNetworkInterface(ctx, "example", &network.NetworkInterfaceArgs{
Name: pulumi.String("example-nic"),
Location: example.Location,
ResourceGroupName: example.Name,
IpConfigurations: network.NetworkInterfaceIpConfigurationArray{
&network.NetworkInterfaceIpConfigurationArgs{
Name: pulumi.String("vm-example"),
SubnetId: exampleSubnet.ID(),
PrivateIpAddressAllocation: pulumi.String("Dynamic"),
},
},
})
if err != nil {
return err
}
exampleLinuxVirtualMachine, err := compute.NewLinuxVirtualMachine(ctx, "example", &compute.LinuxVirtualMachineArgs{
Name: pulumi.String("example-vm"),
Location: example.Location,
ResourceGroupName: example.Name,
Size: pulumi.String("Standard_B1s"),
AdminUsername: pulumi.String("testadmin"),
AdminPassword: pulumi.String("Password1234!"),
DisablePasswordAuthentication: pulumi.Bool(false),
SourceImageReference: &compute.LinuxVirtualMachineSourceImageReferenceArgs{
Publisher: pulumi.String("Canonical"),
Offer: pulumi.String("0001-com-ubuntu-server-jammy"),
Sku: pulumi.String("22_04-lts"),
Version: pulumi.String("latest"),
},
OsDisk: &compute.LinuxVirtualMachineOsDiskArgs{
Caching: pulumi.String("ReadWrite"),
StorageAccountType: pulumi.String("Standard_LRS"),
},
NetworkInterfaceIds: pulumi.StringArray{
exampleNetworkInterface.ID(),
},
})
if err != nil {
return err
}
_, err = automation.NewHybridRunbookWorker(ctx, "example", &automation.HybridRunbookWorkerArgs{
ResourceGroupName: example.Name,
AutomationAccountName: exampleAccount.Name,
WorkerGroupName: exampleHybridRunbookWorkerGroup.Name,
VmResourceId: exampleLinuxVirtualMachine.ID(),
WorkerId: pulumi.String("00000000-0000-0000-0000-000000000000"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAccount = new Azure.Automation.Account("example", new()
{
Name = "example-account",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "Basic",
});
var exampleHybridRunbookWorkerGroup = new Azure.Automation.HybridRunbookWorkerGroup("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
AutomationAccountName = exampleAccount.Name,
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-vnet",
ResourceGroupName = example.Name,
AddressSpaces = new[]
{
"192.168.1.0/24",
},
Location = example.Location,
});
var exampleSubnet = new Azure.Network.Subnet("example", new()
{
Name = "example-subnet",
ResourceGroupName = example.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"192.168.1.0/24",
},
});
var exampleNetworkInterface = new Azure.Network.NetworkInterface("example", new()
{
Name = "example-nic",
Location = example.Location,
ResourceGroupName = example.Name,
IpConfigurations = new[]
{
new Azure.Network.Inputs.NetworkInterfaceIpConfigurationArgs
{
Name = "vm-example",
SubnetId = exampleSubnet.Id,
PrivateIpAddressAllocation = "Dynamic",
},
},
});
var exampleLinuxVirtualMachine = new Azure.Compute.LinuxVirtualMachine("example", new()
{
Name = "example-vm",
Location = example.Location,
ResourceGroupName = example.Name,
Size = "Standard_B1s",
AdminUsername = "testadmin",
AdminPassword = "Password1234!",
DisablePasswordAuthentication = false,
SourceImageReference = new Azure.Compute.Inputs.LinuxVirtualMachineSourceImageReferenceArgs
{
Publisher = "Canonical",
Offer = "0001-com-ubuntu-server-jammy",
Sku = "22_04-lts",
Version = "latest",
},
OsDisk = new Azure.Compute.Inputs.LinuxVirtualMachineOsDiskArgs
{
Caching = "ReadWrite",
StorageAccountType = "Standard_LRS",
},
NetworkInterfaceIds = new[]
{
exampleNetworkInterface.Id,
},
});
var exampleHybridRunbookWorker = new Azure.Automation.HybridRunbookWorker("example", new()
{
ResourceGroupName = example.Name,
AutomationAccountName = exampleAccount.Name,
WorkerGroupName = exampleHybridRunbookWorkerGroup.Name,
VmResourceId = exampleLinuxVirtualMachine.Id,
WorkerId = "00000000-0000-0000-0000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.automation.Account;
import com.pulumi.azure.automation.AccountArgs;
import com.pulumi.azure.automation.HybridRunbookWorkerGroup;
import com.pulumi.azure.automation.HybridRunbookWorkerGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.NetworkInterface;
import com.pulumi.azure.network.NetworkInterfaceArgs;
import com.pulumi.azure.network.inputs.NetworkInterfaceIpConfigurationArgs;
import com.pulumi.azure.compute.LinuxVirtualMachine;
import com.pulumi.azure.compute.LinuxVirtualMachineArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineSourceImageReferenceArgs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineOsDiskArgs;
import com.pulumi.azure.automation.HybridRunbookWorker;
import com.pulumi.azure.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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example-account")
.location(example.location())
.resourceGroupName(example.name())
.skuName("Basic")
.build());
var exampleHybridRunbookWorkerGroup = new HybridRunbookWorkerGroup("exampleHybridRunbookWorkerGroup", HybridRunbookWorkerGroupArgs.builder()
.name("example")
.resourceGroupName(example.name())
.automationAccountName(exampleAccount.name())
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-vnet")
.resourceGroupName(example.name())
.addressSpaces("192.168.1.0/24")
.location(example.location())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("example-subnet")
.resourceGroupName(example.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("192.168.1.0/24")
.build());
var exampleNetworkInterface = new NetworkInterface("exampleNetworkInterface", NetworkInterfaceArgs.builder()
.name("example-nic")
.location(example.location())
.resourceGroupName(example.name())
.ipConfigurations(NetworkInterfaceIpConfigurationArgs.builder()
.name("vm-example")
.subnetId(exampleSubnet.id())
.privateIpAddressAllocation("Dynamic")
.build())
.build());
var exampleLinuxVirtualMachine = new LinuxVirtualMachine("exampleLinuxVirtualMachine", LinuxVirtualMachineArgs.builder()
.name("example-vm")
.location(example.location())
.resourceGroupName(example.name())
.size("Standard_B1s")
.adminUsername("testadmin")
.adminPassword("Password1234!")
.disablePasswordAuthentication(false)
.sourceImageReference(LinuxVirtualMachineSourceImageReferenceArgs.builder()
.publisher("Canonical")
.offer("0001-com-ubuntu-server-jammy")
.sku("22_04-lts")
.version("latest")
.build())
.osDisk(LinuxVirtualMachineOsDiskArgs.builder()
.caching("ReadWrite")
.storageAccountType("Standard_LRS")
.build())
.networkInterfaceIds(exampleNetworkInterface.id())
.build());
var exampleHybridRunbookWorker = new HybridRunbookWorker("exampleHybridRunbookWorker", HybridRunbookWorkerArgs.builder()
.resourceGroupName(example.name())
.automationAccountName(exampleAccount.name())
.workerGroupName(exampleHybridRunbookWorkerGroup.name())
.vmResourceId(exampleLinuxVirtualMachine.id())
.workerId("00000000-0000-0000-0000-000000000000")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:automation:Account
name: example
properties:
name: example-account
location: ${example.location}
resourceGroupName: ${example.name}
skuName: Basic
exampleHybridRunbookWorkerGroup:
type: azure:automation:HybridRunbookWorkerGroup
name: example
properties:
name: example
resourceGroupName: ${example.name}
automationAccountName: ${exampleAccount.name}
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-vnet
resourceGroupName: ${example.name}
addressSpaces:
- 192.168.1.0/24
location: ${example.location}
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: example-subnet
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 192.168.1.0/24
exampleNetworkInterface:
type: azure:network:NetworkInterface
name: example
properties:
name: example-nic
location: ${example.location}
resourceGroupName: ${example.name}
ipConfigurations:
- name: vm-example
subnetId: ${exampleSubnet.id}
privateIpAddressAllocation: Dynamic
exampleLinuxVirtualMachine:
type: azure:compute:LinuxVirtualMachine
name: example
properties:
name: example-vm
location: ${example.location}
resourceGroupName: ${example.name}
size: Standard_B1s
adminUsername: testadmin
adminPassword: Password1234!
disablePasswordAuthentication: false
sourceImageReference:
publisher: Canonical
offer: 0001-com-ubuntu-server-jammy
sku: 22_04-lts
version: latest
osDisk:
caching: ReadWrite
storageAccountType: Standard_LRS
networkInterfaceIds:
- ${exampleNetworkInterface.id}
exampleHybridRunbookWorker:
type: azure:automation:HybridRunbookWorker
name: example
properties:
resourceGroupName: ${example.name}
automationAccountName: ${exampleAccount.name}
workerGroupName: ${exampleHybridRunbookWorkerGroup.name}
vmResourceId: ${exampleLinuxVirtualMachine.id}
workerId: 00000000-0000-0000-0000-000000000000
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,
resource_group_name: Optional[str] = None,
vm_resource_id: Optional[str] = None,
worker_group_name: Optional[str] = None,
worker_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: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 Azure.Automation.HybridRunbookWorker("hybridRunbookWorkerResource", new()
{
AutomationAccountName = "string",
ResourceGroupName = "string",
VmResourceId = "string",
WorkerGroupName = "string",
WorkerId = "string",
});
example, err := automation.NewHybridRunbookWorker(ctx, "hybridRunbookWorkerResource", &automation.HybridRunbookWorkerArgs{
AutomationAccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
VmResourceId: pulumi.String("string"),
WorkerGroupName: pulumi.String("string"),
WorkerId: pulumi.String("string"),
})
var hybridRunbookWorkerResource = new HybridRunbookWorker("hybridRunbookWorkerResource", HybridRunbookWorkerArgs.builder()
.automationAccountName("string")
.resourceGroupName("string")
.vmResourceId("string")
.workerGroupName("string")
.workerId("string")
.build());
hybrid_runbook_worker_resource = azure.automation.HybridRunbookWorker("hybridRunbookWorkerResource",
automation_account_name="string",
resource_group_name="string",
vm_resource_id="string",
worker_group_name="string",
worker_id="string")
const hybridRunbookWorkerResource = new azure.automation.HybridRunbookWorker("hybridRunbookWorkerResource", {
automationAccountName: "string",
resourceGroupName: "string",
vmResourceId: "string",
workerGroupName: "string",
workerId: "string",
});
type: azure:automation:HybridRunbookWorker
properties:
automationAccountName: string
resourceGroupName: string
vmResourceId: string
workerGroupName: string
workerId: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HybridRunbookWorker resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Vm
Resource stringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- Worker
Group stringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- Worker
Id string - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- Automation
Account stringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Vm
Resource stringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- Worker
Group stringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- Worker
Id string - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- automation
Account StringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm
Resource StringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker
Group StringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker
Id String - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- automation
Account stringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm
Resource stringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker
Group stringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker
Id string - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- automation_
account_ strname - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm_
resource_ strid - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker_
group_ strname - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker_
id str - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- automation
Account StringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm
Resource StringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker
Group StringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker
Id String - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
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.
- Ip string
- The IP address of assigned machine.
- Last
Seen stringDate Time - Last Heartbeat from the Worker.
- Registration
Date stringTime - The registration time of the worker machine.
- Worker
Name string - The name of HybridWorker.
- Worker
Type string - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip string
- The IP address of assigned machine.
- Last
Seen stringDate Time - Last Heartbeat from the Worker.
- Registration
Date stringTime - The registration time of the worker machine.
- Worker
Name string - The name of HybridWorker.
- Worker
Type string - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- id String
- The provider-assigned unique ID for this managed resource.
- ip String
- The IP address of assigned machine.
- last
Seen StringDate Time - Last Heartbeat from the Worker.
- registration
Date StringTime - The registration time of the worker machine.
- worker
Name String - The name of HybridWorker.
- worker
Type String - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- id string
- The provider-assigned unique ID for this managed resource.
- ip string
- The IP address of assigned machine.
- last
Seen stringDate Time - Last Heartbeat from the Worker.
- registration
Date stringTime - The registration time of the worker machine.
- worker
Name string - The name of HybridWorker.
- worker
Type string - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- id str
- The provider-assigned unique ID for this managed resource.
- ip str
- The IP address of assigned machine.
- last_
seen_ strdate_ time - Last Heartbeat from the Worker.
- registration_
date_ strtime - The registration time of the worker machine.
- worker_
name str - The name of HybridWorker.
- worker_
type str - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- id String
- The provider-assigned unique ID for this managed resource.
- ip String
- The IP address of assigned machine.
- last
Seen StringDate Time - Last Heartbeat from the Worker.
- registration
Date StringTime - The registration time of the worker machine.
- worker
Name String - The name of HybridWorker.
- worker
Type String - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
Look up Existing HybridRunbookWorker Resource
Get an existing HybridRunbookWorker resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HybridRunbookWorkerState, opts?: CustomResourceOptions): HybridRunbookWorker
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
ip: Optional[str] = None,
last_seen_date_time: Optional[str] = None,
registration_date_time: Optional[str] = None,
resource_group_name: Optional[str] = None,
vm_resource_id: Optional[str] = None,
worker_group_name: Optional[str] = None,
worker_id: Optional[str] = None,
worker_name: Optional[str] = None,
worker_type: Optional[str] = None) -> HybridRunbookWorker
func GetHybridRunbookWorker(ctx *Context, name string, id IDInput, state *HybridRunbookWorkerState, opts ...ResourceOption) (*HybridRunbookWorker, error)
public static HybridRunbookWorker Get(string name, Input<string> id, HybridRunbookWorkerState? state, CustomResourceOptions? opts = null)
public static HybridRunbookWorker get(String name, Output<String> id, HybridRunbookWorkerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Automation
Account stringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- Ip string
- The IP address of assigned machine.
- Last
Seen stringDate Time - Last Heartbeat from the Worker.
- Registration
Date stringTime - The registration time of the worker machine.
- Resource
Group stringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Vm
Resource stringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- Worker
Group stringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- Worker
Id string - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- Worker
Name string - The name of HybridWorker.
- Worker
Type string - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- Automation
Account stringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- Ip string
- The IP address of assigned machine.
- Last
Seen stringDate Time - Last Heartbeat from the Worker.
- Registration
Date stringTime - The registration time of the worker machine.
- Resource
Group stringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- Vm
Resource stringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- Worker
Group stringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- Worker
Id string - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- Worker
Name string - The name of HybridWorker.
- Worker
Type string - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- automation
Account StringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- ip String
- The IP address of assigned machine.
- last
Seen StringDate Time - Last Heartbeat from the Worker.
- registration
Date StringTime - The registration time of the worker machine.
- resource
Group StringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm
Resource StringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker
Group StringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker
Id String - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- worker
Name String - The name of HybridWorker.
- worker
Type String - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- automation
Account stringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- ip string
- The IP address of assigned machine.
- last
Seen stringDate Time - Last Heartbeat from the Worker.
- registration
Date stringTime - The registration time of the worker machine.
- resource
Group stringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm
Resource stringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker
Group stringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker
Id string - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- worker
Name string - The name of HybridWorker.
- worker
Type string - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- automation_
account_ strname - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- ip str
- The IP address of assigned machine.
- last_
seen_ strdate_ time - Last Heartbeat from the Worker.
- registration_
date_ strtime - The registration time of the worker machine.
- resource_
group_ strname - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm_
resource_ strid - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker_
group_ strname - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker_
id str - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- worker_
name str - The name of HybridWorker.
- worker_
type str - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
- automation
Account StringName - The name of the automation account in which the Hybrid Worker is created. Changing this forces a new resource to be created.
- ip String
- The IP address of assigned machine.
- last
Seen StringDate Time - Last Heartbeat from the Worker.
- registration
Date StringTime - The registration time of the worker machine.
- resource
Group StringName - The name of the Resource Group where the Automation should exist. Changing this forces a new Automation to be created.
- vm
Resource StringId - The ID of the virtual machine used for this HybridWorker. Changing this forces a new Automation to be created.
- worker
Group StringName - The name of the HybridWorker Group. Changing this forces a new Automation to be created.
- worker
Id String - Specify the ID of this HybridWorker in UUID notation. Changing this forces a new Automation to be created.
- worker
Name String - The name of HybridWorker.
- worker
Type String - The type of the HybridWorker, the possible values are
HybridV1
andHybridV2
.
Import
Automations can be imported using the resource id
, e.g.
$ pulumi import azure:automation/hybridRunbookWorker:HybridRunbookWorker example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/hybridRunbookWorkerGroups/group1/hybridRunbookWorkers/00000000-0000-0000-0000-000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.