Skip to content

Commit

Permalink
Azure#721 - API Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ruandersMSFT authored Dec 13, 2024
1 parent b7f2c4c commit fc57c80
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions avm/1.0.0/res/desktop-virtualization/scaling-plan/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2023-07-01' = if (enableT
}
}

resource scalingPlan 'Microsoft.DesktopVirtualization/scalingPlans@2023-09-05' = {
resource scalingPlan 'Microsoft.DesktopVirtualization/scalingPlans@2024-04-03' = {
name: name
location: location
tags: tags
Expand All @@ -103,13 +103,13 @@ resource scalingPlan 'Microsoft.DesktopVirtualization/scalingPlans@2023-09-05' =
}
}

resource scalingPlanSchedulePersonal 'Microsoft.DesktopVirtualization/scalingPlans/personalSchedules@2024-03-06-preview' = [for schedule in schedules: if (hostPoolType == 'Personal') {
resource scalingPlanSchedulePersonal 'Microsoft.DesktopVirtualization/scalingPlans/personalSchedules@2024-04-03' = [for schedule in schedules: if (hostPoolType == 'Personal') {
name: '${schedule.name}'
parent: scalingPlan
properties: schedule
}]

resource scalingPlanSchedulePooled 'Microsoft.DesktopVirtualization/scalingPlans/pooledSchedules@2023-11-01-preview' = [for schedule in schedules: if (hostPoolType == 'Pooled') {
resource scalingPlanSchedulePooled 'Microsoft.DesktopVirtualization/scalingPlans/pooledSchedules@2024-04-03' = [for schedule in schedules: if (hostPoolType == 'Pooled') {
name: '${schedule.name}'
parent: scalingPlan
properties: schedule
Expand Down
2 changes: 1 addition & 1 deletion avm/1.0.0/res/desktop-virtualization/workspace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This module deploys an Azure Virtual Desktop Workspace.
| :-- | :-- |
| `Microsoft.Authorization/locks` | [2020-05-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-05-01/locks) |
| `Microsoft.Authorization/roleAssignments` | [2022-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2022-04-01/roleAssignments) |
| `Microsoft.DesktopVirtualization/workspaces` | [2022-10-14-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DesktopVirtualization/2022-10-14-preview/workspaces) |
| `Microsoft.DesktopVirtualization/workspaces` | [2024-04-03](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DesktopVirtualization/2024-04-03/workspaces) |
| `Microsoft.Insights/diagnosticSettings` | [2021-05-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2021-05-01-preview/diagnosticSettings) |
| `Microsoft.Network/privateEndpoints` | [2023-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-04-01/privateEndpoints) |
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | [2023-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Network/2023-04-01/privateEndpoints/privateDnsZoneGroups) |
Expand Down
2 changes: 1 addition & 1 deletion avm/1.0.0/res/desktop-virtualization/workspace/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2023-07-01' =
}
}

resource workspace 'Microsoft.DesktopVirtualization/workspaces@2023-11-01-preview' = {
resource workspace 'Microsoft.DesktopVirtualization/workspaces@2024-04-03' = {
name: name
location: location
tags: tags
Expand Down
4 changes: 2 additions & 2 deletions avm/1.0.0/res/desktop-virtualization/workspace/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
},
"workspace": {
"type": "Microsoft.DesktopVirtualization/workspaces",
"apiVersion": "2022-10-14-preview",
"apiVersion": "2024-04-03",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
Expand Down Expand Up @@ -1268,7 +1268,7 @@
"metadata": {
"description": "The location of the workspace."
},
"value": "[reference('workspace', '2022-10-14-preview', 'full').location]"
"value": "[reference('workspace', '2024-04-03', 'full').location]"
}
}
}

0 comments on commit fc57c80

Please sign in to comment.