Skip to content

Failed to connect to extension when using bicep local-deploy with ACR #18262

@johnlokerse

Description

@johnlokerse

Bicep version
Bicep CLI version 0.38.33 (6bb5d5f)

Describe the bug
Unable to deploy using extensions from an Azure Container Registry (ACR). After running bicep local-deploy main.bicepparam it throws the following error:

Image

The ACR has anonymousPullEnabled enabled (true).

To Reproduce
Steps to reproduce the behavior:

  1. Use bicepconfig:
{
  "experimentalFeaturesEnabled": {
    "localDeploy": true
  },
  "extensions": {
    "azuredevops": "br:azuredevopsbicep.azurecr.io/extensions/azuredevops:0.1.49" // ACR
    // "azuredevops": "../src/bin/azure-devops-extension" // local
  },
  "implicitExtensions": []
}
  1. Use main.bicep
targetScope = 'local'
extension azuredevops

resource project 'AzureDevOpsProject' = {
  name: 'hello-world'
  organization: 'Contoso'
  description: 'Created via Bicep'
  visibility: 'Private'
  processName: 'Agile'
  sourceControlType: 'Git'
}
  1. Use main.bicepparam
using 'main.bicep'
  1. Use command:
bicep local-deploy main.bicepparam
  1. Output: error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions