Azure Managed Applications, Deep dive


Intro — why this matters

If you deliver enterprise software, SaaS or managed services on Azure you need a reproducible, auditable way to package infrastructure + operations and own the lifecycle without being inside every customer subscription. Azure Managed Applications let ISVs, MSPs and internal IT deliver turnkey solutions that customers deploy while publishers retain the ability to operate, update and secure the underlying resources.

TL;DR

  • Managed Applications package ARM/Bicep templates, a portal UI and optional runbooks into a zip.
  • Two publishing models: Marketplace (external, monetizable) and Service Catalog (internal).
  • Use viewDefinition.json to create tailored Portal UX (Overview, Metrics, Commands).
  • Combine with Azure Lighthouse, Policy and managed identities for secure operations.

Core architecture & permission modes

At its core a managed application includes the application definition (ARM/Bicep + UI), an application resource in the customer subscription, and a managed resource group where resources live. Key permission models:

  • Publisher-managed: publisher retains management access to the managed resource group.
  • Shared access: both publisher and customer have operations rights.
  • Customer-managed: publisher provides templates but has no ongoing rights.

Step-by-step: Author → Package → Publish

1) Design templates (ARM / Bicep)

Keep a single main template and parameterize everything. Never embed secrets — use Key Vault + user-assigned identities.

2) Create the portal UI with createUiDefinition.json

This file controls the deployment UX. Keep the UI short and prescriptive for faster adoption.

3) Add viewDefinition.json for in-portal management (golden UX trick)

A viewDefinition lets you surface custom Overview pages, metrics and toolbar commands. Customers can run diagnostics directly from the portal.

{
```

"views": [
{ "kind": "Overview", "properties": { "header": "My App", "commands": [{"displayName":"Run Health Check","path":"healthCheck"}] } },
{ "kind": "Metrics", "properties": { "displayName":"Key metrics" } }
]
} 

4) Package into a ZIP

Include mainTemplate.json, createUiDefinition.json, viewDefinition.json and any helper scripts. Store package in a secure storage account for publishing.

5) Publish: Service Catalog vs Marketplace

Service Catalog is for internal distribution; Marketplace is for external customers and monetization. Use Azure CLI, portal or CI to publish.

az managedapp definition create -g MyRG -n MyManagedAppDef -l westus 
```

--display-name "MyManagedApp" --package-file-uri "[https://mystorage.blob.core.windows.net/ama/package.zip](https://mystorage.blob.core.windows.net/ama/package.zip)" 

Operational playbook

  • Implement automated, versioned upgrades.
  • Expose a diagnostics endpoint (Function/API) protected with strong auth.
  • Support a “collect support bundle” command that runs a publisher-runbook and returns a time-limited download link.

Security & governance

Use managed identities and narrow RBAC scoped to the managed resource group. Prefer time-bound publisher access for emergency ops. Apply Azure Policy at the managed RG.

Advanced gadgetry

  1. Portal-first operator actions: wire viewDefinition commands to a publisher API to run idempotent diagnostics.
  2. Dual-mode telemetry routing: choice to send telemetry to the customer’s workspace or mirror minimal telemetry to the publisher workspace with privacy filters.
  3. Image build pipeline: Azure Image Builder → Shared Image Gallery for reproducible, hardened images.
  4. Lighthouse + Managed Apps: use Lighthouse for cross-customer view while using Managed Apps for in-tenant control.
  5. Canary upgrades: perform incremental rollouts and monitor before broad release.

CI/CD: repository & pipelines

Repo layout suggestion:

  • /bicep or /arm
  • /ui (createUiDefinition)
  • /view (viewDefinition)
  • /artifacts/package.zip

Use GitHub Actions or Azure DevOps to lint templates, package the ZIP, run sandbox deploys and promote to staging.

Author: Robert Smit [MVP]

Robert Smit is Senior Technical Evangelist and is a current Microsoft MVP in Clustering as of 2009.
Robert has over 20 years experience in IT with experience in the educational, health-care and finance industries.
Robert’s past IT experience in the trenches of IT gives him the knowledge and insight that allows him to communicate effectively with IT professionals
who are trying to address real concerns around business continuity, disaster recovery and regulatory compliance issues. Robert holds the following certifications:
MCT – Microsoft Certified Trainer, MCTS – Windows Server Virtualization, MCSE, MCSA and MCPS. He is an active participant in the Microsoft newsgroup community and is currently focused on Hyper-V, Failover Clustering, SQL Server, Azure and all things related to Cloud Computing and Infrastructure Optimalization.
Follow Robert on Twitter @ClusterMVP
Or follow his blog https://robertsmit.wordpress.com
Linkedin Profile Http://nl.linkedin.com/in/robertsmit

Robert is also capable of transferring his knowledge to others which is a rare feature in the field of IT. He makes a point of not only solving issues but also of giving on the job training of his colleagues.

A customer says ” Robert has been a big influence on our technical staff and I have to come to know him as a brilliant specialist concerning Microsoft Products. He was Capable with his in-depth knowledge of Microsoft products to troubleshoot problems and develop our infrastructure to a higher level. I would certainly hire him again in the future. ”

Details of the Recommendation: “I have been coordinating with Robert implementing a very complex system. Although he was primarily a Microsoft infrastructure specialist; he was able to understand and debug .Net based complext Windows applications and websites. His input to improve performance of applications proved very helpful for the success of our project

  This article was originally published by The Windows Server HA Blog. You can find the original article here.