azure-docs
azure-docs copied to clipboard
partial update aka a PATCH
On container app update, can we pass a partial YAML file that will perform an update for what is submitted & leave the rest of the container app alone? 🤔

Say I wanted to just update ingress -> allowInsecure to be true & it is currently false. Can I do something like this? If so, it would be handy of the doc page talked about this IMHO.
kind: containerapp
name: mycontainerapp
resourceGroup: myresourcegroup
type: Microsoft.App/container apps
properties:
managedEnvironmentId: /subscriptions/mysubscription/resourceGroups/myresourcegroup/providers/Microsoft.App/managedEnvironments/myenvironment
configuration:
activeRevisionsMode: Multiple
ingress:
allowInsecure: true
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 2ffe67b6-361a-b1f0-301e-0450ed885782
- Version Independent ID: 2a433dd8-a84f-04ad-178b-0541ef9bd3cf
- Content: Container Apps ARM template API specification
- Content Source: articles/container-apps/azure-resource-manager-api-spec.md
- Service: container-apps
- GitHub Login: @craigshoemaker
- Microsoft Alias: cshoe
@spottedmahn
Thanks for your feedback! We will investigate and update as appropriate.
Hello @spottedmahn - Thanks for sharing your feedback. The behavior of the command will vary depending on the nature of the update. For more info, refer to the following: Change types on how the changes in Container Apps fall under one of the 2 categories: Revision-scope vs Application-scope.
The above example of updating the ingress config would fall under the Application-scope category, and related changes will be applied to all existing container resources as opposed to triggering the creation of new revisions with the changes.
I hope this is helpful. Since we didn't determine any changes to this documentation, we will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.