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
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>/ theDEFANG_CD_BUCKETenv 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.BlobContainerNameinsrc/pkg/clouds/azure/cd/). So--bucketis 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):
--storage-accountand/or--containeroverride ondefang cd install(Azure-appropriate names), and/orDEFANG_CD_STORAGE_ACCOUNT/DEFANG_CD_CONTAINER), mirroring howDEFANG_CD_BUCKETworks 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
--bucket/DEFANG_CD_BUCKETadoption for AWS, GCP, DigitalOcean (explicitly excludes Azure).