Bicep 리소스 정의
automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.
- 리소스 그룹 - 리소스 그룹 배포 명령 참조
각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.
사용 예제
Bicep 샘플
자동화 배포의 기본 예입니다.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
@secure()
@description('The password for the automation account hybrid runbook worker')
param automationWorkerPassword string
@secure()
@description('The administrator password for the virtual machine')
param vmAdminPassword string
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-07-01' = {
name: resourceName
location: location
properties: {
addressSpace: {
addressPrefixes: [
'10.0.0.0/16'
]
}
dhcpOptions: {
dnsServers: []
}
subnets: []
}
}
resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-07-01' = {
name: 'internal'
parent: virtualNetwork
properties: {
addressPrefix: '10.0.2.0/24'
delegations: []
privateEndpointNetworkPolicies: 'Enabled'
privateLinkServiceNetworkPolicies: 'Enabled'
serviceEndpointPolicies: []
serviceEndpoints: []
}
}
resource automationAccount 'Microsoft.Automation/automationAccounts@2021-06-22' = {
name: resourceName
location: location
properties: {
encryption: {
keySource: 'Microsoft.Automation'
}
publicNetworkAccess: true
sku: {
name: 'Basic'
}
}
}
resource hybridRunbookWorkerGroup 'Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups@2021-06-22' = {
name: resourceName
parent: automationAccount
}
resource hybridRunbookWorker 'Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers@2021-06-22' = {
name: 'c7714056-5ba8-4bbe-920e-2993171164eb'
parent: hybridRunbookWorkerGroup
properties: {
vmResourceId: virtualMachine.id
}
}
resource virtualMachine 'Microsoft.Compute/virtualMachines@2023-03-01' = {
name: resourceName
location: location
properties: {
additionalCapabilities: {}
applicationProfile: {
galleryApplications: []
}
diagnosticsProfile: {
bootDiagnostics: {
enabled: false
storageUri: ''
}
}
extensionsTimeBudget: 'PT1H30M'
hardwareProfile: {
vmSize: 'Standard_D2s_v3'
}
networkProfile: {
networkInterfaces: [
{
id: networkInterface.id
properties: {
primary: true
}
}
]
}
osProfile: {
adminPassword: vmAdminPassword
adminUsername: 'adminuser'
allowExtensionOperations: true
computerName: resourceName
linuxConfiguration: {
disablePasswordAuthentication: false
patchSettings: {
assessmentMode: 'ImageDefault'
patchMode: 'ImageDefault'
}
provisionVMAgent: true
ssh: {
publicKeys: []
}
}
secrets: []
}
priority: 'Regular'
storageProfile: {
dataDisks: []
imageReference: {
offer: 'UbuntuServer'
publisher: 'Canonical'
sku: '16.04-LTS'
version: 'latest'
}
osDisk: {
caching: 'ReadWrite'
createOption: 'FromImage'
managedDisk: {
storageAccountType: 'Standard_LRS'
}
osType: 'Linux'
writeAcceleratorEnabled: false
}
}
}
}
resource networkInterface 'Microsoft.Network/networkInterfaces@2022-07-01' = {
name: resourceName
location: location
properties: {
enableAcceleratedNetworking: false
enableIPForwarding: false
ipConfigurations: [
{
name: 'testconfiguration1'
properties: {
primary: true
privateIPAddressVersion: 'IPv4'
privateIPAllocationMethod: 'Dynamic'
subnet: {
id: subnet.id
}
}
}
]
}
}
resource credential 'Microsoft.Automation/automationAccounts/credentials@2020-01-13-preview' = {
name: resourceName
parent: automationAccount
properties: {
description: ''
password: automationWorkerPassword
userName: 'test_user'
}
}
Azure 확인된 모듈
다음 Azure 확인된 모듈 사용하여 이 리소스 유형을 배포할 수 있습니다.
| Module | 묘사 |
|---|---|
| 자동화 계정 - 하이브리드 런북 워커 그룹 - 하이브리드 런브 워크 | 자동화 계정용 AVM 자식 모듈 - 하이브리드 런북 워커 그룹 - 하이브리드 런브 워크 |
리소스 형식
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.
resource symbolicname 'Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers@2023-11-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
vmResourceId: 'string'
}
}
속성 값
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers
| 이름 | 묘사 | 값 |
|---|---|---|
| 이름 | 리소스 이름 | string(필수) |
| 부모 | Bicep에서 자식 리소스에 대한 부모 리소스를 지정할 수 있습니다. 자식 리소스가 부모 리소스 외부에서 선언된 경우에만 이 속성을 추가해야 합니다. 자세한 내용은 부모 리소스외부의 자식 리소스 |
형식 리소스의 기호 이름: automationAccounts/hybridRunbookWorkerGroups |
| 속성 | Hybrid Runbook Worker 그룹 만들기 또는 업데이트 속성을 가져오거나 설정합니다. | HybridRunbookWorkerCreateOrUpdateParametersOrHybridRunbookWorkerProperties(필수) |
HybridRunbookWorkerCreateOrUpdateParametersOrHybridRunbookWorkerProperties
| 이름 | 묘사 | 값 |
|---|---|---|
| vmResourceId | 가상 머신에 대한 Azure Resource Manager ID입니다. | 문자열 |
ARM 템플릿 리소스 정의
automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.
- 리소스 그룹 - 리소스 그룹 배포 명령 어를 참조하세요. 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.
사용 예제
리소스 형식
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.
{
"type": "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers",
"apiVersion": "2023-11-01",
"name": "string",
"properties": {
"vmResourceId": "string"
}
}
속성 값
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers
| 이름 | 묘사 | 값 |
|---|---|---|
| API버전 | api 버전 | '2023-11-01' |
| 이름 | 리소스 이름 | string(필수) |
| 속성 | Hybrid Runbook Worker 그룹 만들기 또는 업데이트 속성을 가져오거나 설정합니다. | HybridRunbookWorkerCreateOrUpdateParametersOrHybridRunbookWorkerProperties(필수) |
| 형 | 리소스 종류 | 'Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers' |
HybridRunbookWorkerCreateOrUpdateParametersOrHybridRunbookWorkerProperties
| 이름 | 묘사 | 값 |
|---|---|---|
| vmResourceId | 가상 머신에 대한 Azure Resource Manager ID입니다. | 문자열 |
Terraform(AzAPI 공급자) 리소스 정의
automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.
- 자원 그룹 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.
사용 예제
Terraform 샘플
자동화 배포의 기본 예입니다.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
variable "automation_worker_password" {
type = string
description = "The password for the automation account hybrid runbook worker"
sensitive = true
}
variable "vm_admin_password" {
type = string
description = "The administrator password for the virtual machine"
sensitive = true
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "automationAccount" {
type = "Microsoft.Automation/automationAccounts@2021-06-22"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
encryption = {
keySource = "Microsoft.Automation"
}
publicNetworkAccess = true
sku = {
name = "Basic"
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "virtualNetwork" {
type = "Microsoft.Network/virtualNetworks@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
addressSpace = {
addressPrefixes = [
"10.0.0.0/16",
]
}
dhcpOptions = {
dnsServers = [
]
}
subnets = [
]
}
}
schema_validation_enabled = false
response_export_values = ["*"]
lifecycle {
ignore_changes = [body.properties.subnets]
}
}
resource "azapi_resource" "subnet" {
type = "Microsoft.Network/virtualNetworks/subnets@2022-07-01"
parent_id = azapi_resource.virtualNetwork.id
name = "internal"
body = {
properties = {
addressPrefix = "10.0.2.0/24"
delegations = [
]
privateEndpointNetworkPolicies = "Enabled"
privateLinkServiceNetworkPolicies = "Enabled"
serviceEndpointPolicies = [
]
serviceEndpoints = [
]
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "credential" {
type = "Microsoft.Automation/automationAccounts/credentials@2020-01-13-preview"
parent_id = azapi_resource.automationAccount.id
name = var.resource_name
body = {
properties = {
description = ""
password = var.automation_worker_password
userName = "test_user"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "hybridRunbookWorkerGroup" {
type = "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups@2021-06-22"
parent_id = azapi_resource.automationAccount.id
name = var.resource_name
body = {
credential = {
name = azapi_resource.credential.name
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "networkInterface" {
type = "Microsoft.Network/networkInterfaces@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
enableAcceleratedNetworking = false
enableIPForwarding = false
ipConfigurations = [
{
name = "testconfiguration1"
properties = {
primary = true
privateIPAddressVersion = "IPv4"
privateIPAllocationMethod = "Dynamic"
subnet = {
id = azapi_resource.subnet.id
}
}
},
]
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "virtualMachine" {
type = "Microsoft.Compute/virtualMachines@2023-03-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
additionalCapabilities = {
}
applicationProfile = {
galleryApplications = [
]
}
diagnosticsProfile = {
bootDiagnostics = {
enabled = false
storageUri = ""
}
}
extensionsTimeBudget = "PT1H30M"
hardwareProfile = {
vmSize = "Standard_D2s_v3"
}
networkProfile = {
networkInterfaces = [
{
id = azapi_resource.networkInterface.id
properties = {
primary = true
}
},
]
}
osProfile = {
adminPassword = var.vm_admin_password
adminUsername = "adminuser"
allowExtensionOperations = true
computerName = var.resource_name
linuxConfiguration = {
disablePasswordAuthentication = false
patchSettings = {
assessmentMode = "ImageDefault"
patchMode = "ImageDefault"
}
provisionVMAgent = true
ssh = {
publicKeys = [
]
}
}
secrets = [
]
}
priority = "Regular"
storageProfile = {
dataDisks = [
]
imageReference = {
offer = "UbuntuServer"
publisher = "Canonical"
sku = "16.04-LTS"
version = "latest"
}
osDisk = {
caching = "ReadWrite"
createOption = "FromImage"
managedDisk = {
storageAccountType = "Standard_LRS"
}
osType = "Linux"
writeAcceleratorEnabled = false
}
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "hybridRunbookWorker" {
type = "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers@2021-06-22"
parent_id = azapi_resource.hybridRunbookWorkerGroup.id
name = "c7714056-5ba8-4bbe-920e-2993171164eb"
body = {
properties = {
vmResourceId = azapi_resource.virtualMachine.id
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
리소스 형식
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers@2023-11-01"
name = "string"
parent_id = "string"
body = {
properties = {
vmResourceId = "string"
}
}
}
속성 값
Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers
| 이름 | 묘사 | 값 |
|---|---|---|
| 이름 | 리소스 이름 | string(필수) |
| 부모 ID | 이 리소스의 부모인 리소스의 ID입니다. | 형식의 리소스 ID: automationAccounts/hybridRunbookWorkerGroups |
| 속성 | Hybrid Runbook Worker 그룹 만들기 또는 업데이트 속성을 가져오거나 설정합니다. | HybridRunbookWorkerCreateOrUpdateParametersOrHybridRunbookWorkerProperties(필수) |
| 형 | 리소스 종류 | "Microsoft.Automation/automationAccounts/hybridRunbookWorkerGroups/hybridRunbookWorkers@2023-11-01" |
HybridRunbookWorkerCreateOrUpdateParametersOrHybridRunbookWorkerProperties
| 이름 | 묘사 | 값 |
|---|---|---|
| vmResourceId | 가상 머신에 대한 Azure Resource Manager ID입니다. | 문자열 |