-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port ARM snippets to bicep - part 2 (#2207)
- Loading branch information
Showing
124 changed files
with
1,217 additions
and
198 deletions.
There are no files selected for viewing
354 changes: 330 additions & 24 deletions
354
src/Bicep.Core.Samples/Files/Completions/declarations.json
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
1 change: 0 additions & 1 deletion
1
src/Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/module/diagnostics.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/module/main.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// $1 = testModule | ||
// $2 = test.bicep | ||
// $2 = 'main.bicep' | ||
// $3 = 'myModule' | ||
|
||
// Insert snippet here |
4 changes: 4 additions & 0 deletions
4
...Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/module/main.combined.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,4 @@ | ||
module testModule 'main.bicep' = { | ||
name: 'myModule' | ||
|
||
} |
1 change: 0 additions & 1 deletion
1
src/Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/output/diagnostics.json
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/output/main.combined.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 @@ | ||
output testOutput int = 1 |
1 change: 0 additions & 1 deletion
1
...egrationTests/Completions/SnippetTemplates/param-defaults-allowed-values/diagnostics.json
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ationTests/Completions/SnippetTemplates/param-defaults-allowed-values/main.combined.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,4 @@ | ||
@allowed([ | ||
1 | ||
]) | ||
param testParam int = 2 |
1 change: 0 additions & 1 deletion
1
....LangServer.IntegrationTests/Completions/SnippetTemplates/param-defaults/diagnostics.json
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ngServer.IntegrationTests/Completions/SnippetTemplates/param-defaults/main.combined.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 @@ | ||
param testParam int = 1 |
1 change: 0 additions & 1 deletion
1
...Server.IntegrationTests/Completions/SnippetTemplates/param-secure-string/diagnostics.json
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...ver.IntegrationTests/Completions/SnippetTemplates/param-secure-string/main.combined.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,2 @@ | ||
@secure() | ||
param testParam string |
1 change: 0 additions & 1 deletion
1
src/Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/param/diagnostics.json
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/param/main.combined.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 @@ | ||
param testParam int |
1 change: 0 additions & 1 deletion
1
...LangServer.IntegrationTests/Completions/SnippetTemplates/res-aks-cluster/diagnostics.json
This file was deleted.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/res-aks-cluster/main.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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
// $1 = aksCluster | ||
// $2 = 1.19.7 | ||
// $3 = testDnsPrefix | ||
// $1 = 'aksCluster' | ||
// $2 = '1.19.7' | ||
// $3 = 'testDnsPrefix' | ||
// $4 = 3 | ||
// $5 = Standard_DS2_v2 | ||
// $6 = testUser | ||
// $7 = testKeyData | ||
// $5 = 'Standard_DS2_v2' | ||
// $6 = 'testUser' | ||
// $7 = 'testKeyData' | ||
|
||
// Insert snippet here |
31 changes: 31 additions & 0 deletions
31
...gServer.IntegrationTests/Completions/SnippetTemplates/res-aks-cluster/main.combined.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,31 @@ | ||
resource aksCluster 'Microsoft.ContainerService/managedClusters@2021-03-01' = { | ||
name: 'aksCluster' | ||
location: resourceGroup().location | ||
identity: { | ||
type: 'SystemAssigned' | ||
} | ||
properties: { | ||
kubernetesVersion: '1.19.7' | ||
dnsPrefix: 'testDnsPrefix' | ||
enableRBAC: true | ||
agentPoolProfiles: [ | ||
{ | ||
name: 'agentpool' | ||
count: 3 | ||
vmSize: 'Standard_DS2_v2' | ||
osType: 'Linux' | ||
mode: 'System' | ||
} | ||
] | ||
linuxProfile: { | ||
adminUsername: 'testUser' | ||
ssh: { | ||
publicKeys: [ | ||
{ | ||
keyData: 'testKeyData' | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...ver.IntegrationTests/Completions/SnippetTemplates/res-app-security-group/diagnostics.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...angServer.IntegrationTests/Completions/SnippetTemplates/res-app-security-group/main.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// $1 = testApplicationSecurityGroup | ||
// $1 = 'testApplicationSecurityGroup' | ||
|
||
// Insert snippet here |
4 changes: 4 additions & 0 deletions
4
....IntegrationTests/Completions/SnippetTemplates/res-app-security-group/main.combined.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,4 @@ | ||
resource applicationSecurityGroup 'Microsoft.Network/applicationSecurityGroups@2019-11-01' = { | ||
name: 'testApplicationSecurityGroup' | ||
location: resourceGroup().location | ||
} |
1 change: 0 additions & 1 deletion
1
...ver.IntegrationTests/Completions/SnippetTemplates/res-automation-account/diagnostics.json
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...angServer.IntegrationTests/Completions/SnippetTemplates/res-automation-account/main.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// $1 = testAutomationAccount | ||
// $2 = Basic | ||
// $1 = 'testAutomationAccount' | ||
// $2 = 'Basic' | ||
|
||
// Insert snippet here |
9 changes: 9 additions & 0 deletions
9
....IntegrationTests/Completions/SnippetTemplates/res-automation-account/main.combined.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,9 @@ | ||
resource automationAccount 'Microsoft.Automation/automationAccounts@2015-10-31' = { | ||
name: 'testAutomationAccount' | ||
location: resourceGroup().location | ||
properties: { | ||
sku: { | ||
name: 'Basic' | ||
} | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...erver.IntegrationTests/Completions/SnippetTemplates/res-availability-set/diagnostics.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
....LangServer.IntegrationTests/Completions/SnippetTemplates/res-availability-set/main.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// $1 = testAvailabilitySet | ||
// $1 = 'testAvailabilitySet' | ||
|
||
// Insert snippet here |
4 changes: 4 additions & 0 deletions
4
...er.IntegrationTests/Completions/SnippetTemplates/res-availability-set/main.combined.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,4 @@ | ||
resource availabilitySet 'Microsoft.Compute/availabilitySets@2019-07-01' = { | ||
name: 'testAvailabilitySet' | ||
location: resourceGroup().location | ||
} |
1 change: 0 additions & 1 deletion
1
...Server.IntegrationTests/Completions/SnippetTemplates/res-container-group/diagnostics.json
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...p.LangServer.IntegrationTests/Completions/SnippetTemplates/res-container-group/main.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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// $1 = testContainerGroup | ||
// $2 = testContainerName | ||
// $3 = testContainerImage | ||
// $1 = 'testContainerGroup' | ||
// $2 = 'testContainerName' | ||
// $3 = 'testContainerImage' | ||
// $4 = 80 | ||
// $5 = 1 | ||
// $6 = 4 | ||
// $7 = Linux | ||
// $8 = TCP | ||
// $7 = 'Linux' | ||
// $8 = 'TCP' | ||
// $9 = 80 | ||
|
||
// Insert snippet here |
35 changes: 35 additions & 0 deletions
35
...ver.IntegrationTests/Completions/SnippetTemplates/res-container-group/main.combined.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,35 @@ | ||
resource containerGroup 'Microsoft.ContainerInstance/containerGroups@2019-12-01' = { | ||
name: 'testContainerGroup' | ||
location: resourceGroup().location | ||
properties: { | ||
containers: [ | ||
{ | ||
name: 'testContainerName' | ||
properties: { | ||
image: 'testContainerImage' | ||
ports: [ | ||
{ | ||
port: 80 | ||
} | ||
] | ||
resources: { | ||
requests: { | ||
cpu: 1 | ||
memoryInGB: 4 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
osType: 'Linux' | ||
ipAddress: { | ||
type: 'Public' | ||
ports: [ | ||
{ | ||
protocol: 'TCP' | ||
port: 80 | ||
} | ||
] | ||
} | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...ver.IntegrationTests/Completions/SnippetTemplates/res-container-registry/diagnostics.json
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...angServer.IntegrationTests/Completions/SnippetTemplates/res-container-registry/main.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// $1 = testContainerRegistry | ||
// $2 = Classic | ||
// $1 = 'testContainerRegistry' | ||
// $2 = 'Classic' | ||
// $3 = true | ||
|
||
// Insert snippet here |
10 changes: 10 additions & 0 deletions
10
....IntegrationTests/Completions/SnippetTemplates/res-container-registry/main.combined.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,10 @@ | ||
resource containerRegistry 'Microsoft.ContainerRegistry/registries@2019-05-01' = { | ||
name: 'testContainerRegistry' | ||
location: resourceGroup().location | ||
sku: { | ||
name: 'Classic' | ||
} | ||
properties: { | ||
adminUserEnabled: true | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
...gServer.IntegrationTests/Completions/SnippetTemplates/res-cosmos-account/diagnostics.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.