@@ -5,7 +5,7 @@ author: karlerickson
5
5
ms.author : karler
6
6
ms.service : spring-cloud
7
7
ms.topic : how-to
8
- ms.date : 06/08 /2022
8
+ ms.date : 06/20 /2022
9
9
ms.custom : devx-track-java, devx-track-azurecli, event-tier1-build-2022
10
10
zone_pivot_groups : spring-cloud-tier-selection
11
11
---
@@ -351,16 +351,17 @@ The following sections describe how to automate your deployment using Bicep, Azu
351
351
To deploy using a Bicep file, copy the following content into a * main.bicep* file. For more information, see [ Microsoft.AppPlatform Spring/monitoringSettings] ( /azure/templates/microsoft.appplatform/spring/monitoringsettings ) .
352
352
353
353
``` bicep
354
+ param springName string
354
355
param location string = resourceGroup().location
355
356
356
- resource customize_this 'Microsoft.AppPlatform/Spring@2020-07-01' = {
357
- name: 'customize this'
357
+ resource spring 'Microsoft.AppPlatform/Spring@2020-07-01' = {
358
+ name: springName
358
359
location: location
359
360
properties: {}
360
361
}
361
362
362
- resource customize_this_default 'Microsoft.AppPlatform/Spring/monitoringSettings@2020-11-01-preview' = {
363
- parent: customize_this
363
+ resource monitorSetting 'Microsoft.AppPlatform/Spring/monitoringSettings@2020-11-01-preview' = {
364
+ parent: spring
364
365
name: 'default'
365
366
properties: {
366
367
appInsightsInstrumentationKey: '00000000-0000-0000-0000-000000000000'
@@ -378,6 +379,9 @@ To deploy using an ARM template, copy the following content into an *azuredeploy
378
379
"$schema" : " https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" ,
379
380
"contentVersion" : " 1.0.0.0" ,
380
381
"parameters" : {
382
+ "springName" : {
383
+ "type" : " string"
384
+ },
381
385
"location" : {
382
386
"type" : " string" ,
383
387
"defaultValue" : " [resourceGroup().location]"
@@ -387,25 +391,24 @@ To deploy using an ARM template, copy the following content into an *azuredeploy
387
391
{
388
392
"type" : " Microsoft.AppPlatform/Spring" ,
389
393
"apiVersion" : " 2020-07-01" ,
390
- "name" : " customize this " ,
394
+ "name" : " [parameters('springName')] " ,
391
395
"location" : " [parameters('location')]" ,
392
396
"properties" : {}
393
397
},
394
398
{
395
399
"type" : " Microsoft.AppPlatform/Spring/monitoringSettings" ,
396
400
"apiVersion" : " 2020-11-01-preview" ,
397
- "name" : " [format('{0}/{1}', 'customize this' , 'default')]" ,
401
+ "name" : " [format('{0}/{1}', parameters('springName') , 'default')]" ,
398
402
"properties" : {
399
403
"appInsightsInstrumentationKey" : " 00000000-0000-0000-0000-000000000000" ,
400
404
"appInsightsSamplingRate" : 88
401
405
},
402
406
"dependsOn" : [
403
- " [resourceId('Microsoft.AppPlatform/Spring', 'customize this' )]"
407
+ " [resourceId('Microsoft.AppPlatform/Spring', parameters('springName') )]"
404
408
]
405
409
}
406
410
]
407
411
}
408
-
409
412
```
410
413
411
414
### Terraform
0 commit comments