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.
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
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) |
ContentLink
| 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 |
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
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) |
ContentLink
| 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 |
PythonPackageCreatePropertiesOrModuleProperties
| Name |
Description |
Value |
| contentLink |
Gets or sets the module content link. |
ContentLink (required) |
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
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"
}
}
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) |
ContentLink
| 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 |
PythonPackageCreatePropertiesOrModuleProperties
| Name |
Description |
Value |
| contentLink |
Gets or sets the module content link. |
ContentLink (required) |