| 1 |
targetScope |
| 2 |
resource appServicePlan 'Microsoft.Web/serverfarms@2020-09-01' existing = = if (diagnosticsEnabled) { |
| 3 |
name: logAnalyticsWsName |
| 4 |
} |
| 5 |
module cosmosDb './cosmosdb.bicep' = { |
| 6 |
name: 'cosmosDbDeploy' |
| 7 |
} |
| 8 |
param env string |
| 9 |
var oneNumber = 123 |
| 10 |
output databaseName string = cosmosdbDatabaseName |
| 11 |
for item in cosmosdbAllowedIpAddresses: { |
| 12 |
ipAddressOrRange: item |
| 13 |
} |
| 14 |
if |
| 15 |
null |
| 16 |
|
| 17 |
---------------------------------------------------- |
| 18 |
|
| 19 |
[ |
| 20 |
["keyword", "targetScope"], |
| 21 |
|
| 22 |
["keyword", "resource"], |
| 23 |
" appServicePlan ", |
| 24 |
["string", "'Microsoft.Web/serverfarms@2020-09-01'"], |
| 25 |
["keyword", "existing"], |
| 26 |
["operator", "="], |
| 27 |
["operator", "="], |
| 28 |
["keyword", "if"], |
| 29 |
["punctuation", "("], |
| 30 |
"diagnosticsEnabled", |
| 31 |
["punctuation", ")"], |
| 32 |
["punctuation", "{"], |
| 33 |
|
| 34 |
["property", "name"], |
| 35 |
["operator", ":"], |
| 36 |
" logAnalyticsWsName\r\n", |
| 37 |
|
| 38 |
["punctuation", "}"], |
| 39 |
|
| 40 |
["keyword", "module"], |
| 41 |
" cosmosDb ", |
| 42 |
["string", "'./cosmosdb.bicep'"], |
| 43 |
["operator", "="], |
| 44 |
["punctuation", "{"], |
| 45 |
|
| 46 |
["property", "name"], |
| 47 |
["operator", ":"], |
| 48 |
["string", "'cosmosDbDeploy'"], |
| 49 |
|
| 50 |
["punctuation", "}"], |
| 51 |
|
| 52 |
["keyword", "param"], |
| 53 |
" env ", |
| 54 |
["datatype", "string"], |
| 55 |
|
| 56 |
["keyword", "var"], |
| 57 |
" oneNumber ", |
| 58 |
["operator", "="], |
| 59 |
["number", "123"], |
| 60 |
|
| 61 |
["keyword", "output"], |
| 62 |
" databaseName ", |
| 63 |
["datatype", "string"], |
| 64 |
["operator", "="], |
| 65 |
" cosmosdbDatabaseName\r\n", |
| 66 |
|
| 67 |
["keyword", "for"], |
| 68 |
" item ", |
| 69 |
["keyword", "in"], |
| 70 |
" cosmosdbAllowedIpAddresses", |
| 71 |
["operator", ":"], |
| 72 |
["punctuation", "{"], |
| 73 |
|
| 74 |
["property", "ipAddressOrRange"], |
| 75 |
["operator", ":"], |
| 76 |
" item\r\n", |
| 77 |
|
| 78 |
["punctuation", "}"], |
| 79 |
|
| 80 |
["keyword", "if"], |
| 81 |
|
| 82 |
["keyword", "null"] |
| 83 |
] |
| 84 |
|
| 85 |
---------------------------------------------------- |
| 86 |
|
| 87 |
Checks for all keywords. |