Microsoft.Automation automationAccounts/python3Packages 2023-05-15-preview

Bicep resource definition

The automationAccounts/python3Packages resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Usage Examples

Bicep Samples

A basic example of deploying Automation Python3 Package.

param resourceName string = 'acctest0001'
param location string = 'westus'

resource automationAccount 'Microsoft.Automation/automationAccounts@2023-11-01' = {
  name: resourceName
  location: location
  properties: {
    disableLocalAuth: false
    encryption: {
      keySource: 'Microsoft.Automation'
    }
    publicNetworkAccess: true
    sku: {
      name: 'Basic'
    }
  }
}

resource python3Package 'Microsoft.Automation/automationAccounts/python3Packages@2023-11-01' = {
  name: resourceName
  parent: automationAccount
  properties: {
    contentLink: {
      uri: 'https://files.pythonhosted.org/packages/py3/r/requests/requests-2.31.0-py3-none-any.whl'
      version: '2.31.0'
    }
  }
}

Azure Verified Modules

The following Azure Verified Modules can be used to deploy this resource type.

Module Description
Automation Account - Python3 Package AVM Child Module for Automation Account - Python3 Package

Resource format

To create a Microsoft.Automation/automationAccounts/python3Packages resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Automation/automationAccounts/python3Packages@2023-05-15-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    contentLink: {
      contentHash: {
        algorithm: 'string'
        value: 'string'
      }
      uri: 'string'
      version: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.Automation/automationAccounts/python3Packages

Name Description Value
name The resource name string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: automationAccounts
properties Gets or sets the module create properties. PythonPackageCreatePropertiesOrModuleProperties (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates

ContentHash

Name Description Value
algorithm Gets or sets the content hash algorithm used to hash the content. string (required)
value Gets or sets expected hash value of the content. string (required)
Name Description Value
contentHash Gets or sets the hash. ContentHash
uri Gets or sets the uri of content. string
version Gets or sets the version of the content. string

PythonPackageCreateParametersTags

Name Description Value

PythonPackageCreatePropertiesOrModuleProperties

Name Description Value
contentLink Gets or sets the module content link. ContentLink (required)

ARM template resource definition

The automationAccounts/python3Packages resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.Automation/automationAccounts/python3Packages resource, add the following JSON to your template.

{
  "type": "Microsoft.Automation/automationAccounts/python3Packages",
  "apiVersion": "2023-05-15-preview",
  "name": "string",
  "properties": {
    "contentLink": {
      "contentHash": {
        "algorithm": "string",
        "value": "string"
      },
      "uri": "string",
      "version": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.Automation/automationAccounts/python3Packages

Name Description Value
apiVersion The api version '2023-05-15-preview'
name The resource name string (required)
properties Gets or sets the module create properties. PythonPackageCreatePropertiesOrModuleProperties (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Automation/automationAccounts/python3Packages'

ContentHash

Name Description Value
algorithm Gets or sets the content hash algorithm used to hash the content. string (required)
value Gets or sets expected hash value of the content. string (required)
Name Description Value
contentHash Gets or sets the hash. ContentHash
uri Gets or sets the uri of content. string
version Gets or sets the version of the content. string

PythonPackageCreateParametersTags

Name Description Value

PythonPackageCreatePropertiesOrModuleProperties

Name Description Value
contentLink Gets or sets the module content link. ContentLink (required)

Terraform (AzAPI provider) resource definition

The automationAccounts/python3Packages resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Usage Examples

Terraform Samples

A basic example of deploying Automation Python3 Package.

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

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@2023-11-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      disableLocalAuth = false
      encryption = {
        keySource = "Microsoft.Automation"
      }
      publicNetworkAccess = true
      sku = {
        name = "Basic"
      }
    }
  }
}

resource "azapi_resource" "python3Package" {
  type      = "Microsoft.Automation/automationAccounts/python3Packages@2023-11-01"
  parent_id = azapi_resource.automationAccount.id
  name      = var.resource_name
  body = {
    properties = {
      contentLink = {
        uri     = "https://files.pythonhosted.org/packages/py3/r/requests/requests-2.31.0-py3-none-any.whl"
        version = "2.31.0"
      }
    }
  }
  tags = {
    key = "foo"
  }
}

Resource format

To create a Microsoft.Automation/automationAccounts/python3Packages resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Automation/automationAccounts/python3Packages@2023-05-15-preview"
  name = "string"
  parent_id = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      contentLink = {
        contentHash = {
          algorithm = "string"
          value = "string"
        }
        uri = "string"
        version = "string"
      }
    }
  }
}

Property Values

Microsoft.Automation/automationAccounts/python3Packages

Name Description Value
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: automationAccounts
properties Gets or sets the module create properties. PythonPackageCreatePropertiesOrModuleProperties (required)
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Automation/automationAccounts/python3Packages@2023-05-15-preview"

ContentHash

Name Description Value
algorithm Gets or sets the content hash algorithm used to hash the content. string (required)
value Gets or sets expected hash value of the content. string (required)
Name Description Value
contentHash Gets or sets the hash. ContentHash
uri Gets or sets the uri of content. string
version Gets or sets the version of the content. string

PythonPackageCreateParametersTags

Name Description Value

PythonPackageCreatePropertiesOrModuleProperties

Name Description Value
contentLink Gets or sets the module content link. ContentLink (required)