Dagweave catalog

Upload a file to Azure Blob Storage

azure-blob-uploadv1.0.2updated 2026-08-113 versions

Upload a local file or artifact to an Azure Blob Storage container with the az CLI, authenticating with a storage account key read from a Kubernetes Secret.

Install v1.0.2

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/azure-blob-upload/1.0.2/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/azure-blob-upload/1.0.2/template.yaml

Facts

Category
Object storage
Tags
azure-cli object-storage
Entrypoint
upload
Template SHA-256
324b1d51b81698469e04ed3c237e87519b0217157e4fcef25dc6833a8efaa179
Source
azure-blob-upload at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
mcr.microsoft.com/azure-cli2.91.0sha256:933eb8dcb81aecb6f77e03c5b8660f0a1dfa9e1d16525763a27f86ff3b83a044

Parameters

NameDescriptionDefault
account required Azure storage account name.
Example mystorageacct
none
blob required Destination blob name within the container.
Example reports/2026/summary.csv
none
container required Target blob container within the account.
Example uploads
none
source-path required Local path of the file to upload. none
azure-secret-key Key within the Secret that holds the storage account key. account-key
azure-secret-name Name of the Kubernetes Secret holding the storage account key. azure-storage-credentials

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: azure-blob-upload
  labels:
    dagweave.io/catalog-item: azure-blob-upload
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.2"
    dagweave.io/catalog-category: "Object storage"
spec:
  entrypoint: upload
  templates:
    - name: upload
      inputs:
        parameters:
          # Azure storage account name.
          - name: account
          # Target blob container within the account.
          - name: container
          # Destination blob name within the container.
          - name: blob
          # Local path of the file to upload.
          - name: source-path
          # Name of the Kubernetes Secret holding the storage account key, plus the
          # key within it. Defaults let a user leave them blank in the Inspector.
          - name: azure-secret-name
            default: azure-storage-credentials
          - name: azure-secret-key
            default: account-key
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # mcr.microsoft.com/azure-cli:2.91.0
        image: mcr.microsoft.com/azure-cli@sha256:933eb8dcb81aecb6f77e03c5b8660f0a1dfa9e1d16525763a27f86ff3b83a044
        command: [sh, -c]
        # The account key is passed as AZURE_STORAGE_KEY (read automatically by the
        # az CLI), never interpolated into the shell. Account/container/blob/source
        # are passed as env too and referenced double-quoted, so metacharacters are
        # safe.
        args:
          - |
            set -eu
            az storage blob upload \
              --account-name "${AZURE_STORAGE_ACCOUNT}" \
              --container-name "${BLOB_CONTAINER}" \
              --name "${BLOB_NAME}" \
              --file "${SOURCE_PATH}" \
              --overwrite
        env:
          - name: AZURE_STORAGE_ACCOUNT
            value: "{{inputs.parameters.account}}"
          - name: BLOB_CONTAINER
            value: "{{inputs.parameters.container}}"
          - name: BLOB_NAME
            value: "{{inputs.parameters.blob}}"
          - name: SOURCE_PATH
            value: "{{inputs.parameters.source-path}}"
          - name: AZURE_STORAGE_KEY
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.azure-secret-name}}"
                key: "{{inputs.parameters.azure-secret-key}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.2 latest 2026-08-11

    Move azure-cli from 2.88.0 to 2.89.0. Fixable OS advisories drop from 25 to 8, and the 8 that stay are Azure Linux 3 packages only Microsoft can rebuild, recorded in hack/image-cve-exceptions.txt. 2.89.0 ships no storage changes at all, and `az storage blob upload --overwrite` was round-tripped against Azurite on both digests.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/azure-blob-upload/1.0.2/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/azure-blob-upload/1.0.2/template.yaml

    version document, template.yaml

  2. 1.0.1 2026-08-02

    Move azure-cli from 2.63.0 to 2.88.0. Fixable CRITICAL/HIGH drops from 103 to 30.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

  3. 1.0.0 2026-07-16

    Initial release.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/azure-blob-upload \
  -p account=mystorageacct \
  -p blob=reports/2026/summary.csv \
  -p container=uploads \
  -p source-path=...

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: azure-blob-upload-
spec:
  workflowTemplateRef:
    name: azure-blob-upload
  arguments:
    parameters:
      - name: account
        value: "mystorageacct"
      - name: blob
        value: "reports/2026/summary.csv"
      - name: container
        value: "uploads"
      - name: source-path
        value: "..."

As a step of a larger workflow

steps:
  - - name: azure-blob-upload
      templateRef:
        name: azure-blob-upload
        template: upload