Skip to content

Latest commit

 

History

History
84 lines (48 loc) · 3.57 KB

File metadata and controls

84 lines (48 loc) · 3.57 KB

Azure Managed App CI/CD solution

The goal of this solution is to demonstrate how to build azure pipeline to update azure managed application artifacts in customer environment. This solution will deploy the following.

  1. Managed-application ARM delta to modify existing plan deployment
  2. New code base for WebApp resource

Requirements

The solution requirement is to have the knowledge of the following.

  1. Create and publish managed app
  2. Azure pipeline

Resources to Review

It is highly recommended to review the following material before starting this solution

  1. Managed Applications for the Microsoft Marketplace - Workshop
  2. Customize your pipeline
  3. Create Azure AD App Registration

Prerequisites

Before using the solution, the following components should exist:

  1. Azure managed app offer with at least one plan
  2. AAD App Registration

NOTE: AAD App Registration will be used as part of the managed app plan technical configuration and also as part of Azure pipeline

Publish the managed app solution

  1. Find amav1.zip under arm folder and upload it to managed app plan technical configuration

    image

  2. Use AAD App Registration Client ID to relocate its corresponding Enterprise App

    image

  3. Locate the Object ID for the Enterprise App

    image

  4. Enter the objbect ID and AAD tenant ID

    image

  5. Save Draft

  6. Review and publish

Deploy published managed app

NOTE: It is highly recommended to use a different tenant for deployment to demonstrate customer environment

  1. Deploy the managed app from marketplace, please refer to this link.

  2. Access the managed resource group, open the webapp url under App Service and you should see the following webpage

    image

Deploy modified Artifact to managed app

  1. Modify the web application source code, add extra header line or change logo

  2. Establish Azure pipeline using Azure-pipline.yaml file, please refer to this article as a guide HOW-TO Establish Pipeline

    image

  3. Add a variable group to azure library amaSecrets and add AAD app registration client ID, client secret ID and tenant ID. Please refer to this article HOW-TO add variable Group

    image

  4. Add new environment and call it UpdateManagedApp

  5. Add yourself or other AAD User as Approval for the environment, please refer to this article HOW-TO Create pipeline Environment

    image

  6. Run pipeline

  7. After it finishes, access managed app webapp and confirm it was updated.

    image

As you see the managed app reflects the new site version.