Setting Incremental Deployment Mode for Azure Managed App Service Catalog Definition

Create Managed App Definition

az managedapp definition create --name "ama-definition" --location eastus --resource-group avama --lock-level ReadOnly --display-name "My Managed App Definition" --description "My Managed App Example" --authorizations "YOUR_AAD_GROUP_PRINCIPAL_ID:b24988ac-6180-42a0-ab88-20f7382dd24c" --package-file-uri "https://YOUR_STORAGE_ACCOUNT.blob.core.windows.net/ama/ama.zip"

Get Managed App Definition JSON

az rest --method get --url /subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition?api-version=2019-07-01 -o json
{
"id": "/subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition",
"location": "eastus",
"name": "ama-definition",
"properties": {
"artifacts": [
{
"name": "ApplicationResourceTemplate",
"type": "Template",
"uri": "https://xyzl01.blob.core.windows.net/applicationdefinitions/xyz/applicationResourceTemplate.json"
},
{
"name": "CreateUiDefinition",
"type": "Custom",
"uri": "https://management.azure.com/subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"
},
{
"name": "MainTemplateParameters",
"type": "Custom",
"uri": "https://management.azure.com/subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"
}
],
"authorizations": [
{
"principalId": "fd7ae2b5-02de-4408-934b-94802f140a4c",
"roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c"
}
],
"description": "My Managed App Example",
"displayName": "My Managed App Definition",
"isEnabled": true,
"lockLevel": "ReadOnly"
},
"resourceGroup": "avama",
"type": "Microsoft.Solutions/applicationDefinitions"
}

Update Managed App via REST PUT

"properties": {
"deploymentPolicy": {
"deploymentMode": "Incremental"
},
"packageFileUri": "https://YOUR_STORAGE_ACCOUNT.blob.core.windows.net/ama/ama.zip",
...
{
"id": "/subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition",
"location": "eastus",
"name": "ama-definition",
"properties": {
"deploymentPolicy": {
"deploymentMode": "Incremental"
},
"packageFileUri": "https://YOUR_STORAGE_ACCOUNT.blob.core.windows.net/ama/ama.zip",
"artifacts": [
{
"name": "ApplicationResourceTemplate",
"type": "Template",
"uri": "https://xyzl01.blob.core.windows.net/applicationdefinitions/xyz/applicationResourceTemplate.json"
},
{
"name": "CreateUiDefinition",
"type": "Custom",
"uri": "https://management.azure.com/subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition/applicationArtifacts/CreateUiDefinition?api-version=2017-09-01"
},
{
"name": "MainTemplateParameters",
"type": "Custom",
"uri": "https://management.azure.com/subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition/applicationArtifacts/MainTemplateParameters?api-version=2017-09-01"
}
],
"authorizations": [
{
"principalId": "fd7ae2b5-02de-4408-934b-94802f140a4c",
"roleDefinitionId": "b24988ac-6180-42a0-ab88-20f7382dd24c"
}
],
"description": "My Managed App Example",
"displayName": "My Managed App Definition",
"isEnabled": true,
"lockLevel": "ReadOnly"
},
"resourceGroup": "avama",
"type": "Microsoft.Solutions/applicationDefinitions"
}
az rest --method put --url /subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-managedapp?api-version=2019-07-01 --body @managedapp-definition.json -o json

Confirm Managed App Definition was Updated

az rest --method get --url /subscriptions/06b230b6-ec16-422c-a319-487cbe82501a/resourceGroups/avama/providers/Microsoft.Solutions/applicationDefinitions/ama-definition?api-version=2019-07-01 -o json

--

--

--

Principal Engineer / Architect, FastTrack for Azure at Microsoft

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Cool Custom View Controller Transitions — Advanced

Incremental Website rebuilds using Amazon CloudFront

Alvin’s Dew Drop Daily — Issue #144

Difference between Alpha and Beta Testing

QR-Code implementation for e-invoicing (Fatoora) in (Kotlin & Java) to support Android Apps on…

via IFTTT from http://1966mustanggt350.blogspot.com/2017/01/you-got-strip-it-down-before-you-can.h

Collection Framework :

AWS EC2 Instance with EFS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arsen Vladimirskiy

Arsen Vladimirskiy

Principal Engineer / Architect, FastTrack for Azure at Microsoft

More from Medium

Securing your Azure Functions App with API Management

10 ways of gaining control over Azure function Apps

Creating and Provisioning Azure Container Apps with Bicep

Policy as Code (PoC): Deploying and Managing Azure Policy in Bicep