Skip to content

Commit

Permalink
Removed referenced templates (#3837)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsubra authored Jul 30, 2021
1 parent a7d642e commit 86843ce
Show file tree
Hide file tree
Showing 25 changed files with 163 additions and 298 deletions.
32 changes: 16 additions & 16 deletions src/Bicep.Core.Samples/Files/Completions/declarations.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
// $1 = serverfarms
// $1 = azureFunction
// $2 = 'name'
// $3 = insightsComponents
// $4 = 'name'
// $5 = azureFunction
// $6 = 'name'
// $7 = storageAccountName1
// $8 = 'storageAccountID1'
// $9 = storageAccountName2
// $10 = 'storageAccountID2'
// $11 = storageAccountName3
// $12 = 'storageAccountID3'
// $13 = 'name'
// $14 = dotnet
// $3 = 'serverfarms.id'
// $4 = storageAccountName1
// $5 = 'storageAccountID1'
// $6 = storageAccountName2
// $7 = 'storageAccountID2'
// $8 = storageAccountName3
// $9 = 'storageAccountID3'
// $10 = 'name'
// $11 = 'insightsComponents'
// $12 = dotnet


// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
// $1 = serverfarms
// $1 = azureFunction
// $2 = 'name'
// $3 = insightsComponents
// $4 = 'name'
// $5 = azureFunction
// $6 = 'name'
// $7 = storageAccountName1
// $8 = 'storageAccountID1'
// $9 = storageAccountName2
// $10 = 'storageAccountID2'
// $11 = storageAccountName3
// $12 = 'storageAccountID3'
// $13 = 'name'
// $14 = dotnet
// $3 = 'serverfarms.id'
// $4 = storageAccountName1
// $5 = 'storageAccountID1'
// $6 = storageAccountName2
// $7 = 'storageAccountID2'
// $8 = storageAccountName3
// $9 = 'storageAccountID3'
// $10 = 'name'
// $11 = 'insightsComponents'
// $12 = dotnet


resource serverfarms 'Microsoft.Web/serverfarms@2021-01-15' existing = {
name: 'name'
}

resource insightsComponents 'Microsoft.Insights/components@2020-02-02' existing = {
name: 'name'
}

resource azureFunction 'Microsoft.Web/sites@2020-12-01' = {
name: 'name'
location: resourceGroup().location
kind: 'functionapp'
properties: {
serverFarmId: serverfarms.id
serverFarmId: 'serverfarms.id'
siteConfig: {
appSettings: [
{
Expand All @@ -52,7 +42,7 @@ resource azureFunction 'Microsoft.Web/sites@2020-12-01' = {
}
{
name: 'APPINSIGHTS_INSTRUMENTATIONKEY'
value: reference(insightsComponents.id, '2015-05-01').InstrumentationKey
value: reference('insightsComponents', '2015-05-01').InstrumentationKey
}
{
name: 'FUNCTIONS_WORKER_RUNTIME'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// $1 = storageAccount
// $1 = mediaServices
// $2 = 'name'
// $3 = mediaServices
// $4 = 'name'
// $5 = Primary
// $3 = 'storageAccount.id'
// $4 = Primary

// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
// $1 = storageAccount
// $1 = mediaServices
// $2 = 'name'
// $3 = mediaServices
// $4 = 'name'
// $5 = Primary
// $3 = 'storageAccount.id'
// $4 = Primary

resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' existing = {
name: 'name'
}

resource mediaServices 'Microsoft.Media/mediaServices@2020-05-01' = {
name: 'name'
location: resourceGroup().location
properties: {
storageAccounts: [
{
id: storageAccount.id
id: 'storageAccount.id'
type: 'Primary'
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// $1 = 'name'
// $2 = subnet
// $1 = networkInterface
// $2 = 'name'
// $3 = 'name'
// $4 = networkInterface
// $5 = 'name'
// $6 = 'name'
// $7 = Dynamic
// $4 = Dynamic
// $5 = 'subnet.id'

// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
// $1 = 'name'
// $2 = subnet
// $1 = networkInterface
// $2 = 'name'
// $3 = 'name'
// $4 = networkInterface
// $5 = 'name'
// $6 = 'name'
// $7 = Dynamic
// $4 = Dynamic
// $5 = 'subnet.id'

resource vnet 'Microsoft.Network/virtualNetworks@2021-02-01' existing = {
name: 'name'
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2021-02-01' existing = {
parent: vnet
name: 'name'
}

resource networkInterface 'Microsoft.Network/networkInterfaces@2020-11-01' = {
name: 'name'
location: resourceGroup().location
Expand All @@ -25,7 +14,7 @@ resource networkInterface 'Microsoft.Network/networkInterfaces@2020-11-01' = {
properties: {
privateIPAllocationMethod: 'Dynamic'
subnet: {
id: subnet.id
id: 'subnet.id'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// $1 = virtualNetworks
// $2 = 'name'
// $3 = peering
// $4 = 'virtualNetwork/name'
// $1 = peering
// $2 = 'virtualNetwork/name'
// $3 = true
// $4 = true
// $5 = true
// $6 = true
// $7 = true
// $8 = true
// $7 = 'virtualNetworks.id'

// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
// $1 = virtualNetworks
// $2 = 'name'
// $3 = peering
// $4 = 'virtualNetwork/name'
// $1 = peering
// $2 = 'virtualNetwork/name'
// $3 = true
// $4 = true
// $5 = true
// $6 = true
// $7 = true
// $8 = true
// $7 = 'virtualNetworks.id'

resource virtualNetworks 'Microsoft.Network/virtualNetworks@2021-02-01' existing = {
name: 'name'
}

resource peering 'Microsoft.Network/virtualNetworks/virtualNetworkPeerings@2020-07-01' = {
name: 'virtualNetwork/name'
properties: {
Expand All @@ -19,7 +14,7 @@ resource peering 'Microsoft.Network/virtualNetworks/virtualNetworkPeerings@2020-
allowGatewayTransit: true
useRemoteGateways: true
remoteVirtualNetwork: {
id: virtualNetworks.id
id: 'virtualNetworks.id'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// $1 = virtualNetworkGateways
// $1 = vpnVnetConnection
// $2 = 'name'
// $3 = localNetworkGateways
// $4 = 'name'
// $5 = vpnVnetConnection
// $6 = 'name'
// $7 = IPsec
// $8 = 0
// $9 = 'sharedkey'
// $3 = 'virtualNetworkGateways.id'
// $4 = 'localNetworkGateways.id'
// $5 = IPsec
// $6 = 0
// $7 = 'sharedkey'

// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
// $1 = virtualNetworkGateways
// $1 = vpnVnetConnection
// $2 = 'name'
// $3 = localNetworkGateways
// $4 = 'name'
// $5 = vpnVnetConnection
// $6 = 'name'
// $7 = IPsec
// $8 = 0
// $9 = 'sharedkey'
// $3 = 'virtualNetworkGateways.id'
// $4 = 'localNetworkGateways.id'
// $5 = IPsec
// $6 = 0
// $7 = 'sharedkey'

resource virtualNetworkGateways 'Microsoft.Network/virtualNetworkGateways@2021-02-01' existing = {
name: 'name'
}

resource localNetworkGateways 'Microsoft.Network/localNetworkGateways@2021-02-01' existing = {
name: 'name'
}

resource vpnVnetConnection 'Microsoft.Network/connections@2020-11-01' = {
name: 'name'
location: resourceGroup().location
properties: {
virtualNetworkGateway1: {
id: virtualNetworkGateways.id
id: 'virtualNetworkGateways.id'
properties:{}
}
localNetworkGateway2: {
id: localNetworkGateways.id
id: 'localNetworkGateways.id'
properties:{}
}
connectionType: 'IPsec'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
// $1 = 'name'
// $2 = subnet
// $1 = virtualNetworkGateway
// $2 = 'name'
// $3 = 'name'
// $4 = publicIPAdresses
// $5 = 'name'
// $6 = virtualNetworkGateway
// $7 = 'name'
// $8 = 'name'
// $9 = Basic
// $10 = Basic
// $11 = Vpn
// $12 = PolicyBased
// $13 = true
// $4 = 'subnet.id'
// $5 = 'publicIPAdresses.id'
// $6 = Basic
// $7 = Basic
// $8 = Vpn
// $9 = PolicyBased
// $10 = true

// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
// $1 = 'name'
// $2 = subnet
// $1 = virtualNetworkGateway
// $2 = 'name'
// $3 = 'name'
// $4 = publicIPAdresses
// $5 = 'name'
// $6 = virtualNetworkGateway
// $7 = 'name'
// $8 = 'name'
// $9 = Basic
// $10 = Basic
// $11 = Vpn
// $12 = PolicyBased
// $13 = true
// $4 = 'subnet.id'
// $5 = 'publicIPAdresses.id'
// $6 = Basic
// $7 = Basic
// $8 = Vpn
// $9 = PolicyBased
// $10 = true

resource vnet 'Microsoft.Network/virtualNetworks@2021-02-01' existing = {
name: 'name'
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2021-02-01' existing = {
parent: vnet
name: 'name'
}

resource publicIPAdresses 'Microsoft.Network/publicIPAddresses@2021-02-01' existing = {
name: 'name'
}

resource virtualNetworkGateway 'Microsoft.Network/virtualNetworkGateways@2020-11-01' = {
name: 'name'
location: resourceGroup().location
Expand All @@ -35,10 +19,10 @@ resource virtualNetworkGateway 'Microsoft.Network/virtualNetworkGateways@2020-11
properties: {
privateIPAllocationMethod: 'Dynamic'
subnet: {
id: subnet.id
id: 'subnet.id'
}
publicIPAddress: {
id: publicIPAdresses.id
id: 'publicIPAdresses.id'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// $1 = webServerFarms
// $1 = webApplication
// $2 = 'name'
// $3 = webApplication
// $4 = 'name'
// $5 = appServicePlan
// $3 = appServicePlan
// $4 = 'webServerFarms.id'

// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
// $1 = webServerFarms
// $1 = webApplication
// $2 = 'name'
// $3 = webApplication
// $4 = 'name'
// $5 = appServicePlan
// $3 = appServicePlan
// $4 = 'webServerFarms.id'

resource webServerFarms 'Microsoft.Web/serverfarms@2021-01-15' existing = {
name: 'name'
}

resource webApplication 'Microsoft.Web/sites@2018-11-01' = {
name: 'name'
location: resourceGroup().location
tags: {
'hidden-related:${resourceGroup().id}/providers/Microsoft.Web/serverfarms/appServicePlan': 'Resource'
}
properties: {
serverFarmId: webServerFarms.id
serverFarmId: 'webServerFarms.id'
}
}// Insert snippet here
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// $1 = desktopVirtualizationHostPools
// $1 = applicationGroup
// $2 = 'name'
// $3 = applicationGroup
// $4 = 'name'
// $5 = 'friendlyName'
// $6 = 'Desktop'
// $3 = 'friendlyName'
// $4 = 'Desktop'
// $5 = 'desktopVirtualizationHostPools.id'

// Insert snippet here
Loading

0 comments on commit 86843ce

Please sign in to comment.