Skip to content

Azure automation account is not displayed in either preview or create mode of the resource #4965

@strangeronline

Description

@strangeronline

Output from azd version
Run azd version and copy and paste the output here:

azd version
azd version 1.13.1 (commit 6f9ab45d9823cea818524eacfdb4210cc194d981)

Describe the bug
Azure automation account is not displayed in either preview or create mode of the resource

azd provision --no-state --no-prompt --preview

Previewing Azure resource changes (azd provision --preview)
This is a preview. No changes will be applied to your Azure resources.

Subscription: Visual Studio Enterprise Subscription – MPN (0f7da1c3-5989-4f75-9524-1d9c8a623c21)
Location: West Europe



SUCCESS: Generated provisioning preview in 21 seconds.

To Reproduce
Steps to reproduce the behavior...
Empty resource group or with an automation account altready exists

targetScope = 'resourceGroup'

resource automationAccount 'Microsoft.Automation/automationAccounts@2020-01-13-preview' = {
  name: 'automationAccounts'
  location: resourceGroup().location
  properties: {
    sku: {
      name: 'Basic'
    }
    publicNetworkAccess: true
  }
}

Expected behavior
if the resource exists: SKIP
if the resource not exists: CREATE

azd provision --no-state --preview

Previewing Azure resource changes (azd provision --preview)
This is a preview. No changes will be applied to your Azure resources.

Subscription: Visual Studio Enterprise Subscription – MPN (0f7da1c3-5989-4f75-9524-XXXXXXXX)
Location: West Europe

  Resources:

  Skip   : Automation Accounts    : automationAccounts

Environment
Information on your environment:
* Language name and version: bicep
* IDE and version : [e.g. Visual Studio 16.3] Visual Code

Additional context

When an automation account is created on the portal, it also does not generate a arm or bicep template

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions