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

The magic of typing ls -l in the shell

My Testcode 5.0 Experience

Beginner-friendly History: From low-level to high-level languages

Passing the AWS Certified Solutions Architect Associate Exam (SAA-CO2)

Want To Make More Money as a Developer? Start Selling APIs

Tree buried in coins, growing in a cup

Efficient personal search at large scale

Tran -🖥️ Securely transfer and send anything between computers with TUI.

DeepSpeech Server | Docker — Offline speech recognition

Speech to Text

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

Good to know Azure DevOps Build Triggers

5 Simple Steps to effectively use Azure Files

Digging into IO behavior On Azure VM For Oracle DB

How to start using Azure PowerShell in Docker