-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Snippet] Added Route Server snippet (#3976)
* Added route server snippet
- Loading branch information
1 parent
5856f2a
commit c613f8c
Showing
4 changed files
with
76 additions
and
0 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
6 changes: 6 additions & 0 deletions
6
...icep.LangServer.IntegrationTests/Completions/SnippetTemplates/res-route-server/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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// $1 = 'name' | ||
// $2 = ipConfiguration | ||
// $3 = 'name' | ||
// $4 = 'subnet.id' | ||
|
||
// Insert snippet here |
23 changes: 23 additions & 0 deletions
23
...Server.IntegrationTests/Completions/SnippetTemplates/res-route-server/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,23 @@ | ||
// $1 = 'name' | ||
// $2 = ipConfiguration | ||
// $3 = 'name' | ||
// $4 = 'subnet.id' | ||
|
||
resource virtualHub 'Microsoft.Network/virtualHubs@2021-02-01' = { | ||
name: 'name' | ||
location: resourceGroup().location | ||
properties: { | ||
sku: 'Standard' | ||
} | ||
} | ||
|
||
resource ipConfiguration 'Microsoft.Network/virtualHubs/ipConfigurations@2021-02-01' = { | ||
name: 'name' | ||
parent: virtualHub | ||
properties: { | ||
subnet: { | ||
id: 'subnet.id' | ||
} | ||
} | ||
} | ||
// Insert snippet here |
18 changes: 18 additions & 0 deletions
18
src/Bicep.LangServer/Snippets/Templates/res-route-server.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 @@ | ||
// Route Server | ||
resource virtualHub 'Microsoft.Network/virtualHubs@2021-02-01' = { | ||
name: /*${1:'name'}*/'name' | ||
location: resourceGroup().location | ||
properties: { | ||
sku: 'Standard' | ||
} | ||
} | ||
|
||
resource /*${2:ipConfiguration}*/ipConfiguration 'Microsoft.Network/virtualHubs/ipConfigurations@2021-02-01' = { | ||
name: /*${3:'name'}*/'name' | ||
parent: virtualHub | ||
properties: { | ||
subnet: { | ||
id: /*${4:'subnet.id'}*/'subnet.id' | ||
} | ||
} | ||
} |