Prepare the intended environment and activate a custom address through distinct provisioning, DNS and certificate checks. Start with Manage environments and domains and the environment architecture.
Prerequisites
Confirm the canonical Controller, effective entitlement, installed environment keys and Azure ownership. Use a user login with controller:deploy for environment deployment and the permissions required by the installed domain interface. Obtain the accepted saved configuration, DNS control, identity-provider access and change window.
This procedure describes Builder 2.71.0 and Miso 2.1.65 source contracts. Older Controllers may report custom domains unsupported. Community fallback without a licence is Development-only; an issued licence must be checked separately. Do not create Test or Production from an example when the installation does not permit it.
Where it lives
The Controller stores environment configuration; provisioning realizes it in Azure. Front Door registers a domain and binds its certificate. You publish DNS at your provider. Application registration, image deployment and identity-provider redirects require their own verification.
How to set
-
Sign in, inspect the actual environment in the Controller and review the intended configuration:
aifabrix login --controller https://controller.example.com/miso --environment dev aifabrix auth status aifabrix env deploy --helpFor a new environment, choose an entitled preset. For an existing environment, use its reviewed configuration rather than overwriting it with a default:
aifabrix env deploy dev --config ./approved-env-config.jsonThat file must be a complete configuration accepted by your installed Controller and approved for this target. Follow its deployment ID to completion. If unknown or timed out, read existing status before retrying.
-
Save a controlled custom host name:
aifabrix env domain status dev aifabrix env domain add dev app.example.comReplace the example with your approved hostname, without scheme, port or path and with at least three labels. The command displays Controller and environment. Adding the already saved domain is unchanged.
-
Apply the domain's provisioning requirements through the stored configuration:
aifabrix env domain add dev app.example.com --deployReview the confirmation. This redeploy uses saved size, region, networking and access configuration. Publish the exact DNS records the workflow returns, then wait for validation and certificate approval.
-
Refresh and inspect the result:
aifabrix env domain refresh dev aifabrix env domain status dev --jsonFollow the returned next action. Test public HTTPS and a real sign-in with the accepted redirect addresses. Confirm the request reaches the intended environment and a permitted operation works.
-
For an authorized removal:
aifabrix env domain remove devReview DNS and sign-in-address cleanup before confirming. Removal attempts Front Door cleanup; a remaining in-use entry or manual-cleanup message is unresolved work. Retry the supported cleanup after its dependencies are corrected. Keep a record of what still exists.
Defaults and examples
Without a configuration file, environment deploy sends the environment and preset; the preset defaults to Small. It does not reconstruct an existing installation's full configuration. Domain redeployment explicitly uses the stored configuration.
Environment deployment polls by default; --no-poll leaves follow-up to the operator. Domain add with deployment has its own polling option. These do not imply an equivalent switch on application deploy. --yes skips a confirmation only after authorization.
Validate
Verify entitlement, provisioning completion, effective configuration, application health, DNS, certificate binding and sign-in. Changing an active domain can switch applications back to their Front Door address and restart them; schedule it accordingly. Keep the deployment ID and next-action evidence. A saved domain is not active routing, and infrastructure provisioning does not update all platform images.
Common mistakes
| Observation | Action |
|---|---|
| A domain was saved but HTTPS is unavailable | Follow provisioning, DNS, certificate and refresh stages. |
| A preset would overwrite existing placement | Use the approved existing configuration. |
| Removal reports manual cleanup | Retain and finish DNS, identity-provider and Front Door cleanup. |
Limits
The configuration file example is a path to an approved API configuration, not a copy-paste manifest. No integration JSON examples are used. Actual DNS propagation and certificate issuance depend on external services. This procedure has been reviewed against source contracts; it does not establish an executed Azure deployment or cleanup.