-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
01256b4
commit 23a114a
Showing
7 changed files
with
139 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
module child 'Tests.Bicep.27.child.bicep' = { | ||
name: 'child' | ||
params: {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
param minTLSVersion string? | ||
// param corsRules corsRule | ||
|
||
// type corsRule = { | ||
// allowedHeaders: string[] | ||
// allowedMethods: string[] | ||
// allowedOrigins: string[] | ||
// exposedHeaders: string[] | ||
// maxAgeInSeconds: int | ||
// }[]? | ||
|
||
resource storage 'Microsoft.Storage/storageAccounts@2023-01-01' = { | ||
name: 'test' | ||
#disable-next-line no-loc-expr-outside-params | ||
location: resourceGroup().location | ||
sku: { | ||
name: 'Standard_LRS' | ||
} | ||
kind: 'StorageV2' | ||
properties: { | ||
minimumTlsVersion: minTLSVersion ?? 'TLS1_2' | ||
} | ||
|
||
// resource blob 'blobServices' = { | ||
// name: 'default' | ||
// properties: { | ||
// cors: { | ||
// corsRules: corsRules ?? [] | ||
// } | ||
// } | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.22.6.54827", | ||
"templateHash": "3111791179159915120" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2022-09-01", | ||
"name": "child", | ||
"properties": { | ||
"expressionEvaluationOptions": { | ||
"scope": "inner" | ||
}, | ||
"mode": "Incremental", | ||
"parameters": {}, | ||
"template": { | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"languageVersion": "2.0", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.22.6.54827", | ||
"templateHash": "965836287794218595" | ||
} | ||
}, | ||
"parameters": { | ||
"minTLSVersion": { | ||
"type": "string", | ||
"nullable": true | ||
} | ||
}, | ||
"resources": { | ||
"storage": { | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"apiVersion": "2023-01-01", | ||
"name": "test", | ||
"location": "[resourceGroup().location]", | ||
"sku": { | ||
"name": "Standard_LRS" | ||
}, | ||
"kind": "StorageV2", | ||
"properties": { | ||
"minimumTlsVersion": "[coalesce(parameters('minTLSVersion'), 'TLS1_2')]" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |