Skip to content

Commit 6dab436

Browse files
authored
Merge pull request #119 from github-copilot-resources/bugfix/infra
2 parents e81bc24 + 80a8ff1 commit 6dab436

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

azure-deploy/with-app-registration/azuredeploy.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@
148148
"sharedKey": "[listKeys(concat('Microsoft.OperationalInsights/workspaces/', variables('workspaceName')), '2020-08-01').primarySharedKey]"
149149
}
150150
},
151-
"vnetConfiguration": {
152-
"infrastructureSubnetId": "[parameters('subnetId')]",
153-
"internal": "[if(equals(parameters('subnetId'), ''), json('false'), json('true'))]"
154-
}
151+
"vnetConfiguration": "[if(equals(parameters('subnetId'), ''), json('{}'), json(concat('{ \"infrastructureSubnetId\": \"', parameters('subnetId'), '\", \"internal\": true }')) )]"
155152
}
156153
},
157154
{

azure-deploy/with-token/azuredeploy.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@
138138
"sharedKey": "[listKeys(concat('Microsoft.OperationalInsights/workspaces/', variables('workspaceName')), '2020-08-01').primarySharedKey]"
139139
}
140140
},
141-
"vnetConfiguration": {
142-
"infrastructureSubnetId": "[parameters('subnetId')]",
143-
"internal": "[if(equals(parameters('subnetId'), ''), json('false'), json('true'))]"
144-
}
141+
"vnetConfiguration": "[if(equals(parameters('subnetId'), ''), json('{}'), json(concat('{ \"infrastructureSubnetId\": \"', parameters('subnetId'), '\", \"internal\": true }')) )]"
145142
}
146143
},
147144
{

0 commit comments

Comments
 (0)