MACH composer will create a resource group per site.
Only when a
is explicitly set, it won't be managed by MACH composer.
Only when a MACH composer stack contains components that have an
endpoint defined, MACH composer
will set up a Frontdoor instance to be able to route traffic to that component.
If you have defined your component with a
default endpoint, MACH composer will
create a Frontdoor instance for you which includes the default Azure domain.
- name: payment
default endpoint doesn't need to be defined in your endpoints' definition.
Whenever a custom endpoint from your endpoints definition
is used, MACH composer will require that you have configured
frontdoor for additional DNS
information that it needs to set up your Frontdoor instance.
In addition to that it will also set up the necessary DNS record.
For each component with an
endpoint MACH composer will add a route to the
Frontdoor instance using the name of the component.
So when having the following components defined:
- name: payment
- name: api-extensions
- name: graphql
The routing in Frontdoor that will be created:
An important thing to keep in mind is that the Frontdoor resource in Terraform is managed as a single resource, including all the routing to the components.
This means the components can't create the routing themselves (as with AWS) but need to instruct MACH composer how to set up routing. This can be done by defining routing options in output values.
App service plans¶
What kind and how many service plans it will create depends on what service
plans are needed by the components, and how the
configuration looks like.
By default, MACH composer will create a
default service plan which is a
Consumption plan, if any of the components have
service_plan: default set in
In this case, you don't need to define the service plan yourself, MACH composer automatically creates this default for you:
Components can use that action group to attach alert rules to.