Note: This sample is for Managed Application in Service Catalog. For Marketplace, please see these instructions: Marketplace Managed Application
Clicking on the button below, will create the Managed Application definition to a Resource Group in your Azure subscription.
Modify the snippet below to deploy Managed Application definition to a Resource Group in your Azure subscription
$rgname = "<yourRgName>"
$location = "<rgLocation>"
$authorization = "<userOrGroupId>:<RBACRoleDefinitionId>"
$uri = "https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/Managed Application Sample Packages/201-managed-web-app/managedwebapp.zip"
New-AzureRmManagedApplicationDefinition -Name "ManagedWebApp" `
-ResourceGroupName $rgname `
-DisplayName "Managed Web App" `
-Description "Managed Web App with Azure mgmt" `
-Location $location `
-LockLevel ReadOnly `
-PackageFileUri $uri `
-Authorization $authorization `
-Verbose
Modify the snippet below to deploy Managed Application definition to a Resource Group in your Azure subscription
az managedapp definition create \
--name "ManagedWebApp" \
--location <rgLocation> \
--resource-group <yourRgName> \
--lock-level ReadOnly \
--display-name "Managed Web Application" \
--description "Web App with Azure mgmt" \
--authorizations "<userOrGroupId>:<RBACRoleDefinitionId>" \
--package-file-uri "https://raw.githubusercontent.com/Azure/azure-managedapp-samples/master/samples/201-managed-web-app/managedwebapp.zip"