-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chris Kruining
committed
Nov 25, 2024
1 parent
7f129d3
commit 0a83191
Showing
31 changed files
with
140 additions
and
153 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
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
4 changes: 2 additions & 2 deletions
4
src/base/app-configuration.bicep → ...app-configuration/app-configuration.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
6 changes: 3 additions & 3 deletions
6
src/base/container-app.bicep → src/base/app/container-app.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
4 changes: 2 additions & 2 deletions
4
src/base/container-app/environment.bicep → src/base/app/container-app/environment.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
4 changes: 2 additions & 2 deletions
4
src/base/container-registry.bicep → ...ntainer-registry/container-registry.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
4 changes: 2 additions & 2 deletions
4
src/base/key-vault.bicep → src/base/key-vault/key-vault.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
4 changes: 2 additions & 2 deletions
4
src/base/log-analytics.bicep → .../operational-insights/log-analytics.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
4 changes: 2 additions & 2 deletions
4
src/base/resource-group.bicep → src/base/resources/resource-group.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 @@ | ||
import { Context, Options } from '../types.bicep' | ||
import { create_resource } from '../internal/resource.bicep' | ||
import { Context, Options } from '../../types.bicep' | ||
import { create_resource } from '../../internal/resource.bicep' | ||
|
||
@export() | ||
func resource_group(context Context, options Options) object => create_resource(context, 'resourceGroup', options) |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/base/storage-account.bicep → src/base/storage/storage-account.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
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
4 changes: 2 additions & 2 deletions
4
src/base/static-web-app.bicep → src/base/web/static-web-app.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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as base from '../../base/app-configuration/app-configuration.bicep' | ||
import { Context, Options } from '../../types.bicep' | ||
|
||
@export() | ||
func app_configuration(context Context, options Options) object => base.app_configuration(context, 'Standard', options) | ||
|
||
@export() | ||
func with_free_sku() object => base.with_sku('Free') |
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
src/recommended/container-app.bicep → src/recommended/app/container-app.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
4 changes: 2 additions & 2 deletions
4
src/recommended/container-registry.bicep → ...ntainer-registry/container-registry.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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as base from '../../base/key-vault/key-vault.bicep' | ||
import { Context, Options } from '../../types.bicep' | ||
|
||
@description('Key vault') | ||
@export() | ||
func key_vault(context Context, options Options) object => base.key_vault(context, 'standard', options) | ||
|
||
// Sku | ||
@export() | ||
func with_premium_sku() object => { | ||
properties: { | ||
sku: { | ||
family: 'premium' | ||
} | ||
} | ||
} | ||
|
||
// Soft delete | ||
@export() | ||
func with_soft_delete(context Context, enable bool) object => base.with_soft_delete(enable) |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Context, Options } from '../../types.bicep' | ||
import * as base from '../../base/operational-insights/log-analytics.bicep' | ||
|
||
@export() | ||
func log_analytics(context Context, options Options) object => base.log_analytics(context, 'PerGB2018', options) |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Context, Options } from '../../types.bicep' | ||
import * as base from '../../base/resources/resource-group.bicep' | ||
|
||
@export() | ||
func resource_group(context Context, options Options) object => base.resource_group(context, options) |
File renamed without changes.
This file was deleted.
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
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,46 @@ | ||
import * as base from '../../base/web/app-service.bicep' | ||
import { Context, Options } from '../../types.bicep' | ||
|
||
@export() | ||
func app_service(context Context, appServicePlan string, vnetName string, appInsights string, options Options) object => | ||
base.app_service( | ||
context, | ||
union( | ||
[ | ||
base.with_site_config(appServicePlan, vnetName, true, true, '1.2', 'Deny', false) | ||
base.with_app_settings([ | ||
{ | ||
name: 'ASPNETCORE_ENVIRONMENT' | ||
value: context.environment | ||
} | ||
{ | ||
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING' | ||
value: appInsights | ||
} | ||
{ | ||
name: 'ApplicationInsightsAgent_EXTENSION_VERSION' | ||
value: '~2' | ||
} | ||
]) | ||
base.with_ip_restrictions([ | ||
{ | ||
name: 'Allow backend subnet ${context.environment}' | ||
vnetSubnetResourceId: vnetName | ||
priority: 110 | ||
action: 'Allow' | ||
} | ||
]) | ||
], | ||
options | ||
) | ||
) | ||
|
||
@export() | ||
func with_always_on(alwaysOn bool) object => base.with_always_on(alwaysOn) | ||
|
||
@export() | ||
func with_app_settings(appSettings base.AppSetting[]) object => base.with_app_settings(appSettings) | ||
|
||
@export() | ||
func with_connection_strings(connectionStrings base.ConnStringInfo[]) object => | ||
base.with_connection_strings(connectionStrings) |
Oops, something went wrong.