Skip to content

Commit 9ba5afa

Browse files
committed
edits and update toc
1 parent d44bc53 commit 9ba5afa

File tree

3 files changed

+36
-34
lines changed

3 files changed

+36
-34
lines changed

articles/azure-resource-manager/managed-applications/publish-service-catalog-app.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Upload _app.zip_ to an Azure storage account so you can use it when you deploy t
250250

251251
# [PowerShell](#tab/azure-powershell)
252252

253-
```azurepowershell-interactive
253+
```azurepowershell
254254
New-AzResourceGroup -Name storageGroup -Location westus3
255255
256256
$storageAccount = New-AzStorageAccount `
@@ -265,15 +265,15 @@ $ctx = $storageAccount.Context
265265
New-AzStorageContainer -Name appcontainer -Context $ctx -Permission blob
266266
267267
Set-AzStorageBlobContent `
268-
-File ".\app.zip" `
268+
-File "app.zip" `
269269
-Container appcontainer `
270270
-Blob "app.zip" `
271271
-Context $ctx
272272
```
273273

274274
# [Azure CLI](#tab/azure-cli)
275275

276-
```azurecli-interactive
276+
```azurecli
277277
az group create --name storageGroup --location westus3
278278
279279
az storage account create \
@@ -288,7 +288,7 @@ After you create the storage account, add the role assignment _Storage Blob Data
288288

289289
After you add the role to the storage account, it takes a few minutes to become active in Azure. You can then use the parameter `--auth-mode login` in the commands to create the container and upload the file.
290290

291-
```azurecli-interactive
291+
```azurecli
292292
az storage container create \
293293
--account-name demostorageaccount \
294294
--name appcontainer \
@@ -300,7 +300,7 @@ az storage blob upload \
300300
--container-name appcontainer \
301301
--auth-mode login \
302302
--name "app.zip" \
303-
--file "./app.zip"
303+
--file "app.zip"
304304
```
305305

306306
For more information about storage authentication, see [Choose how to authorize access to blob data with Azure CLI](../../storage/blobs/authorize-data-operations-cli.md).
@@ -321,13 +321,13 @@ To create a new Azure Active Directory group, go to [Manage Azure Active Directo
321321

322322
# [PowerShell](#tab/azure-powershell)
323323

324-
```azurepowershell-interactive
324+
```azurepowershell
325325
$principalid=(Get-AzADGroup -DisplayName managedAppDemo).Id
326326
```
327327

328328
# [Azure CLI](#tab/azure-cli)
329329

330-
```azurecli-interactive
330+
```azurecli
331331
principalid=$(az ad group show --group managedAppDemo --query id --output tsv)
332332
```
333333

@@ -337,13 +337,13 @@ Next, get the role definition ID of the Azure built-in role you want to grant ac
337337

338338
# [PowerShell](#tab/azure-powershell)
339339

340-
```azurepowershell-interactive
340+
```azurepowershell
341341
$roleid=(Get-AzRoleDefinition -Name Owner).Id
342342
```
343343

344344
# [Azure CLI](#tab/azure-cli)
345345

346-
```azurecli-interactive
346+
```azurecli
347347
roleid=$(az role definition list --name Owner --query [].name --output tsv)
348348
```
349349

@@ -355,13 +355,13 @@ Create a resource group for your managed application definition.
355355

356356
# [PowerShell](#tab/azure-powershell)
357357

358-
```azurepowershell-interactive
358+
```azurepowershell
359359
New-AzResourceGroup -Name appDefinitionGroup -Location westus3
360360
```
361361

362362
# [Azure CLI](#tab/azure-cli)
363363

364-
```azurecli-interactive
364+
```azurecli
365365
az group create --name appDefinitionGroup --location westus3
366366
```
367367

@@ -373,7 +373,7 @@ The `blob` command that's run from Azure PowerShell or Azure CLI creates a varia
373373

374374
# [PowerShell](#tab/azure-powershell)
375375

376-
```azurepowershell-interactive
376+
```azurepowershell
377377
$blob = Get-AzStorageBlob -Container appcontainer -Blob app.zip -Context $ctx
378378
379379
New-AzManagedApplicationDefinition `
@@ -391,7 +391,7 @@ New-AzManagedApplicationDefinition `
391391

392392
In the `blob` command's `account-name` parameter, replace the placeholder `demostorageaccount` with your unique storage account name.
393393

394-
```azurecli-interactive
394+
```azurecli
395395
blob=$(az storage blob url \
396396
--account-name demostorageaccount \
397397
--container-name appcontainer \

articles/azure-resource-manager/managed-applications/publish-service-catalog-bring-your-own-storage.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Upload _app.zip_ to an Azure storage account so you can use it when you deploy t
250250

251251
# [PowerShell](#tab/azure-powershell)
252252

253-
```azurepowershell-interactive
253+
```azurepowershell
254254
New-AzResourceGroup -Name storageGroup -Location westus3
255255
256256
$storageAccount = New-AzStorageAccount `
@@ -265,15 +265,15 @@ $ctx = $storageAccount.Context
265265
New-AzStorageContainer -Name appcontainer -Context $ctx -Permission blob
266266
267267
Set-AzStorageBlobContent `
268-
-File ".\app.zip" `
268+
-File "app.zip" `
269269
-Container appcontainer `
270270
-Blob "app.zip" `
271271
-Context $ctx
272272
```
273273

274274
# [Azure CLI](#tab/azure-cli)
275275

276-
```azurecli-interactive
276+
```azurecli
277277
az group create --name storageGroup --location westus3
278278
279279
az storage account create \
@@ -288,7 +288,7 @@ After you create the storage account, add the role assignment _Storage Blob Data
288288

289289
After you add the role to the storage account, it takes a few minutes to become active in Azure. You can then use the parameter `--auth-mode login` in the commands to create the container and upload the file.
290290

291-
```azurecli-interactive
291+
```azurecli
292292
az storage container create \
293293
--account-name demostorageaccount \
294294
--name appcontainer \
@@ -300,7 +300,7 @@ az storage blob upload \
300300
--container-name appcontainer \
301301
--auth-mode login \
302302
--name "app.zip" \
303-
--file "./app.zip"
303+
--file "app.zip"
304304
```
305305

306306
For more information about storage authentication, see [Choose how to authorize access to blob data with Azure CLI](../../storage/blobs/authorize-data-operations-cli.md).
@@ -322,7 +322,7 @@ This example creates a new resource group named `byosDefinitionStorageGroup`. In
322322

323323
# [PowerShell](#tab/azure-powershell)
324324

325-
```azurepowershell-interactive
325+
```azurepowershell
326326
New-AzResourceGroup -Name byosDefinitionStorageGroup -Location westus3
327327
328328
New-AzStorageAccount `
@@ -335,7 +335,7 @@ New-AzStorageAccount `
335335

336336
Use the following command to store the storage account's resource ID in a variable named `storageId`. You use this variable's value when you deploy the managed application definition.
337337

338-
```azurepowershell-interactive
338+
```azurepowershell
339339
$storageId = (Get-AzStorageAccount -ResourceGroupName byosDefinitionStorageGroup -Name definitionstorage).Id
340340
```
341341

@@ -354,7 +354,7 @@ az storage account create \
354354

355355
Use the following command to store the storage account's resource ID in a variable named `storageId`. You use this variable's value when you deploy the managed application definition.
356356

357-
```azurecli-interactive
357+
```azurecli
358358
storageId=$(az storage account show --resource-group byosDefinitionStorageGroup --name definitionstorage --query id)
359359
```
360360

@@ -368,7 +368,7 @@ Before you deploy your managed application definition to your storage account, a
368368

369369
In PowerShell, you can use variables for the role assignment. This example uses the `$storageId` you created in a previous step and creates the `$arpId` variable.
370370

371-
```azurepowershell-interactive
371+
```azurepowershell
372372
$arpId = (Get-AzADServicePrincipal -SearchString "Appliance Resource Provider").Id
373373
374374
New-AzRoleAssignment -ObjectId $arpId `
@@ -380,7 +380,7 @@ New-AzRoleAssignment -ObjectId $arpId `
380380

381381
In Azure CLI, you need to use the string values to create the role assignment. This example gets string values from the `storageId` variable you created in a previous step and gets the object ID value for the Appliance Resource Provider. The command has placeholders for those values `arpId` and `storageId`. Replace the placeholders with the string values and use the quotes as shown.
382382

383-
```azurecli-interactive
383+
```azurecli
384384
echo $storageId
385385
arpId=$(az ad sp list --display-name "Appliance Resource Provider" --query [].id --output tsv)
386386
@@ -405,13 +405,13 @@ To create a new Azure Active Directory group, go to [Manage Azure Active Directo
405405

406406
# [PowerShell](#tab/azure-powershell)
407407

408-
```azurepowershell-interactive
408+
```azurepowershell
409409
$principalid=(Get-AzADGroup -DisplayName managedAppDemo).Id
410410
```
411411

412412
# [Azure CLI](#tab/azure-cli)
413413

414-
```azurecli-interactive
414+
```azurecli
415415
principalid=$(az ad group show --group managedAppDemo --query id --output tsv)
416416
```
417417

@@ -421,13 +421,13 @@ Next, get the role definition ID of the Azure built-in role you want to grant ac
421421

422422
# [PowerShell](#tab/azure-powershell)
423423

424-
```azurepowershell-interactive
424+
```azurepowershell
425425
$roleid=(Get-AzRoleDefinition -Name Owner).Id
426426
```
427427

428428
# [Azure CLI](#tab/azure-cli)
429429

430-
```azurecli-interactive
430+
```azurecli
431431
roleid=$(az role definition list --name Owner --query [].name --output tsv)
432432
```
433433

@@ -565,24 +565,24 @@ Create a resource group named _byosAppDefinitionGroup_ and deploy the managed ap
565565

566566
# [PowerShell](#tab/azure-powershell)
567567

568-
```azurepowershell-interactive
568+
```azurepowershell
569569
New-AzResourceGroup -Name byosAppDefinitionGroup -Location westus3
570570
571571
New-AzResourceGroupDeployment `
572572
-ResourceGroupName byosAppDefinitionGroup `
573-
-TemplateFile .\azuredeploy.json `
574-
-TemplateParameterFile .\azuredeploy-parameters.json
573+
-TemplateFile azuredeploy.json `
574+
-TemplateParameterFile azuredeploy-parameters.json
575575
```
576576

577577
# [Azure CLI](#tab/azure-cli)
578578

579-
```azurecli-interactive
579+
```azurecli
580580
az group create --name byosAppDefinitionGroup --location westus3
581581
582582
az deployment group create \
583583
--resource-group byosAppDefinitionGroup \
584-
--template-file ./azuredeploy.json \
585-
--parameters ./azuredeploy-parameters.json
584+
--template-file azuredeploy.json \
585+
--parameters azuredeploy-parameters.json
586586
```
587587

588588
---
@@ -603,7 +603,7 @@ Get-AzStorageBlob | Select-Object -Property *
603603

604604
# [Azure CLI](#tab/azure-cli)
605605

606-
```azurecli-interactive
606+
```azurecli
607607
az storage blob list \
608608
--container-name applicationdefinitions \
609609
--account-name definitionstorage \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
href: publish-service-catalog-app.md
1212
- name: Deploy service catalog app
1313
href: deploy-service-catalog-quickstart.md
14+
- name: Bring your own storage
15+
href: publish-service-catalog-bring-your-own-storage.md
1416
- name: Tutorials
1517
items:
1618
- name: Create managed application with custom provider

0 commit comments

Comments
 (0)