Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. N8N & Azure CLI - Execute command "az login" fails with "Command failed: az login --identity /bin/sh: 1: az: not found"

N8N & Azure CLI - Execute command "az login" fails with "Command failed: az login --identity /bin/sh: 1: az: not found"

Scheduled Pinned Locked Moved N8N
2 Posts 2 Posters 329 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andreid
    wrote on last edited by
    #1

    Hello,

    I am trying to use Azure CLI to upload a file in Azure Storage container, from an N8N instance deployed on an Azure VM.
    I've installed Azure CLI myself on the Linux Azure VM (Ubuntu 2204), as per https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt.

    If I SSH into the Linux Azure VM, I can use Azure CLI commands:
    ~$ az login --identity
    [
    {
    "environmentName": "AzureCloud",
    "homeTenantId": "<<REDACTED>>",
    "id": "<<REDACTED>>",
    "isDefault": true,
    "managedByTenants": [],
    "name": "<<REDACTED>>",
    "state": "Enabled",
    "tenantId": "<<REDACTED>>",
    "user": {
    "assignedIdentityInfo": "MSI",
    "name": "systemAssignedIdentity",
    "type": "servicePrincipal"
    }
    }
    ]

    From an "Execute Command" node, however, the same command fails with the exception "Command failed: az login --identity /bin/sh: 1: az: not found"

    Full exception:
    {
    "errorMessage": "Command failed: az login --identity\n/bin/sh: 1: az: not found\n",
    "errorDetails": {},
    "n8nDetails": {
    "nodeName": "Upload to Azure Storage1",
    "nodeType": "n8n-nodes-base.executeCommand",
    "nodeVersion": 1,
    "itemIndex": 0,
    "time": "23/07/2024, 01:02:27",
    "n8nVersion": "1.50.1 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
    "NodeOperationError: Command failed: az login --identity",
    "/bin/sh: 1: az: not found",
    "",
    " at Object.execute (/app/code/node_modules/n8n-nodes-base/nodes/ExecuteCommand/ExecuteCommand.node.ts:101:12)",
    " at processTicksAndRejections (node:internal/process/task_queues:95:5)",
    " at Workflow.runNode (/app/code/node_modules/n8n-workflow/src/Workflow.ts:1378:8)",
    " at /app/code/node_modules/n8n-core/src/WorkflowExecute.ts:1072:27",
    " at /app/code/node_modules/n8n-core/src/WorkflowExecute.ts:1775:11"
    ]
    }
    }

    Note: I've also posted on N8N's Community site, https://community.n8n.io/t/azure-cli-execute-command-az-login-fails-with-command-failed-az-login-identity-bin-sh-1-az-not-found/50576

    1 Reply Last reply
    0
    • nebulonN Away
      nebulonN Away
      nebulon
      Staff
      wrote on last edited by
      #2

      Are you running n8n on Cloudron? This is a Cloudron related forum and it seems your post on n8n.io is the correct way to go forward.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search