Skip to content

Commit

Permalink
API and Module Version Bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelland committed Jun 19, 2024
1 parent 0582903 commit 18afa48
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion devCenter/deploy.azcli
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
az deployment sub what-if --location westeurope --name DevCenterStack --template-file main.bicep --parameters .\main.bicepparam

# To deploy the Dev Center as a deployment stack
az stack sub create --name DevCenterStack --location westeurope --template-file main.bicep --parameters .\main.bicepparam --deny-settings-mode none
az stack sub create --name DevCenterStack --location westeurope --template-file main.bicep --parameters .\main.bicepparam --deny-settings-mode none --action-on-unmanage detachAll
2 changes: 1 addition & 1 deletion devCenter/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ param definitionSKU string = 'general_i_8c32gb256ssd_v2'
@description('DevBox definition storage type.')
param definitionStorageType string = 'ssd_256gb'

resource rg_devc 'Microsoft.Resources/resourceGroups@2021-04-01' = {
resource rg_devc 'Microsoft.Resources/resourceGroups@2024-03-01' = {
name: 'rg-devcenter'
location: location
tags: resourceTags
Expand Down
8 changes: 4 additions & 4 deletions modules/devcenters/devcenter/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ param definitionSKU string = 'general_i_8c32gb256ssd_v2'
@description('DevBox definition storage type.')
param definitionStorageType string = 'ssd_256gb'

resource DevCenter 'Microsoft.DevCenter/devcenters@2023-10-01-preview' = {
resource DevCenter 'Microsoft.DevCenter/devcenters@2024-05-01-preview' = {
name: devCenterName
location: location
tags: resourceTags
Expand All @@ -31,21 +31,21 @@ resource DevCenter 'Microsoft.DevCenter/devcenters@2023-10-01-preview' = {
}

//Add a default environment type
resource devEnvironment 'Microsoft.DevCenter/devcenters/environmentTypes@2023-10-01-preview' = {
resource devEnvironment 'Microsoft.DevCenter/devcenters/environmentTypes@2024-05-01-preview' = {
name: 'dev'
parent: DevCenter
properties: {}
}

resource network 'Microsoft.DevCenter/devcenters/attachednetworks@2023-10-01-preview' = {
resource network 'Microsoft.DevCenter/devcenters/attachednetworks@2024-05-01-preview' = {
name: '${devCenterName}-network'
parent: DevCenter
properties: {
networkConnectionId: networkConnectionId
}
}

resource DevBoxDefinition 'Microsoft.DevCenter/devcenters/devboxdefinitions@2023-10-01-preview' = {
resource DevBoxDefinition 'Microsoft.DevCenter/devcenters/devboxdefinitions@2024-05-01-preview' = {
parent: DevCenter
name: definitionName
location: location
Expand Down
14 changes: 7 additions & 7 deletions modules/devcenters/devcenter/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.25.53.49325",
"templateHash": "16988910561202265371"
"version": "0.28.1.47646",
"templateHash": "16830810211249730439"
},
"name": "Dev Center",
"description": "Dev Center",
Expand Down Expand Up @@ -68,7 +68,7 @@
"resources": [
{
"type": "Microsoft.DevCenter/devcenters",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[parameters('devCenterName')]",
"location": "[parameters('location')]",
"tags": "[parameters('resourceTags')]",
Expand All @@ -79,7 +79,7 @@
},
{
"type": "Microsoft.DevCenter/devcenters/environmentTypes",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[format('{0}/{1}', parameters('devCenterName'), 'dev')]",
"properties": {},
"dependsOn": [
Expand All @@ -88,7 +88,7 @@
},
{
"type": "Microsoft.DevCenter/devcenters/attachednetworks",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[format('{0}/{1}', parameters('devCenterName'), format('{0}-network', parameters('devCenterName')))]",
"properties": {
"networkConnectionId": "[parameters('networkConnectionId')]"
Expand All @@ -99,7 +99,7 @@
},
{
"type": "Microsoft.DevCenter/devcenters/devboxdefinitions",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[format('{0}/{1}', parameters('devCenterName'), parameters('definitionName'))]",
"location": "[parameters('location')]",
"properties": {
Expand Down Expand Up @@ -137,7 +137,7 @@
"metadata": {
"description": "Id of the system-managed identity of the Dev Center."
},
"value": "[reference(resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName')), '2023-10-01-preview', 'full').identity.principalId]"
"value": "[reference(resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName')), '2024-05-01-preview', 'full').identity.principalId]"
}
}
}
2 changes: 1 addition & 1 deletion modules/devcenters/devcenter/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://aka.ms/bicep-registry-module-version-file-schema#",
"version": "0.11",
"version": "0.12",
"pathFilters": [
"./main.json"
]
Expand Down
2 changes: 1 addition & 1 deletion modules/devcenters/network-connection/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ param connectionName string
@description('Subnet for network connection.')
param snetId string

resource NetworkConnection 'Microsoft.DevCenter/networkConnections@2023-10-01-preview' = {
resource NetworkConnection 'Microsoft.DevCenter/networkConnections@2024-05-01-preview' = {
name: connectionName
location: location
tags: resourceTags
Expand Down
6 changes: 3 additions & 3 deletions modules/devcenters/network-connection/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "2707311748966755923"
"version": "0.28.1.47646",
"templateHash": "2590693242904609726"
},
"name": "Dev Box Network Connection",
"description": "Dev Box Network Connection",
Expand Down Expand Up @@ -41,7 +41,7 @@
"resources": [
{
"type": "Microsoft.DevCenter/networkConnections",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[parameters('connectionName')]",
"location": "[parameters('location')]",
"tags": "[parameters('resourceTags')]",
Expand Down
2 changes: 1 addition & 1 deletion modules/devcenters/network-connection/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://aka.ms/bicep-registry-module-version-file-schema#",
"version": "0.10",
"version": "0.11",
"pathFilters": [
"./main.json"
]
Expand Down
6 changes: 3 additions & 3 deletions modules/devcenters/project/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ param localAdministrator string = 'Enabled'
@description('SubscriptionId the environment will be mapped to.')
param deploymentTargetId string

resource Project 'Microsoft.DevCenter/projects@2023-10-01-preview' = {
resource Project 'Microsoft.DevCenter/projects@2024-05-01-preview' = {
name: projectName
tags: resourceTags
location: location
Expand All @@ -37,7 +37,7 @@ resource Project 'Microsoft.DevCenter/projects@2023-10-01-preview' = {
}

//Add a Dev environment
resource devEnvironment 'Microsoft.DevCenter/projects/environmentTypes@2023-10-01-preview' = {
resource devEnvironment 'Microsoft.DevCenter/projects/environmentTypes@2024-05-01-preview' = {
name: 'dev'
location: location
parent: Project
Expand All @@ -50,7 +50,7 @@ resource devEnvironment 'Microsoft.DevCenter/projects/environmentTypes@2023-10-0
}
}

resource DevPool 'Microsoft.DevCenter/projects/pools@2023-10-01-preview' = {
resource DevPool 'Microsoft.DevCenter/projects/pools@2024-05-01-preview' = {
parent: Project
name: devPoolName
tags: resourceTags
Expand Down
12 changes: 6 additions & 6 deletions modules/devcenters/project/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.25.53.49325",
"templateHash": "16882286772186002176"
"version": "0.28.1.47646",
"templateHash": "14944262749451934156"
},
"name": "Dev Box Project",
"description": "Dev Box Project with Pool.",
Expand Down Expand Up @@ -83,7 +83,7 @@
"resources": [
{
"type": "Microsoft.DevCenter/projects",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[parameters('projectName')]",
"tags": "[parameters('resourceTags')]",
"location": "[parameters('location')]",
Expand All @@ -93,7 +93,7 @@
},
{
"type": "Microsoft.DevCenter/projects/environmentTypes",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[format('{0}/{1}', parameters('projectName'), 'dev')]",
"location": "[parameters('location')]",
"identity": {
Expand All @@ -109,7 +109,7 @@
},
{
"type": "Microsoft.DevCenter/projects/pools",
"apiVersion": "2023-10-01-preview",
"apiVersion": "2024-05-01-preview",
"name": "[format('{0}/{1}', parameters('projectName'), parameters('devPoolName'))]",
"tags": "[parameters('resourceTags')]",
"location": "[parameters('location')]",
Expand All @@ -130,7 +130,7 @@
"metadata": {
"description": "Id of the system-managed identity for the dev environment."
},
"value": "[reference(resourceId('Microsoft.DevCenter/projects/environmentTypes', parameters('projectName'), 'dev'), '2023-10-01-preview', 'full').identity.principalId]"
"value": "[reference(resourceId('Microsoft.DevCenter/projects/environmentTypes', parameters('projectName'), 'dev'), '2024-05-01-preview', 'full').identity.principalId]"
}
}
}
2 changes: 1 addition & 1 deletion modules/devcenters/project/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://aka.ms/bicep-registry-module-version-file-schema#",
"version": "0.11",
"version": "0.12",
"pathFilters": [
"./main.json"
]
Expand Down

0 comments on commit 18afa48

Please sign in to comment.