Skip to content

Error while attempting to download Bicep CLI: [Errno 1] Operation not permitted: '/opt/az-config/config'Β #30658

@canadaleks

Description

@canadaleks

Describe the bug

As of today (14 January 2025), when using Azure Pipelines to perform an Azure ARM deployment, an error is being presented:

ERROR: Error while attempting to download Bicep CLI: [Errno 1] Operation not permitted: '/opt/az-config/config'

Version details:

  • Azure CLI: 2.67.0
  • Azure Pipelines Agent: ubuntu-latest

Related command

az deployment sub what-if

Errors

Error while attempting to download Bicep CLI: [Errno 1] Operation not permitted: '/opt/az-config/config'

Issue script & Debug output

/usr/bin/az login --service-principal -u *** --tenant *** --allow-no-subscriptions --federated-token ***

[
  {
    "cloudName": "AzureCloud",
    "homeTenantId": "***",
    "id": "***",
    "isDefault": true,
    "managedByTenants": [],
    "name": "***",
    "state": "Enabled",
    "tenantId": "***",
    "user": {
      "name": "***",
      "type": "servicePrincipal"
    }
  },
  {
    "cloudName": "AzureCloud",
    "homeTenantId": "***",
    "id": "***",
    "isDefault": false,
    "managedByTenants": [],
    "name": "***",
    "state": "Enabled",
    "tenantId": "***",
    "user": {
      "name": "***",
      "type": "servicePrincipal"
    }
  }
]

/usr/bin/az deployment sub what-if --location Canada Central --template-file /home/vsts/work/1/s/resources/main.bicep --parameters /home/vsts/work/1/s/parameters/dev.bicepparam --subscription *** --no-pretty-print --no-prompt --result-format FullResourcePayloads

WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'.

ERROR: Error while attempting to download Bicep CLI: [Errno 1] Operation not permitted: '/opt/az-config/config'

##[error]Error!

/usr/bin/az account clear

Finishing: ARM What-if

Expected behavior

ARM what-if command runs successfully.

Environment Summary

azure-cli 2.67.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAccountaz login/accountAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions