You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Quickstart: Use Bicep to deploy an Azure Managed Application definition
@@ -20,10 +20,10 @@ To deploy a managed application definition from your service catalog, do the fol
20
20
21
21
To complete the tasks in this article, you need the following items:
22
22
23
-
-Completed the quickstart to [use Bicep to create and publish](publish-bicep-definition.md) a managed application definition in your service catalog.
23
+
-Deployed a definition with [Quickstart: Use Bicep to create and publish an Azure Managed Application definition](publish-bicep-definition.md).
24
24
- An Azure account with an active subscription. If you don't have an account, [create a free account](https://azure.microsoft.com/free/) before you begin.
25
25
-[Visual Studio Code](https://code.visualstudio.com/) with the latest [Azure Resource Manager Tools extension](https://marketplace.visualstudio.com/items?itemName=msazurermtools.azurerm-vscode-tools). For Bicep files, install the [Bicep extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep).
26
-
-Install the latest version of [Azure PowerShell](/powershell/azure/install-az-ps) or [Azure CLI](/cli/azure/install-azure-cli).
26
+
-The latest version of [Azure PowerShell](/powershell/azure/install-az-ps) or [Azure CLI](/cli/azure/install-azure-cli).
27
27
28
28
## Get managed application definition
29
29
@@ -39,18 +39,18 @@ Connect-AzAccount
39
39
40
40
The command opens your default browser and prompts you to sign in to Azure. For more information, go to [Sign in with Azure PowerShell](/powershell/azure/authenticate-azureps).
41
41
42
-
From Azure PowerShell, get your managed application's definition. In this example, use the resource group name _bicepDefinitionRG_ that was created when you deployed the managed application definition.
42
+
From Azure PowerShell, get your managed application's definition. In this example, use the resource group name _bicepDefinitionGroup_ that was created when you deployed the managed application definition.
`Get-AzManagedApplicationDefinition` lists all the available definitions in the specified resource group, like _sampleBicepManagedApplication_.
49
49
50
50
The following command parses the output to show only the definition name and resource group name. You use the names when you deploy the managed application.
The command opens your default browser and prompts you to sign in to Azure. For more information, go to [Sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
67
67
68
-
From Azure CLI, get your managed application's definition. In this example, use the resource group name _bicepDefinitionRG_ that was created when you deployed the managed application definition.
68
+
From Azure CLI, get your managed application's definition. In this example, use the resource group name _bicepDefinitionGroup_ that was created when you deployed the managed application definition.
69
69
70
70
```azurecli
71
-
az managedapp definition list --resource-group bicepDefinitionRG
71
+
az managedapp definition list --resource-group bicepDefinitionGroup
72
72
```
73
73
74
74
The command lists all the available definitions in the specified resource group, like _sampleBicepManagedApplication_.
75
75
76
76
The following command parses the output to show only the definition name and resource group name. You use the names when you deploy the managed application.
77
77
78
78
```azurecli
79
-
az managedapp definition list --resource-group bicepDefinitionRG --query "[].{Name:name, ResourcGroup:resourceGroup}"
79
+
az managedapp definition list --resource-group bicepDefinitionGroup --query "[].{Name:name, ResourcGroup:resourceGroup}"
80
80
```
81
81
82
82
---
@@ -157,49 +157,29 @@ For more information about the resource type, go to [Microsoft.Solutions/applica
157
157
158
158
## Create the parameter file
159
159
160
-
Open Visual Studio Code and create a parameter file named _deployServiceCatalog.parameters.json_. Copy and paste the following code into the file and save it.
"value": "<placeholder for managed resource group name>"
178
-
},
179
-
"appServicePlanName": {
180
-
"value": "demoAppServicePlan"
181
-
},
182
-
"appServiceNamePrefix": {
183
-
"value": "demoApp"
184
-
},
185
-
"storageAccountNamePrefix": {
186
-
"value": "demostg1234"
187
-
},
188
-
"storageAccountType": {
189
-
"value": "Standard_LRS"
190
-
}
191
-
}
192
-
}
160
+
Open Visual Studio Code and create a parameter file named _deployServiceCatalog-parameters.bicepparam_. Copy and paste the following code into the file and save it.
param mrgName = 'placeholder for managed resource group name'
169
+
param appServicePlanName = 'demoAppServicePlan'
170
+
param appServiceNamePrefix = 'demoApp'
171
+
param storageAccountNamePrefix = 'demostg1234'
172
+
param storageAccountType = 'Standard_LRS'
193
173
```
194
174
195
175
You need to provide several parameters to deploy the managed application:
196
176
197
177
| Parameter | Value |
198
178
| ---- | ---- |
199
179
|`definitionName`| Name of the service catalog definition. This example uses _sampleBicepManagedApplication_. |
200
-
| `definitionRG` | Resource group name where the definition is stored. This example uses _bicepDefinitionRG_.
180
+
| `definitionRG` | Resource group name where the definition is stored. This example uses _bicepDefinitionGroup_.
201
181
| `managedAppName` | Name for the deployed managed application. This example uses _sampleBicepManagedApp_.
202
-
|`mrgName`| Unique name for the managed resource group that contains the application's deployed resources. The resource group is created when you deploy the managed application. To create a managed resource group name, you can run the commands that follow this parameter list. |
182
+
|`mrgName`| Unique name for the managed resource group that contains the application's deployed resources. The resource group is created when you deploy the managed application. To create a managed resource group name, run the commands that follow this parameter list and use the `$mrgname` value to replace the placeholder in the parameters file. |
203
183
|`appServicePlanName`| Create a plan name. Maximum of 40 alphanumeric characters and hyphens. For example, _demoAppServicePlan_. App Service plan names must be unique within a resource group in your subscription. |
204
184
|`appServiceNamePrefix`| Create a prefix for the plan name. Maximum of 47 alphanumeric characters or hyphens. For example, _demoApp_. During deployment, the prefix is concatenated with a unique string to create a name that's globally unique across Azure. |
205
185
|`storageAccountNamePrefix`| Use only lowercase letters and numbers and a maximum of 11 characters. For example, _demostg1234_. During deployment, the prefix is concatenated with a unique string to create a name globally unique across Azure. |
@@ -236,23 +216,30 @@ Use Azure PowerShell or Azure CLI to create a resource group and deploy the mana
The `$deployparms` variable uses PowerShell [splatting](/powershell/module/microsoft.powershell.core/about/about_splatting) to improve readability for the parameter values.
232
+
247
233
# [Azure CLI](#tab/azure-cli)
248
234
249
235
```azurecli
250
-
az group create --name bicepAppRG --location westus3
236
+
az group create --name bicepApplicationGroup --location westus
Run the following command to check the managed application's status.
287
274
288
275
```azurecli
289
-
az managedapp show --name sampleBicepManagedApp --resource-group bicepAppRG
276
+
az managedapp show --name sampleBicepManagedApp --resource-group bicepApplicationGroup
290
277
```
291
278
292
279
The following command parses the data about the managed application to show only the application's name and provisioning state.
293
280
294
281
```azurecli
295
-
az managedapp show --name sampleBicepManagedApp --resource-group bicepAppRG --query "{Name:name, provisioningState:provisioningState}"
282
+
az managedapp show --name sampleBicepManagedApp --resource-group bicepApplicationGroup --query "{Name:name, provisioningState:provisioningState}"
296
283
```
297
284
298
285
---
@@ -359,29 +346,29 @@ To review the managed resource group's deny assignments, use the Azure portal or
359
346
360
347
## Clean up resources
361
348
362
-
When you're finished with the managed application, you can delete the resource groups and that removes all the resources you created. For example, you created the resource groups _bicepAppRG_ and a managed resource group with the prefix _mrg-bicepManagedApplication_.
349
+
When you're finished with the managed application, you can delete the resource groups and that removes all the resources you created. For example, you created the resource groups _bicepApplicationGroup_ and a managed resource group with the prefix _mrg-bicepManagedApplication_.
363
350
364
-
When you delete the _bicepAppRG_ resource group, the managed application, managed resource group, and all the Azure resources are deleted.
351
+
When you delete the _bicepApplicationGroup_ resource group, the managed application, managed resource group, and all the Azure resources are deleted.
365
352
366
353
# [PowerShell](#tab/azure-powershell)
367
354
368
355
The command prompts you to confirm that you want to remove the resource group.
The command prompts for confirmation, and then returns you to command prompt while resources are being deleted.
377
364
378
365
```azurecli
379
-
az group delete --resource-group bicepAppRG --no-wait
366
+
az group delete --resource-group bicepApplicationGroup --no-wait
380
367
```
381
368
382
369
---
383
370
384
-
If you want to delete the managed application definition, delete the resource groups you created named _packageStorageRG_ and _bicepDefinitionRG_.
371
+
If you want to delete the managed application definition, delete the resource groups you created named _packageStorageGroup_ and _bicepDefinitionGroup_.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/managed-applications/publish-service-catalog-app.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create and publish Azure Managed Application in service catalog
3
3
description: Describes how to create and publish an Azure Managed Application in your service catalog using Azure PowerShell, Azure CLI, or Azure portal.
# Quickstart: Create and publish an Azure Managed Application definition
@@ -275,12 +275,12 @@ Connect-AzAccount
275
275
The command opens your default browser and prompts you to sign in to Azure. For more information, go to [Sign in with Azure PowerShell](/powershell/azure/authenticate-azureps).
The command opens your default browser and prompts you to sign in to Azure. For more information, go to [Sign in with Azure CLI](/cli/azure/authenticate-azure-cli).
324
324
325
325
```azurecli
326
-
az group create --name packageStorageGroup --location westus3
326
+
az group create --name packageStorageGroup --location westus
327
327
328
328
az storage account create \
329
329
--name <pkgstorageaccountname> \
330
330
--resource-group packageStorageGroup \
331
-
--location westus3 \
331
+
--location westus \
332
332
--sku Standard_LRS \
333
333
--kind StorageV2 \
334
334
--min-tls-version TLS1_2 \
@@ -485,7 +485,7 @@ In the portal, the group ID and role ID are configured when you publish the mana
485
485
Create a resource group for your managed application definition.
The `blob` command creates a variable to store the URL for the package _.zip_ file. That variable is used in the command that creates the managed application definition.
@@ -523,7 +523,7 @@ Some of the parameters used in the preceding example are:
523
523
Create a resource group for your managed application definition.
524
524
525
525
```azurecli
526
-
az group create --name appDefinitionGroup --location westus3
526
+
az group create --name appDefinitionGroup --location westus
527
527
```
528
528
529
529
The `blob` command creates a variable to store the URL for the package _.zip_ file. That variable is used in the command that creates the managed application definition.
0 commit comments