Skip to content

Commit

Permalink
Revert "Add MSRDS deprecation notice to deployment scripts"
Browse files Browse the repository at this point in the history
This reverts commit e7f7d9a.
  • Loading branch information
craddm committed Jun 27, 2023
1 parent e7f7d9a commit d5ba196
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions deployment/secure_research_environment/setup/Deploy_SRE.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ if (Get-MgContext) {
# Check that we are using the correct provider
# --------------------------------------------
if ($config.sre.remoteDesktop.provider -ne "ApacheGuacamole") {
if ($config.sre.remoteDesktop.provider -wq "MicrosoftRDS") {
Add-LogMessage -Level Warning "Support for Microsoft RDS is deprecated and will be removed in release v4.1.0"
}
Add-LogMessage -Level Fatal "You should not be running this script when using remote desktop provider '$($config.sre.remoteDesktop.provider)'"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ try {
if ($config.sre.remoteDesktop.provider -eq "ApacheGuacamole") {
$null = Resolve-KeyVaultSecret -VaultName $config.sre.keyVault.name -SecretName $config.sre.remoteDesktop.guacamole.adminPasswordSecretName -DefaultLength 20 -AsPlaintext
} elseif ($config.sre.remoteDesktop.provider -eq "MicrosoftRDS") {
Add-LogMessage -Level Warning "Support for Microsoft RDS is deprecated and will be removed in release v4.1.0"
$null = Resolve-KeyVaultSecret -VaultName $config.sre.keyVault.name -SecretName $config.sre.remoteDesktop.gateway.adminPasswordSecretName -DefaultLength 20 -AsPlaintext
$null = Resolve-KeyVaultSecret -VaultName $config.sre.keyVault.name -SecretName $config.sre.remoteDesktop.appSessionHost.adminPasswordSecretName -DefaultLength 20 -AsPlaintext
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ if ($config.sre.remoteDesktop.provider -eq "ApacheGuacamole") {
$null = Set-NetworkSecurityGroupRules -NetworkSecurityGroup $guacamoleNsg -Rules $rules
$remoteDesktopSubnet = Set-SubnetNetworkSecurityGroup -Subnet $remoteDesktopSubnet -NetworkSecurityGroup $guacamoleNsg
} elseif ($config.sre.remoteDesktop.provider -eq "MicrosoftRDS") {
Add-LogMessage -Level Warning "Support for Microsoft RDS is deprecated and will be removed in release v4.1.0"
# Ensure that gateway NSG exists with correct rules
$gatewayNsg = Deploy-NetworkSecurityGroup -Name $config.sre.remoteDesktop.gateway.nsg.name -ResourceGroupName $config.sre.network.vnet.rg -Location $config.sre.location
$rules = Get-JsonFromMustacheTemplate -TemplatePath (Join-Path $PSScriptRoot ".." "network_rules" $config.sre.remoteDesktop.gateway.nsg.rules) -Parameters $config -AsHashtable
Expand Down

0 comments on commit d5ba196

Please sign in to comment.