Skip to content
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
enable-beta-ecosystems: true
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
target-branch: "dependabot/github_actions"
labels:
- "github-actions"
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check Out Repository
id: checkout_repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -29,4 +29,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JSCPD: false
VALIDATE_JSON: false
VALIDATE_GITLEAKS: false
FILTER_REGEX_EXCLUDE: (/.devcontainer/|/reference/)
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"policyName": {
"value": "Deploy-DNSZoneGroup-SynapseKusto-PrivateEndpoint"
},
"policyDescription": {
"value": "Deploys the configurations of a Private DNS Zone Group by a parameter for Synapse Kusto Private Endpoint. Used to enforce the configuration to a single Private DNS Zone."
},
"policyMode": {
"value": "Indexed"
},
"policyParameters": {
"value": {
"privateDnsZoneIdSynapseKusto": {
"type": "String",
"metadata": {
"displayName": "Private DNS Zone ID (Synapse Kusto)",
"strongType": "Microsoft.Network/privateDnsZones"
}
},
"privateDnsZoneIdBlob": {
"type": "String",
"metadata": {
"displayName": "Private DNS Zone ID (Blob Storage)",
"strongType": "Microsoft.Network/privateDnsZones"
}
},
"privateDnsZoneIdQueue": {
"type": "String",
"metadata": {
"displayName": "Private DNS Zone ID (Queue Storage)",
"strongType": "Microsoft.Network/privateDnsZones"
}
},
"privateDnsZoneIdTable": {
"type": "String",
"metadata": {
"displayName": "Private DNS Zone ID (Table Storage)",
"strongType": "Microsoft.Network/privateDnsZones"
}
},
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists"
}
}
},
"policyDefinition": {
"value": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Network/privateEndpoints"
},
{
"field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId",
"contains": "Microsoft.Synapse/workspaces"
},
{
"count": {
"field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
"where": {
"field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]",
"in": [
"Kusto"
]
}
},
"greaterOrEquals": 1
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
"roleDefinitionIds": [
"/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"existenceCondition": {
"anyOf": [
{
"field": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups/privateDnsZoneConfigs[*].privateDnsZoneId",
"equals": "[parameters('privateDnsZoneIdSynapseKusto')]"
}
]
},
"deployment": {
"properties": {
"mode": "incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"privateDnsZoneIdSynapseKusto": {
"type": "string"
},
"privateDnsZoneIdBlob": {
"type": "string"
},
"privateDnsZoneIdQueue": {
"type": "string"
},
"privateDnsZoneIdTable": {
"type": "string"
},
"privateEndpointName": {
"type": "string"
},
"location": {
"type": "string"
}
},
"resources": [
{
"name": "[concat(parameters('privateEndpointName'), '/deployedByPolicy')]",
"type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups",
"apiVersion": "2020-03-01",
"location": "[parameters('location')]",
"properties": {
"privateDnsZoneConfigs": [
{
"name": "[concat(parameters('privateEndpointName'), '-synapseKusto-aRecord')]",
"properties": {
"privateDnsZoneId": "[parameters('privateDnsZoneIdSynapseKusto')]"
}
},
{
"name": "[concat(parameters('privateEndpointName'), '-blob-aRecord')]",
"properties": {
"privateDnsZoneId": "[parameters('privateDnsZoneIdBlob')]"
}
},
{
"name": "[concat(parameters('privateEndpointName'), '-queue-aRecord')]",
"properties": {
"privateDnsZoneId": "[parameters('privateDnsZoneIdQueue')]"
}
},
{
"name": "[concat(parameters('privateEndpointName'), '-table-aRecord')]",
"properties": {
"privateDnsZoneId": "[parameters('privateDnsZoneIdTable')]"
}
}
]
}
}
]
},
"parameters": {
"privateDnsZoneIdSynapseKusto": {
"value": "[parameters('privateDnsZoneIdSynapseKusto')]"
},
"privateDnsZoneIdBlob": {
"value": "[parameters('privateDnsZoneIdBlob')]"
},
"privateDnsZoneIdQueue": {
"value": "[parameters('privateDnsZoneIdQueue')]"
},
"privateDnsZoneIdTable": {
"value": "[parameters('privateDnsZoneIdTable')]"
},
"privateEndpointName": {
"value": "[field('name')]"
},
"location": {
"value": "[field('location')]"
}
}
}
}
}
}
}
},
"policyMetadata": {
"value": {
"version": "1.0.0",
"category": "Synapse",
"preview": false,
"deprecated": false
}
}
}
}
Loading