Microsoft.Automation automationRekeningen/variabelen 31-10-2015

Bicep-resourcedefinitie

Het resourcetype automationAccounts/variables kan worden geïmplementeerd met bewerkingen die zijn gericht op:

Zie logboek wijzigenvoor een lijst met gewijzigde eigenschappen in elke API-versie.

Gebruiksvoorbeelden

Bicep-voorbeelden

Een eenvoudig voorbeeld van het implementeren van variabele in Azure Automation.

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource automationAccount 'Microsoft.Automation/automationAccounts@2021-06-22' = {
  name: resourceName
  location: location
  properties: {
    encryption: {
      keySource: 'Microsoft.Automation'
    }
    publicNetworkAccess: true
    sku: {
      name: 'Basic'
    }
  }
}

resource variable 'Microsoft.Automation/automationAccounts/variables@2020-01-13-preview' = {
  name: resourceName
  parent: automationAccount
  properties: {
    description: ''
    isEncrypted: false
    value: 'Hello, Terraform Basic Test.'
  }
}

Geverifieerde Azure-modules

De volgende azure-geverifieerde modules kunnen worden gebruikt om dit resourcetype te implementeren.

Module Beschrijving
Automatiseringsaccount - Variabele AVM Child Module voor Automatiseringsaccount - Variabele

Azure-snelstartvoorbeelden

De volgende Azure-quickstartsjablonen bicep-voorbeelden bevatten voor het implementeren van dit resourcetype.

Bicep-bestand Beschrijving
ASR-runbooks Automation-runbooks implementeren voor ASR-herstelplannen

Resource-indeling

Als u een Resource Microsoft.Automation/automationAccounts/variables wilt maken, voegt u de volgende Bicep toe aan uw sjabloon.

resource symbolicname 'Microsoft.Automation/automationAccounts/variables@2015-10-31' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    description: 'string'
    isEncrypted: bool
    value: 'string'
  }
}

Eigenschapswaarden

Microsoft.Automation/automationAccounts/variables

Naam Beschrijving Waarde
naam De resourcenaam tekenreeks (vereist)
ouder In Bicep kunt u de bovenliggende resource voor een onderliggende resource opgeven. U hoeft deze eigenschap alleen toe te voegen wanneer de onderliggende resource buiten de bovenliggende resource wordt gedeclareerd.

Zie onderliggende resource buiten de bovenliggende resourcevoor meer informatie.
Symbolische naam voor resource van het type: automationAccounts
Eigenschappen Hiermee haalt u de eigenschappen van de variabele op of stelt u deze in. VariableCreateOrUpdatePropertiesOrVariableProperties (vereist)

VariableCreateOrUpdatePropertiesOrVariableProperties

Naam Beschrijving Waarde
beschrijving Hiermee haalt u de beschrijving van de variabele op of stelt u deze in. snaar
isEncrypted Hiermee haalt u de versleutelde vlag van de variabele op of stelt u deze in. Bool
waarde Hiermee haalt u de waarde van de variabele op of stelt u deze in. snaar

Resourcedefinitie van ARM-sjabloon

Het resourcetype automationAccounts/variables kan worden geïmplementeerd met bewerkingen die zijn gericht op:

Gebruiksvoorbeelden

Azure-snelstartsjablonen

De volgende Azure-quickstartsjablonen dit resourcetype implementeren.

Sjabloon Beschrijving
ASR-runbooks

implementeren in Azure
Automation-runbooks implementeren voor ASR-herstelplannen
ARO-toolkit (Azure Resource Optimization)

implementeren in Azure
De Azure Resource Optimization Toolkit is een gedecentraliseerde, systeemeigen Azure-oplossing met behulp van serverloze technologieën om Azure-resources in uw abonnement te optimaliseren. Optimalisatie vindt automatisch plaats op uw abonnement zodra u uw eigen planning inschakelt of maakt, inclusief op nieuwe resources. Dit is een Azure Automation-account met vooraf geconfigureerde runbooks en planningen die u in uw abonnement kunt gebruiken om geld te besparen.

Resource-indeling

Als u een resource voor Microsoft.Automation/automationAccounts/variables wilt maken, voegt u de volgende JSON toe aan uw sjabloon.

{
  "type": "Microsoft.Automation/automationAccounts/variables",
  "apiVersion": "2015-10-31",
  "name": "string",
  "properties": {
    "description": "string",
    "isEncrypted": "bool",
    "value": "string"
  }
}

Eigenschapswaarden

Microsoft.Automation/automationAccounts/variables

Naam Beschrijving Waarde
apiVersion De API-versie '2015-10-31'
naam De resourcenaam tekenreeks (vereist)
Eigenschappen Hiermee haalt u de eigenschappen van de variabele op of stelt u deze in. VariableCreateOrUpdatePropertiesOrVariableProperties (vereist)
soort Het resourcetype 'Microsoft.Automation/automationAccounts/variables'

VariableCreateOrUpdatePropertiesOrVariableProperties

Naam Beschrijving Waarde
beschrijving Hiermee haalt u de beschrijving van de variabele op of stelt u deze in. snaar
isEncrypted Hiermee haalt u de versleutelde vlag van de variabele op of stelt u deze in. Bool
waarde Hiermee haalt u de waarde van de variabele op of stelt u deze in. snaar

Resourcedefinitie van Terraform (AzAPI-provider)

Het resourcetype automationAccounts/variables kan worden geïmplementeerd met bewerkingen die zijn gericht op:

  • Resourcegroepen Voor een lijst van gewijzigde eigenschappen in elke API-versie, zie wijzigingslogboek.

Gebruiksvoorbeelden

Terraform-monsters

Een eenvoudig voorbeeld van het implementeren van variabele in Azure Automation.

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"
}

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" "variable" {
  type      = "Microsoft.Automation/automationAccounts/variables@2020-01-13-preview"
  parent_id = azapi_resource.automationAccount.id
  name      = var.resource_name
  body = {
    properties = {
      description = ""
      isEncrypted = false
      value       = "\"Hello, Terraform Basic Test.\""
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

Resource-indeling

Als u een Resource Microsoft.Automation/automationAccounts/variables wilt maken, voegt u de volgende Terraform toe aan uw sjabloon.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Automation/automationAccounts/variables@2015-10-31"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      description = "string"
      isEncrypted = bool
      value = "string"
    }
  }
}

Eigenschapswaarden

Microsoft.Automation/automationAccounts/variables

Naam Beschrijving Waarde
naam De resourcenaam tekenreeks (vereist)
parent_id De id van de resource die het bovenliggende item voor deze resource is. Id voor resource van het type: automationAccounts
Eigenschappen Hiermee haalt u de eigenschappen van de variabele op of stelt u deze in. VariableCreateOrUpdatePropertiesOrVariableProperties (vereist)
soort Het resourcetype "Microsoft.Automation/automationAccounts/variables@2015-10-31"

VariableCreateOrUpdatePropertiesOrVariableProperties

Naam Beschrijving Waarde
beschrijving Hiermee haalt u de beschrijving van de variabele op of stelt u deze in. snaar
isEncrypted Hiermee haalt u de versleutelde vlag van de variabele op of stelt u deze in. Bool
waarde Hiermee haalt u de waarde van de variabele op of stelt u deze in. snaar