Deploy a managed application for a service catalog with PowerShell

This script deploys a managed application definition from the service catalog.

If you don't have an Azure subscription, create an Azure free account before you begin.

Sample script

# Create resource group
New-AzResourceGroup -Name applicationGroup -Location westcentralus

# Get ID of managed application definition
$appid=(Get-AzManagedApplicationDefinition -ResourceGroupName appDefinitionGroup -Name ManagedStorage).ManagedApplicationDefinitionId

# Create the managed application
New-AzManagedApplication `
  -Name storageApp `
  -Location westcentralus `
  -Kind ServiceCatalog `
  -ResourceGroupName applicationGroup `
  -ManagedApplicationDefinitionId $appid `
  -ManagedResourceGroupName "InfrastructureGroup" `
  -Parameter "{`"storageAccountNamePrefix`": {`"value`": `"demostorage`"}, `"storageAccountType`": {`"value`": `"Standard_LRS`"}}"

Script explanation

This script uses the following command to deploy the managed application. Each command in the table links to command-specific documentation.

Command Notes
New-AzManagedApplication Create a managed application. Provide the definition ID and parameters for the template.

Next steps