Gallery › BuiltInPolicyTest › Azure built-in policies
[Deprecated]: Azure Data Factory pipelines should only communicate with allowed domains. Versioning Test BuiltIn
Doesn't convert yet Policy Deny Disabled Mode Microsoft.DataFactory.Data Version 2.2.0-deprecated Deprecated
This is a test policy only for internal use by Policy team. To prevent data & token exfiltration, set the domains that Azure Data Factory should be allowed to communicate with. Note: While in public preview, the compliance for this policy is not reported, & for policy to be applied to Data Factory, please enable outbound rules functionality in the ADF studio. For more information, visit https://aka.ms/data-exfiltration-policy.
ConvertTo-Bylaw can't convert this policy yet:
- BYL6002 Its mode, Microsoft.DataFactory.Data, is a resource provider mode, which language version 1.0 doesn't support.
{
"properties": {
"displayName": "[Deprecated]: Azure Data Factory pipelines should only communicate with allowed domains. Versioning Test BuiltIn",
"policyType": "BuiltIn",
"mode": "Microsoft.DataFactory.Data",
"description": "This is a test policy only for internal use by Policy team. To prevent data & token exfiltration, set the domains that Azure Data Factory should be allowed to communicate with. Note: While in public preview, the compliance for this policy is not reported, & for policy to be applied to Data Factory, please enable outbound rules functionality in the ADF studio. For more information, visit https://aka.ms/data-exfiltration-policy.",
"metadata": {
"version": "2.2.0-deprecated",
"category": "BuiltInPolicyTest",
"deprecated": true
},
"version": "2.2.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "'Deny' blocks the communication with untrusted domains during execution of pipeline."
},
"allowedValues": [
"Deny",
"Disabled"
],
"defaultValue": "Disabled"
},
"allowedDomainNamesV2": {
"type": "Array",
"metadata": {
"displayName": "Allowed domain names",
"description": "The list of allowed domain names."
}
},
"testString": {
"metadata": {
"displayName": "Test string",
"description": "A string to be compared against 'test' in the policy rule to generate the desired compliance result."
},
"type": "string",
"defaultValue": "test"
}
},
"policyRule": {
"if": {
"allOf": [
{
"value": "[parameters('testString')]",
"equals": "test"
},
{
"field": "type",
"equals": "Microsoft.DataFactory.Data/factories/outboundTraffic"
},
{
"count": {
"field": "Microsoft.DataFactory.Data/factories/outboundTraffic/properties.domainNames[*]",
"where": {
"field": "Microsoft.DataFactory.Data/factories/outboundTraffic/properties.domainNames[*]",
"notIn": "[parameters('allowedDomainNamesV2')]"
}
},
"greater": 0
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"2.2.0",
"2.1.0",
"2.0.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/f8d398ae-0441-4921-a341-40f3973d4647",
"name": "f8d398ae-0441-4921-a341-40f3973d4647"
}Source: built-in-policies/policyDefinitions/BuiltInPolicyTest/Factory_OutboundTraffic_Audit_Versioning_Test.json in Azure/azure-policy, under the MIT licence.
Bylaw