Skip to content

Commit

Permalink
Merge pull request #631 from Azure/api-fix
Browse files Browse the repository at this point in the history
Api fix
  • Loading branch information
danycontre committed Aug 7, 2024
2 parents 661d040 + 0b314c8 commit 622041f
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 14 deletions.
6 changes: 3 additions & 3 deletions workload/portal-ui/brownfield/portalUiNewSessionHosts.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id, '/resourceGroups?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id, '/resourceGroups?api-version=2022-01-01')]"
}
},
{
Expand Down Expand Up @@ -293,7 +293,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Compute/resourceTypes?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Compute/resourceTypes?api-version=2022-01-01')]"
}
},
{
Expand Down Expand Up @@ -713,7 +713,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('network').networkSettings.virtualNetworkSelectorId.id, '/subnets?api-version=2021-03-01')]"
"path": "[concat(steps('network').networkSettings.virtualNetworkSelectorId.id, '/subnets?api-version=2022-01-01')]"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion workload/portal-ui/brownfield/portalUiScalingTool.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id, '/resourceGroups?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id, '/resourceGroups?api-version=2022-01-01')]"
}
},
{
Expand Down
12 changes: 6 additions & 6 deletions workload/portal-ui/portal-ui-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Compute/resourceTypes?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Compute/resourceTypes?api-version=2022-01-01')]"
}
},
{
Expand Down Expand Up @@ -889,7 +889,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Storage/resourceTypes?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Storage/resourceTypes?api-version=2022-01-01')]"
}
},
{
Expand Down Expand Up @@ -1153,7 +1153,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('network').avdVirtualNetworkSelectorId.id, '/subnets?api-version=2021-03-01')]"
"path": "[concat(steps('network').avdVirtualNetworkSelectorId.id, '/subnets?api-version=2022-01-01')]"
}
},
{
Expand Down Expand Up @@ -1223,7 +1223,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('network').privateEndpointVirtualNetworkSelectorId.id, '/subnets?api-version=2021-03-01')]"
"path": "[concat(steps('network').privateEndpointVirtualNetworkSelectorId.id, '/subnets?api-version=2022-01-01')]"
}
},
{
Expand Down Expand Up @@ -1425,7 +1425,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "subscriptions?api-version=2020-01-01"
"path": "subscriptions?api-version=2022-01-01"
}
},
{
Expand All @@ -1449,7 +1449,7 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat('subscriptions/', steps('network').hubVirtualNetworkPeering.hubVirtualNetworkSub, '/providers/Microsoft.Network/virtualNetworks?api-version=2021-08-01')]"
"path": "[concat('subscriptions/', steps('network').hubVirtualNetworkPeering.hubVirtualNetworkSub, '/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01')]"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions workload/portal-ui/portal-ui-custom-image.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,23 @@
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Compute/resourceTypes?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Compute/resourceTypes?api-version=2022-01-01')]"
}
},
{
"name": "locationsApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id,'/locations?api-version=2020-01-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id,'/locations?api-version=2022-01-01')]"
}
},
{
"name": "storageApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Storage/resourceTypes?api-version=2021-04-01')]"
"path": "[concat(steps('basics').resourceScope.subscription.id,'/providers/Microsoft.Storage/resourceTypes?api-version=2022-01-01')]"
}
}
]
Expand Down
49 changes: 48 additions & 1 deletion workload/scripts/Set-SessionHostConfiguration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,36 @@ try {
PropertyType = 'DWord'
Value = 1
},

# Configure fullscreen video encoding: https://docs.microsoft.com/en-us/azure/virtual-desktop/configure-vm-gpu#configure-fullscreen-video-encoding
[PSCustomObject]@{
Name = 'AVC444ModePreferred'
Path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
PropertyType = 'DWord'
Value = 1
},
[PSCustomObject]@{
Name = 'KeepAliveEnable'
Path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
PropertyType = 'DWord'
Value = 1
},
[PSCustomObject]@{
Name = 'KeepAliveInterval'
Path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
PropertyType = 'DWord'
Value = 1
},
[PSCustomObject]@{
Name = 'MinEncryptionLevel'
Path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
PropertyType = 'DWord'
Value = 3
},
[PSCustomObject]@{
Name = 'AVCHardwareEncodePreferred'
Path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
PropertyType = 'DWord'
Value = 1
}
)
}
Expand Down Expand Up @@ -246,6 +269,30 @@ try {
Path = 'HKLM:\SOFTWARE\FSLogix\Profiles'
PropertyType = 'MultiString'
Value = 'vhdx'
},
[PSCustomObject]@{
Name = 'LockedRetryCount'
Path = 'HKLM:\SOFTWARE\FSLogix\Profiles'
PropertyType = 'DWord'
Value = 3
},
[PSCustomObject]@{
Name = 'LockedRetryInterval'
Path = 'HKLM:\SOFTWARE\FSLogix\Profiles'
PropertyType = 'DWord'
Value = 15
},
[PSCustomObject]@{
Name = 'ReAttachIntervalSeconds'
Path = 'HKLM:\SOFTWARE\FSLogix\Profiles'
PropertyType = 'DWord'
Value = 15
},
[PSCustomObject]@{
Name = 'ReAttachRetryCount'
Path = 'HKLM:\SOFTWARE\FSLogix\Profiles'
PropertyType = 'DWord'
Value = 3
}
)
}
Expand Down

0 comments on commit 622041f

Please sign in to comment.