Skip to content

Commit 3ee3417

Browse files
committed
Update azuredeploy.bicep
1 parent 371b206 commit 3ee3417

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

samples/features/security/contoso-hr-sql-db/setup/azuredeploy.bicep

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ resource attestationProviderName_resource 'Microsoft.Attestation/attestationProv
107107
///////////////////////////////////
108108

109109
// Create an App Service plan
110-
resource WebAppServicePlan_Resource 'Microsoft.Web/serverfarms@2020-12-01' = {
110+
resource WebAppServicePlan_Resource 'Microsoft.Web/serverfarms@2021-01-01' = {
111111
name: '${projectName}plan'
112112
location: location
113113
properties: {}
@@ -117,7 +117,7 @@ resource WebAppServicePlan_Resource 'Microsoft.Web/serverfarms@2020-12-01' = {
117117
}
118118

119119
// Create the App Service
120-
resource WebApp_Resource 'Microsoft.Web/sites@2020-12-01' = {
120+
resource WebApp_Resource 'Microsoft.Web/sites@2021-01-01' = {
121121
name: '${projectName}app'
122122
location: location
123123
identity: {
@@ -143,18 +143,22 @@ resource WebApp_Resource 'Microsoft.Web/sites@2020-12-01' = {
143143
properties: {
144144
PROJECT: 'samples/features/security/contoso-hr-sql-db/source/ContosoHR/ContosoHR.csproj'
145145
}
146-
// Deploy the application
147-
resource sourceControl 'sourcecontrols' = {
148-
name: 'web'
149-
properties: {
150-
repoUrl: 'https://github.com/Pietervanhove/sql-server-samples.git'
151-
branch: 'AESQLDBWithEnclavesDemo'
152-
isManualIntegration: true
153-
}
154-
}
155146
}
156147
}
157148

149+
// Deploy the application
150+
resource sourceControl 'Microsoft.Web/sites/sourcecontrols@2021-01-01' = {
151+
name: '${projectName}app/web'
152+
properties: {
153+
repoUrl: 'https://github.com/Pietervanhove/sql-server-samples.git'
154+
branch: 'AESQLDBWithEnclavesDemo'
155+
isManualIntegration: true
156+
}
157+
dependsOn: [
158+
Server_Name_resource
159+
]
160+
}
161+
158162
//////////////////////////////////////
159163
// Create and configure a key vault //
160164
//////////////////////////////////////

0 commit comments

Comments
 (0)