-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RG().location/et al => location param in snippets (#5226)
- Loading branch information
1 parent
912c33f
commit 7b0ed6f
Showing
233 changed files
with
3,016 additions
and
2,571 deletions.
There are no files selected for viewing
296 changes: 148 additions & 148 deletions
296
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
14 changes: 8 additions & 6 deletions
14
...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,12 +1,14 @@ | ||
// $1 = aksCluster | ||
// $2 = 'name' | ||
// $3 = 1.19.7 | ||
// $4 = 'dnsPrefix' | ||
// $5 = 3 | ||
// $6 = 'Standard_DS2_v2' | ||
// $7 = adminUsername | ||
// $8 = 'REQUIRED' | ||
// $3 = location | ||
// $4 = 1.19.7 | ||
// $5 = 'dnsPrefix' | ||
// $6 = 3 | ||
// $7 = 'Standard_DS2_v2' | ||
// $8 = adminUsername | ||
// $9 = 'REQUIRED' | ||
|
||
param adminUsername string | ||
param location string | ||
|
||
// Insert snippet here |
16 changes: 9 additions & 7 deletions
16
...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
13 changes: 8 additions & 5 deletions
13
...rver.IntegrationTests/Completions/SnippetTemplates/res-api-management-instance/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,12 @@ | ||
// $1 = apiManagementInstance | ||
// $2 = 'name' | ||
// $3 = 1 | ||
// $4 = 'Developer' | ||
// $5 = 'None' | ||
// $6 = 'publisherEmail@contoso.com' | ||
// $7 = 'publisherName' | ||
// $3 = location | ||
// $4 = 1 | ||
// $5 = 'Developer' | ||
// $6 = 'None' | ||
// $7 = 'publisherEmail@contoso.com' | ||
// $8 = 'publisherName' | ||
|
||
param location string | ||
|
||
// Insert snippet here |
39 changes: 21 additions & 18 deletions
39
...grationTests/Completions/SnippetTemplates/res-api-management-instance/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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
// $1 = apiManagementInstance | ||
// $2 = 'name' | ||
// $3 = 1 | ||
// $4 = 'Developer' | ||
// $5 = 'None' | ||
// $6 = 'publisherEmail@contoso.com' | ||
// $7 = 'publisherName' | ||
// $3 = location | ||
// $4 = 1 | ||
// $5 = 'Developer' | ||
// $6 = 'None' | ||
// $7 = 'publisherEmail@contoso.com' | ||
// $8 = 'publisherName' | ||
|
||
resource apiManagementInstance 'Microsoft.ApiManagement/service@2020-12-01' = { | ||
name: 'name' | ||
location: resourceGroup().location | ||
sku:{ | ||
capacity: 1 | ||
name: 'Developer' | ||
} | ||
properties:{ | ||
virtualNetworkType: 'None' | ||
publisherEmail: 'publisherEmail@contoso.com' | ||
publisherName: 'publisherName' | ||
} | ||
} | ||
param location string | ||
|
||
resource apiManagementInstance 'Microsoft.ApiManagement/service@2020-12-01' = { | ||
name: 'name' | ||
location: location | ||
sku:{ | ||
capacity: 1 | ||
name: 'Developer' | ||
} | ||
properties:{ | ||
virtualNetworkType: 'None' | ||
publisherEmail: 'publisherEmail@contoso.com' | ||
publisherName: 'publisherName' | ||
} | ||
} | ||
// Insert snippet here | ||
|
17 changes: 10 additions & 7 deletions
17
...p.LangServer.IntegrationTests/Completions/SnippetTemplates/res-app-gateway-waf/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,14 @@ | ||
// $1 = applicationGatewayFirewall | ||
// $2 = 'name' | ||
// $3 = true | ||
// $4 = 128 | ||
// $5 = 100 | ||
// $6 = Enabled | ||
// $7 = Detection | ||
// $8 = 'ruleSetType' | ||
// $9 = 'ruleSetVersion' | ||
// $3 = location | ||
// $4 = true | ||
// $5 = 128 | ||
// $6 = 100 | ||
// $7 = Enabled | ||
// $8 = Detection | ||
// $9 = 'ruleSetType' | ||
// $10 = 'ruleSetVersion' | ||
|
||
param location string | ||
|
||
// Insert snippet here |
59 changes: 31 additions & 28 deletions
59
...ver.IntegrationTests/Completions/SnippetTemplates/res-app-gateway-waf/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 |
---|---|---|
@@ -1,33 +1,36 @@ | ||
// $1 = applicationGatewayFirewall | ||
// $2 = 'name' | ||
// $3 = true | ||
// $4 = 128 | ||
// $5 = 100 | ||
// $6 = Enabled | ||
// $7 = Detection | ||
// $8 = 'ruleSetType' | ||
// $9 = 'ruleSetVersion' | ||
// $3 = location | ||
// $4 = true | ||
// $5 = 128 | ||
// $6 = 100 | ||
// $7 = Enabled | ||
// $8 = Detection | ||
// $9 = 'ruleSetType' | ||
// $10 = 'ruleSetVersion' | ||
|
||
resource applicationGatewayFirewall 'Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies@2020-11-01' = { | ||
name: 'name' | ||
location: resourceGroup().location | ||
properties: { | ||
policySettings: { | ||
requestBodyCheck: true | ||
maxRequestBodySizeInKb: 128 | ||
fileUploadLimitInMb: 100 | ||
state: 'Enabled' | ||
mode: 'Detection' | ||
} | ||
managedRules: { | ||
managedRuleSets: [ | ||
{ | ||
ruleSetType: 'ruleSetType' | ||
ruleSetVersion: 'ruleSetVersion' | ||
} | ||
] | ||
} | ||
} | ||
} | ||
param location string | ||
|
||
resource applicationGatewayFirewall 'Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies@2020-11-01' = { | ||
name: 'name' | ||
location: location | ||
properties: { | ||
policySettings: { | ||
requestBodyCheck: true | ||
maxRequestBodySizeInKb: 128 | ||
fileUploadLimitInMb: 100 | ||
state: 'Enabled' | ||
mode: 'Detection' | ||
} | ||
managedRules: { | ||
managedRuleSets: [ | ||
{ | ||
ruleSetType: 'ruleSetType' | ||
ruleSetVersion: 'ruleSetVersion' | ||
} | ||
] | ||
} | ||
} | ||
} | ||
// Insert snippet here | ||
|
39 changes: 21 additions & 18 deletions
39
...Bicep.LangServer.IntegrationTests/Completions/SnippetTemplates/res-app-gateway/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,26 +1,29 @@ | ||
// $1 = applicationGateway | ||
// $2 = 'name' | ||
// $3 = Standard_Small | ||
// $4 = Standard | ||
// $5 = 2 | ||
// $6 = 'name' | ||
// $7 = 'id' | ||
// $8 = 'name' | ||
// $9 = 'id' | ||
// $10 = 'name' | ||
// $11 = 80 | ||
// $12 = 'name' | ||
// $3 = location | ||
// $4 = Standard_Small | ||
// $5 = Standard | ||
// $6 = 2 | ||
// $7 = 'name' | ||
// $8 = 'id' | ||
// $9 = 'name' | ||
// $10 = 'id' | ||
// $11 = 'name' | ||
// $12 = 80 | ||
// $13 = 'name' | ||
// $14 = 80 | ||
// $15 = Http | ||
// $16 = 'name' | ||
// $17 = 'id' | ||
// $14 = 'name' | ||
// $15 = 80 | ||
// $16 = Http | ||
// $17 = 'name' | ||
// $18 = 'id' | ||
// $19 = Http | ||
// $20 = 'name' | ||
// $21 = Basic | ||
// $22 = 'id' | ||
// $19 = 'id' | ||
// $20 = Http | ||
// $21 = 'name' | ||
// $22 = Basic | ||
// $23 = 'id' | ||
// $24 = 'id' | ||
// $25 = 'id' | ||
|
||
param location string | ||
|
||
// Insert snippet here |
Oops, something went wrong.