A city transit agency's Cortex Cloud outpost Terraform apply fails, and the Azure subscription is named Bus Ops West. The failure is the documented EventGrid naming error in the v1.2-and-earlier template. What should the engineer change?
Select an answer to reveal the explanation.
Short Explanation
You can leave the Bus Ops West display name alone and fix the template where it builds names. You sanitize the EventGrid name expressions with replace(var.subscription_name, " ", "-"), validate the Azure names, then retry and watch for the registration callback.
Full Explanation
Azure subscription display names may contain spaces; the documented v1.2-and-earlier issue uses that display name in more restrictive EventGrid resource names. Correct or update the affected template rather than assert the subscription itself has an illegal name. In that legacy template the EventGrid resource-name expressions interpolate the subscription display name directly, so Bus Ops West injects a space that violates Azure resource-name rules and the apply fails. Sanitizing the expressions, for this example use replace(var.subscription_name, " ", "-") in the affected name expressions; validate the resulting Azure resource names, removes the illegal character while preserving the outpost design, then retrying Terraform lets provisioning reach the registration callback. Changing the Cortex tenant region leaves the expression unchanged, so the same EventGrid validation fails again because region does not rewrite names. Switching from outpost to cloud scan avoids the template instead of fixing it and loses the outpost coverage the design required. Moving a Broker VM into the subscription confuses components since Broker VM placement does not sanitize EventGrid names for outpost deployment. Operational check: update the template, rerun the outpost Terraform, and confirm the outpost can leave Pending once the registration callback succeeds.