Skip to content

Azure: allow overriding the CD storage account / blob container (equivalent of --bucket / DEFANG_CD_BUCKET) #2195

Description

@defangdevs

Summary

AWS, GCP, and DigitalOcean BYOC let you adopt an existing CD state bucket instead of creating a new one, via defang cd install --bucket <name> / the DEFANG_CD_BUCKET env var (see #2194). Azure has no equivalent because its CD/Pulumi state doesn't live in a bucket — it lives in a Storage Account + Blob Container (d.StorageAccount / d.BlobContainerName in src/pkg/clouds/azure/cd/). So --bucket is intentionally rejected for Azure today.

Ask

Add an Azure equivalent so a pre-existing CD state store can be adopted (and re-used across teardown/re-bootstrap, avoiding churn/orphaning):

  • a --storage-account and/or --container override on defang cd install (Azure-appropriate names), and/or
  • corresponding env vars (e.g. DEFANG_CD_STORAGE_ACCOUNT / DEFANG_CD_CONTAINER), mirroring how DEFANG_CD_BUCKET works for the object-storage clouds.

Note Azure storage-account names are globally unique and have their own naming rules, so this shouldn't be overloaded onto --bucket.

Context / related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions