Skip to content

Commit 71183ca

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into 2022_linkfix1
2 parents fb6e3d6 + e49d1f8 commit 71183ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+416
-213
lines changed

.openpublishing.redirection.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9144,8 +9144,18 @@
91449144
"redirect_document_id": false
91459145
},
91469146
{
9147-
"source_path": "articles/azure-resource-manager/managed-application-createuidefinition-overview.md",
9148-
"redirect_url": "/azure/azure-resource-manager/managed-applications/create-uidefinition-overview",
9147+
"source_path": "articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-create-application.md",
9148+
"redirect_url": "/azure/azure-resource-manager/managed-applications/scripts/managed-application-define-create-cli-sample",
9149+
"redirect_document_id": false
9150+
},
9151+
{
9152+
"source_path": "articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-create-definition.md",
9153+
"redirect_url": "/azure/azure-resource-manager/managed-applications/scripts/managed-application-define-create-cli-sample",
9154+
"redirect_document_id": false
9155+
},
9156+
{
9157+
"source_path": "articles/azure-resource-manager/managed-applications/scripts/managed-application-cli-sample-get-managed-group-resize-vm.md",
9158+
"redirect_url": "/azure/azure-resource-manager/managed-applications/update-managed-resources",
91499159
"redirect_document_id": false
91509160
},
91519161
{

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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
- name: Samples
1919
items:
2020
- name: Azure CLI
21-
href: cli-samples.md
21+
items:
22+
- name: Overview
23+
href: cli-samples.md
24+
- name: Create managed application
25+
href: scripts/managed-application-define-create-cli-sample.md
2226
- name: Azure PowerShell
2327
href: powershell-samples.md
2428
- name: Managed application solutions

articles/cosmos-db/scripts/cli/cassandra/autoscale.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The script in this article demonstrates creating an Azure Cosmos DB account, key
2727

2828
### Run the script
2929

30-
:::code language="azurecli" source="~/azure_cli_scripts/cosmosdb/cassandra/autoscale.sh" range="4-54":::
30+
:::code language="azurecli" source="~/azure_cli_scripts/cosmosdb/cassandra/autoscale.sh" id="FullScript":::
3131

3232
## Clean up resources
3333

articles/cosmos-db/scripts/cli/cassandra/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The script in this article demonstrates creating an Azure Cosmos DB account, key
2727

2828
### Run the script
2929

30-
:::code language="azurecli" source="~/azure_cli_scripts//cosmosdb/cassandra/create.sh" range="4-51":::
30+
:::code language="azurecli" source="~/azure_cli_scripts//cosmosdb/cassandra/create.sh" id="FullScript":::
3131

3232
## Clean up resources
3333

articles/cosmos-db/scripts/cli/cassandra/lock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The script in this article demonstrates preventing resources from being deleted
3333

3434
### Run the script
3535

36-
:::code language="azurecli" source="~/azure_cli_scripts/cosmosdb/cassandra/lock.sh" range="4-45":::
36+
:::code language="azurecli" source="~/azure_cli_scripts/cosmosdb/cassandra/lock.sh" id="FullScript":::
3737

3838
## Clean up resources
3939

0 commit comments

Comments
 (0)