Microsoft.Storage storageAccounts/storageTaskAssignments 2023-05-01

Bicep resource definition

The storageAccounts/storageTaskAssignments resource type can be deployed with operations that target:

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

Resource format

To create a Microsoft.Storage/storageAccounts/storageTaskAssignments resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Storage/storageAccounts/storageTaskAssignments@2023-05-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    description: 'string'
    enabled: bool
    executionContext: {
      target: {
        excludePrefix: [
          'string'
        ]
        prefix: [
          'string'
        ]
      }
      trigger: {
        parameters: {
          endBy: 'string'
          interval: int
          intervalUnit: 'Days'
          startFrom: 'string'
          startOn: 'string'
        }
        type: 'string'
      }
    }
    report: {
      prefix: 'string'
    }
    runStatus: {}
    taskId: 'string'
  }
}

Property values

storageAccounts/storageTaskAssignments

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
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: storageAccounts
properties Properties of the storage task assignment. StorageTaskAssignmentProperties (required)

StorageTaskAssignmentProperties

Name Description Value
description Text that describes the purpose of the storage task assignment string (required)
enabled Whether the storage task assignment is enabled or not bool (required)
executionContext The storage task assignment execution context StorageTaskAssignmentExecutionContext (required)
report The storage task assignment report StorageTaskAssignmentReport (required)
runStatus Run status of storage task assignment StorageTaskReportProperties
taskId Id of the corresponding storage task string (required)

StorageTaskAssignmentExecutionContext

Name Description Value
target Execution target of the storage task assignment ExecutionTarget
trigger Execution trigger of the storage task assignment ExecutionTrigger (required)

ExecutionTarget

Name Description Value
excludePrefix List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes, the exclude prefix will be the determining factor string[]
prefix Required list of object prefixes to be included for task execution string[]

ExecutionTrigger

Name Description Value
parameters The trigger parameters of the storage task assignment execution TriggerParameters (required)
type The trigger type of the storage task assignment execution 'OnSchedule'
'RunOnce' (required)

TriggerParameters

Name Description Value
endBy When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' string
interval Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' int

Constraints:
Min value = 1
intervalUnit Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' 'Days'
startFrom When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' string
startOn When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule' string

StorageTaskAssignmentReport

Name Description Value
prefix The container prefix for the location of storage task assignment report string (required)

StorageTaskReportProperties

This object doesn't contain any properties to set during deployment. All properties are ReadOnly.

ARM template resource definition

The storageAccounts/storageTaskAssignments resource type can be deployed with operations that target:

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

Resource format

To create a Microsoft.Storage/storageAccounts/storageTaskAssignments resource, add the following JSON to your template.

{
  "type": "Microsoft.Storage/storageAccounts/storageTaskAssignments",
  "apiVersion": "2023-05-01",
  "name": "string",
  "properties": {
    "description": "string",
    "enabled": "bool",
    "executionContext": {
      "target": {
        "excludePrefix": [ "string" ],
        "prefix": [ "string" ]
      },
      "trigger": {
        "parameters": {
          "endBy": "string",
          "interval": "int",
          "intervalUnit": "Days",
          "startFrom": "string",
          "startOn": "string"
        },
        "type": "string"
      }
    },
    "report": {
      "prefix": "string"
    },
    "runStatus": {},
    "taskId": "string"
  }
}

Property values

storageAccounts/storageTaskAssignments

Name Description Value
type The resource type 'Microsoft.Storage/storageAccounts/storageTaskAssignments'
apiVersion The resource api version '2023-05-01'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties Properties of the storage task assignment. StorageTaskAssignmentProperties (required)

StorageTaskAssignmentProperties

Name Description Value
description Text that describes the purpose of the storage task assignment string (required)
enabled Whether the storage task assignment is enabled or not bool (required)
executionContext The storage task assignment execution context StorageTaskAssignmentExecutionContext (required)
report The storage task assignment report StorageTaskAssignmentReport (required)
runStatus Run status of storage task assignment StorageTaskReportProperties
taskId Id of the corresponding storage task string (required)

StorageTaskAssignmentExecutionContext

Name Description Value
target Execution target of the storage task assignment ExecutionTarget
trigger Execution trigger of the storage task assignment ExecutionTrigger (required)

ExecutionTarget

Name Description Value
excludePrefix List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes, the exclude prefix will be the determining factor string[]
prefix Required list of object prefixes to be included for task execution string[]

ExecutionTrigger

Name Description Value
parameters The trigger parameters of the storage task assignment execution TriggerParameters (required)
type The trigger type of the storage task assignment execution 'OnSchedule'
'RunOnce' (required)

TriggerParameters

Name Description Value
endBy When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' string
interval Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' int

Constraints:
Min value = 1
intervalUnit Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' 'Days'
startFrom When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' string
startOn When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule' string

StorageTaskAssignmentReport

Name Description Value
prefix The container prefix for the location of storage task assignment report string (required)

StorageTaskReportProperties

This object doesn't contain any properties to set during deployment. All properties are ReadOnly.

Terraform (AzAPI provider) resource definition

The storageAccounts/storageTaskAssignments resource type can be deployed with operations that target:

  • Resource groups

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

Resource format

To create a Microsoft.Storage/storageAccounts/storageTaskAssignments resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Storage/storageAccounts/storageTaskAssignments@2023-05-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      description = "string"
      enabled = bool
      executionContext = {
        target = {
          excludePrefix = [
            "string"
          ]
          prefix = [
            "string"
          ]
        }
        trigger = {
          parameters = {
            endBy = "string"
            interval = int
            intervalUnit = "Days"
            startFrom = "string"
            startOn = "string"
          }
          type = "string"
        }
      }
      report = {
        prefix = "string"
      }
      runStatus = {}
      taskId = "string"
    }
  })
}

Property values

storageAccounts/storageTaskAssignments

Name Description Value
type The resource type "Microsoft.Storage/storageAccounts/storageTaskAssignments@2023-05-01"
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: storageAccounts
properties Properties of the storage task assignment. StorageTaskAssignmentProperties (required)

StorageTaskAssignmentProperties

Name Description Value
description Text that describes the purpose of the storage task assignment string (required)
enabled Whether the storage task assignment is enabled or not bool (required)
executionContext The storage task assignment execution context StorageTaskAssignmentExecutionContext (required)
report The storage task assignment report StorageTaskAssignmentReport (required)
runStatus Run status of storage task assignment StorageTaskReportProperties
taskId Id of the corresponding storage task string (required)

StorageTaskAssignmentExecutionContext

Name Description Value
target Execution target of the storage task assignment ExecutionTarget
trigger Execution trigger of the storage task assignment ExecutionTrigger (required)

ExecutionTarget

Name Description Value
excludePrefix List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes, the exclude prefix will be the determining factor string[]
prefix Required list of object prefixes to be included for task execution string[]

ExecutionTrigger

Name Description Value
parameters The trigger parameters of the storage task assignment execution TriggerParameters (required)
type The trigger type of the storage task assignment execution "OnSchedule"
"RunOnce" (required)

TriggerParameters

Name Description Value
endBy When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' string
interval Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' int

Constraints:
Min value = 1
intervalUnit Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' "Days"
startFrom When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce' string
startOn When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule' string

StorageTaskAssignmentReport

Name Description Value
prefix The container prefix for the location of storage task assignment report string (required)

StorageTaskReportProperties

This object doesn't contain any properties to set during deployment. All properties are ReadOnly.