Skip to content

Commit e5e7fea

Browse files
committed
Refactoring Bicep to acces new Azure APIs
1 parent 92e2cef commit e5e7fea

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

src/deploy/bicep/devBox/devCenter/configureDevCenterCatalogs.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ resource projectCatalog 'Microsoft.DevCenter/devcenters/catalogs@2024-10-01-prev
1616
branch: catalogInfo.branch
1717
path: catalogInfo.path
1818
}
19+
syncType: 'Scheduled'
1920
}
2021
}

src/deploy/bicep/devBox/devCenter/configureDevCenterEnvironments.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ resource deployDevCenter 'Microsoft.DevCenter/devcenters@2024-10-01-preview' exi
88
resource devCenterDevEnvironment 'Microsoft.DevCenter/devcenters/environmentTypes@2024-10-01-preview' = {
99
parent: deployDevCenter
1010
name: 'Development'
11+
properties: {
12+
displayName: 'Development'
13+
}
1114
}
1215

1316
output devCenterDevEnvironmentId string = devCenterDevEnvironment.id
@@ -17,6 +20,9 @@ output devCenterDevEnvironmentName string = devCenterDevEnvironment.name
1720
resource devCenterStagingEnvironment 'Microsoft.DevCenter/devcenters/environmentTypes@2024-10-01-preview' = {
1821
parent: deployDevCenter
1922
name: 'Staging'
23+
properties: {
24+
displayName: 'Staging'
25+
}
2026
}
2127

2228
output devCenterStagingEnvironmentId string = devCenterStagingEnvironment.id

src/deploy/bicep/devBox/devCenter/createDevCenterProjects.bicep

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ resource project 'Microsoft.DevCenter/projects@2024-10-01-preview' = {
2222
catalogSettings: {
2323
catalogItemSyncTypes: [
2424
'EnvironmentDefinition'
25+
'ImageDefinition'
2526
]
2627
}
2728
}
@@ -54,8 +55,14 @@ resource backEndPool 'Microsoft.DevCenter/projects/pools@2024-10-01-preview' = {
5455
networkConnectionName: networkConnectionName
5556
stopOnDisconnect: {
5657
gracePeriodMinutes: 60
57-
status: 'Disabled'
58+
status: 'Enabled'
5859
}
60+
stopOnNoConnect: {
61+
gracePeriodMinutes: 60
62+
status: 'Enabled'
63+
}
64+
singleSignOnStatus: 'Enabled'
65+
virtualNetworkType: 'Unmanaged'
5966
}
6067
}
6168

@@ -71,7 +78,13 @@ resource frontEndPool 'Microsoft.DevCenter/projects/pools@2024-10-01-preview' =
7178
networkConnectionName: networkConnectionName
7279
stopOnDisconnect: {
7380
gracePeriodMinutes: 60
74-
status: 'Disabled'
81+
status: 'Enabled'
82+
}
83+
stopOnNoConnect: {
84+
gracePeriodMinutes: 60
85+
status: 'Enabled'
7586
}
87+
singleSignOnStatus: 'Enabled'
88+
virtualNetworkType: 'Unmanaged'
7689
}
7790
}

src/deploy/bicep/identity/deployCustomRole.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ resource deployCustomRole 'Microsoft.Authorization/roleDefinitions@2022-05-01-pr
2323
notDataActions: []
2424
}
2525
]
26+
type: 'CustomRole'
2627
}
2728
}
2829

src/deploy/bicep/network/virtualNetwork/virtualNetwork.bicep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ resource virtualNetwork 'Microsoft.Network/virtualNetworks@2024-03-01' = {
1818
addressSpace: {
1919
addressPrefixes: addressPrefix
2020
}
21+
encryption: {
22+
enabled: true
23+
}
2124
}
2225
tags: tags
2326
}

0 commit comments

Comments
 (0)