-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for bicep files in AzureResourceManagerTemplateDeployme…
…ntV3 (#15788) * Added support for bicep files * Added tests and updated documentation * Added CSM.bicep file * Update Tasks/AzureResourceManagerTemplateDeploymentV3/task.json Co-authored-by: John Downs <[email protected]> * Update Tasks/AzureResourceManagerTemplateDeploymentV3/task.json Co-authored-by: John Downs <[email protected]> * Update Tasks/AzureResourceManagerTemplateDeploymentV3/task.json Co-authored-by: John Downs <[email protected]> * Update Tasks/AzureResourceManagerTemplateDeploymentV3/README.md Co-authored-by: John Downs <[email protected]> * Updated createOrUpdate.ts * minor changes * Testing * Removed parameter test * Version issue resolved * Updated bicepBuild * Added more tests * Added negative test * Testing output * Resolved test issue * json to bicep bug * bicep build fail test Co-authored-by: John Downs <[email protected]> Co-authored-by: Apple <[email protected]>
- Loading branch information
1 parent
eef1507
commit 4d8419f
Showing
11 changed files
with
209 additions
and
9 deletions.
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
18 changes: 18 additions & 0 deletions
18
Tasks/AzureResourceManagerTemplateDeploymentV3/Tests/CSMwithBicep.bicep
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,18 @@ | ||
param location string = 'eastasia' | ||
|
||
var storageAccountName_var = 'deepak2121' | ||
var storageAccountType = 'Premium_LRS' | ||
|
||
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-01-01' = { | ||
name: toLower(take(storageAccountName_var, 24)) | ||
location: location | ||
sku: { | ||
name: storageAccountType | ||
} | ||
kind: 'StorageV2' | ||
} | ||
|
||
output storageAccount_Name string = storageAccount.name | ||
output storageAccount_Location string = storageAccount.location | ||
output storageAccount_SKUName string = storageAccount.sku.name | ||
output storageAccount_Kind string = storageAccount.kind |
20 changes: 20 additions & 0 deletions
20
Tasks/AzureResourceManagerTemplateDeploymentV3/Tests/CSMwithBicepWithError.bicep
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,20 @@ | ||
param location string = 'eastasia' | ||
|
||
var storageAccountName_var = 'deepak2121' | ||
var storageAccountType = 'Premium_LRS' | ||
|
||
randomstring | ||
|
||
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-01-01' = { | ||
name: toLower(take(storageAccountName_var, 24)) | ||
location: location | ||
sku: { | ||
name: storageAccountType | ||
} | ||
kind: 'StorageV2' | ||
} | ||
|
||
output storageAccount_Name string = storageAccount.name | ||
output storageAccount_Location string = storageAccount.location | ||
output storageAccount_SKUName string = storageAccount.sku.name | ||
output storageAccount_Kind string = storageAccount.kind |
19 changes: 19 additions & 0 deletions
19
Tasks/AzureResourceManagerTemplateDeploymentV3/Tests/CSMwithBicepWithWarning.bicep
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,19 @@ | ||
param location string = 'eastasia' | ||
param unusedParam string = 'test' | ||
|
||
var storageAccountName_var = 'deepak2121' | ||
var storageAccountType = 'Premium_LRS' | ||
|
||
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-01-01' = { | ||
name: toLower(take(storageAccountName_var, 24)) | ||
location: location | ||
sku: { | ||
name: storageAccountType | ||
} | ||
kind: 'StorageV2' | ||
} | ||
|
||
output storageAccount_Name string = storageAccount.name | ||
output storageAccount_Location string = storageAccount.location | ||
output storageAccount_SKUName string = storageAccount.sku.name | ||
output storageAccount_Kind string = storageAccount.kind |
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
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