Skip to content

Commit

Permalink
change location options
Browse files Browse the repository at this point in the history
  • Loading branch information
noendscripting committed Jun 10, 2022
1 parent a361012 commit 7cb31c8
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"defaultValue": "ascassessment",
"type": "String"
},
"connectionLocation": {
/*"connectionLocation": {
"type": "string",
"allowedValues": [
"northcentralus",
Expand Down Expand Up @@ -54,30 +54,34 @@
"germanynorth",
"germanywestcentral"
]
},
}, */
"azureRestAPiVersion": {
"type": "string",
"defaultValue": "api-version=2021-02-01"

}
},
"variables": {
"connectionName": "[concat(parameters('connectionNamePrefix'),parameters('connectionLocation'))]"
//"connectionName": "[concat(parameters('connectionNamePrefix'),parameters('connectionLocation'))]"
"connectionName": "[concat(parameters('connectionNamePrefix'),resourceGroup().location)]"

},
"resources": [
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[variables('connectionName')]",
"location": "[parameters('connectionLocation')]",
//"location": "[parameters('connectionLocation')]",
"location" : "[resourceGroup().location]",
"kind": "V1",
"properties": {
"displayName": "Microsoft Defender for Cloud Recommendation",
"api": {
"name": "[variables('connectionName')]",
"displayName": "Microsoft Defender for Cloud Recommendation",
"description": "Microsoft Defender for Cloud is a unified infrastructure security management system that strengthens the security posture of your data centers, and provides advanced threat protection across your hybrid workloads in the cloud - whether they're in Azure or not - as well as on premises",
"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', parameters('connectionLocation'), 'ascassessment')]",
//"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', parameters('connectionLocation'), 'ascassessment')]",
"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', resourceGroup().location, 'ascassessment')]",
"type": "Microsoft.Web/locations/managedApis"
},
"testLinks": []
Expand All @@ -87,7 +91,7 @@
"type": "Microsoft.Logic/workflows",
"apiVersion": "2017-07-01",
"name": "[parameters('workflowName')]",
"location": "[parameters('connectionLocation')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/connections',variables('connectionName'))]"
],
Expand Down Expand Up @@ -220,7 +224,7 @@

"connectionId": "[resourceId('Microsoft.Web/connections',variables('connectionName'))]",
"connectionName": "[variables('connectionName')]",
"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', parameters('connectionLocation'), 'ascassessment')]"
"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', resourceGroup().location, 'ascassessment')]"
}
}
}
Expand Down

0 comments on commit 7cb31c8

Please sign in to comment.