Skip to content

Commit 81831a4

Browse files
committed
freshen cli sample, toc, parent article
1 parent 1b3f4df commit 81831a4

7 files changed

+63
-127
lines changed

.openpublishing.redirection.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9114,8 +9114,18 @@
91149114
"redirect_document_id": false
91159115
},
91169116
{
9117-
"source_path": "articles/azure-resource-manager/managed-application-createuidefinition-overview.md",
9118-
"redirect_url": "/azure/azure-resource-manager/managed-applications/create-uidefinition-overview",
9117+
"source_path": "articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-create-application.md",
9118+
"redirect_url": "/azure/azure-resource-manager/managed-applications/scripts/managed-application-define-create-cli-sample",
9119+
"redirect_document_id": false
9120+
},
9121+
{
9122+
"source_path": "articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-create-definition.md",
9123+
"redirect_url": "/azure/azure-resource-manager/managed-applications/scripts/managed-application-define-create-cli-sample",
9124+
"redirect_document_id": false
9125+
},
9126+
{
9127+
"source_path": "articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-get-managed-group-resize-vm.md",
9128+
"redirect_url": "/azure/azure-resource-manager/managed-applications/update-managed-resources",
91199129
"redirect_document_id": false
91209130
},
91219131
{

articles/azure-resource-manager/managed-applications/cli-samples.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ ms.custom: devx-track-azurecli
99
---
1010
# Azure CLI Samples for Azure Managed Applications
1111

12-
The following table includes links to bash scripts for Azure Managed Applications that use the Azure CLI.
12+
The following table includes links to a sample CLI script for Azure Managed Applications.
1313

1414
| Create managed application | Description |
1515
| -------------------------- | ----------- |
16-
| [Create managed application definition](scripts/managed-application-cli-sample-create-definition.md) | Creates a managed application definition in the service catalog. |
17-
| [Deploy managed application](scripts/managed-application-cli-sample-create-application.md) | Deploys a managed application from the service catalog. |
18-
|**Update managed resource group**| **Description** |
19-
| [Get resources in managed resource group and resize VMs](scripts/managed-application-cli-sample-get-managed-group-resize-vm.md) | Gets resources from the managed resource group, and resizes the VMs. |
16+
| [Define and create a managed application](scripts/managed-application-define-create-cli-sample.md) | Creates a managed application definition in the service catalog and then deploys the managed application from the service catalog. |

articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-create-application.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-create-definition.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-get-managed-group-resize-vm.md

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Create Managed Application definition - Azure CLI
3+
description: Provides an Azure CLI script sample that publishes a managed application definition to a service catalog and then deploys a managed application definition from the service catalog.
4+
author: tfitzmac
5+
ms.devlang: azurecli
6+
ms.topic: sample
7+
ms.date: 03/07/2022
8+
ms.author: tomfitz
9+
ms.custom: devx-track-azurecli
10+
---
11+
12+
# Create a managed application definition to service catalog and deploy managed application from service catalog with Azure CLI
13+
14+
This script publishes a managed application definition to a service catalog and then deploys a managed application definition from the service catalog.
15+
16+
[!INCLUDE [quickstarts-free-trial-note](../../../../includes/quickstarts-free-trial-note.md)]
17+
18+
[!INCLUDE [azure-cli-prepare-your-environment.md](../../../../includes/azure-cli-prepare-your-environment.md)]
19+
20+
## Sample script
21+
22+
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../../includes/cli-launch-cloud-shell-sign-in.md)]
23+
24+
### Run the script
25+
26+
:::code language="azurecli" source="~/azure_cli_scripts/managed-applications/create-application/create-managed-application.sh" id="FullScript":::
27+
28+
## Clean up resources
29+
30+
[!INCLUDE [cli-clean-up-resources.md](../../../../includes/cli-clean-up-resources.md)]
31+
32+
```azurecli
33+
az group delete --name $appResourceGroup -y
34+
az group delete --name $appDefinitionResourceGroup -y
35+
```
36+
37+
## Sample reference
38+
39+
This script uses the following command to create the managed application definition. Each command in the table links to command-specific documentation.
40+
41+
| Command | Notes |
42+
|---|---|
43+
| [az managedapp definition create](/cli/azure/managedapp/definition#az_managedapp_definition_create) | Create a managed application definition. Provide the package that contains the required files. |
44+
45+
## Next steps
46+
47+
* For an introduction to managed applications, see [Azure Managed Application overview](../overview.md).
48+
* For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).

articles/azure-resource-manager/managed-applications/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- name: Overview
2323
href: cli-samples.md
2424
- name: Create managed application
25-
href: managed-application-cli-sample.md
25+
href: managed-application-define-create-cli-sample.md
2626
- name: Azure PowerShell
2727
href: powershell-samples.md
2828
- name: Managed application solutions

0 commit comments

Comments
 (0)