azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

partial update aka a PATCH

Open spottedmahn opened this issue 2 years ago • 1 comments

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? 🤔

image

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.

spottedmahn avatar Dec 14 '22 15:12 spottedmahn

@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.

mike-urnun-msft avatar Dec 20 '22 02:12 mike-urnun-msft