Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fabragaMS authored Mar 11, 2022
1 parent b15a5a5 commit 3f47554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Deploy/SynapsePostDeploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ if ($NetworkIsolationMode -eq "vNet") {

#If CosmosDB operational workload is deployed then add CosmosDB SQL and Analytical subsystems to the list of managed endpoints.
if ($CtrlDeployCosmosDB) {
[string[]] $cosmosDBPrivateEndpointNames = $CosmosDBAccountName
[string[]] $cosmosDBPrivateEndpointIDs = $CosmosDBAccountID
[string[]] $cosmosDBPrivateEndpointGroups = 'Analytical'
[string[]] $cosmosDBPrivateEndpointNames = $CosmosDBAccountName, $CosmosDBAccountName
[string[]] $cosmosDBPrivateEndpointIDs = $CosmosDBAccountID, $CosmosDBAccountID
[string[]] $cosmosDBPrivateEndpointGroups = 'Analytical', 'Sql'

$managedPrivateEndpointNames += $cosmosDBPrivateEndpointNames
$managedPrivateEndpointIDs += $cosmosDBPrivateEndpointIDs
Expand All @@ -365,7 +365,7 @@ if ($NetworkIsolationMode -eq "vNet") {

for($i = 0; $i -le ($managedPrivateEndpointNames.Length - 1); $i += 1)
{
$managedPrivateEndpointName = $managedPrivateEndpointNames[$i]
$managedPrivateEndpointName = [System.String]::Concat($managedPrivateEndpointNames[$i],"-",$managedPrivateEndpointGroups[$i])
$managedPrivateEndpointID = $managedPrivateEndpointIDs[$i]
$managedPrivateEndpointGroup = $managedPrivateEndpointGroups[$i]

Expand Down

0 comments on commit 3f47554

Please sign in to comment.