Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
canadaleks opened this issue Jan 14, 2025 · 3 comments
Labels
Account az login/account ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure Deployments az deployment/bicep/stack/deployment-scripts/ts/group export customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@canadaleks
Copy link

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

@canadaleks canadaleks added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 14, 2025
Copy link

Hi @canadaleks,

2.67.0 is not the latest Azure CLI(2.68.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jan 14, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Jan 14, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Account az login/account Azure Deployments az deployment/bicep/stack/deployment-scripts/ts/group export Service Attention This issue is responsible by Azure service team. labels Jan 14, 2025
@canadaleks
Copy link
Author

canadaleks commented Jan 14, 2025

Closing issue. On further investigation I believe the issue is tied to a pipeline extension in use in our org. I will reach out to the extension developers to look into.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 14, 2025

Bicep

@yonzhan yonzhan removed bug This issue requires a change to an existing behavior in the product in order to be resolved. Azure CLI Team The command of the issue is owned by Azure CLI team labels Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure Deployments az deployment/bicep/stack/deployment-scripts/ts/group export customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants