-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
130 additions
and
35 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
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,50 @@ | ||
/* | ||
this is a multi | ||
line comment | ||
*/ | ||
param rgLocation string = resourceGroup().location | ||
param storageNames array = [ | ||
'contoso' | ||
'fabrikam' | ||
] | ||
|
||
// this is a comment | ||
resource createStorages 'Microsoft.Storage/storageAccounts@2022-09-01' = [for name in storageNames: { | ||
name: '${name}str${uniqueString(resourceGroup().id)}' | ||
location: rgLocation | ||
sku: { | ||
name: 'Standard_LRS' | ||
} | ||
kind: '''StorageV2''' | ||
}] | ||
|
||
param storageAccountName string | ||
param location string = resourceGroup().location | ||
|
||
@allowed([ | ||
'new' | ||
'existing' | ||
]) | ||
param newOrExisting string = 'new' | ||
|
||
resource saNew 'Microsoft.Storage/storageAccounts@2022-09-01' = if (newOrExisting == 'new') { | ||
name: storageAccountName | ||
location: location | ||
sku: { | ||
name: 'Standard_LRS' | ||
} | ||
kind: 'StorageV2' | ||
} | ||
|
||
resource saExisting 'Microsoft.Storage/storageAccounts@2022-09-01' existing = if (newOrExisting == 'existing') { | ||
name: storageAccountName | ||
} | ||
|
||
output storageAccountId string = ((newOrExisting == 'new') ? saNew.id : saExisting.id) | ||
|
||
param deployZone bool | ||
|
||
resource dnsZone 'Microsoft.Network/dnszones@2018-05-01' = if (deployZone) { | ||
name: 'myZone' | ||
location: 'global' | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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