Policy Rule
|
{
"properties": {
"displayName": "[Preview]: Resource type for Azure Synapse linked service should be in allowed list",
"policyType": "BuiltIn",
"mode": "Microsoft.Synapse.Data",
"description": "You can define an allowed list of resource types for Azure Synapse linked service to restrict creation or update on a scope. With this policy in place you can have a better control over the boundary of data movement.",
"metadata": {
"version": "1.0.0-preview",
"category": "Synapse",
"preview": true
},
"parameters": {
"allowedLinkedServiceResourceTypes": {
"type": "Array",
"metadata": {
"displayName": "Allowed linked service resource types",
"description": "The list of allowed linked service resource types."
},
"allowedValues": [
"AdlsGen2CosmosStructuredStream",
"AdobeExperiencePlatform",
"AdobeIntegration",
"AmazonRedshift",
"AmazonS3",
"AzureBlobFS",
"AzureBlobStorage",
"AzureDataExplorer",
"AzureDataLakeStore",
"AzureDataLakeStoreCosmosStructuredStream",
"AzureDataShare",
"AzureFileStorage",
"AzureKeyVault",
"AzureMariaDB",
"AzureMySql",
"AzurePostgreSql",
"AzureSearch",
"AzureSqlDatabase",
"AzureSqlDW",
"AzureSqlMI",
"AzureTableStorage",
"Cassandra",
"CommonDataServiceForApps",
"CosmosDb",
"CosmosDbMongoDbApi",
"Db2",
"DynamicsCrm",
"FileServer",
"FtpServer",
"GitHub",
"GoogleCloudStorage",
"Hdfs",
"Hive",
"HttpServer",
"Informix",
"Kusto",
"MicrosoftAccess",
"MySql",
"Netezza",
"Odata",
"Odbc",
"Office365",
"Oracle",
"PostgreSql",
"Salesforce",
"SalesforceServiceCloud",
"SapBw",
"SapHana",
"SapOpenHub",
"SapTable",
"Sftp",
"SharePointOnlineList",
"Snowflake",
"SqlServer",
"Sybase",
"Teradata"
]
}
},
"policyRule": {
"if": {
"field": "Microsoft.Synapse.Data/workspaces/linkedservices/properties.type",
"notIn": "[parameters('allowedLinkedServiceResourceTypes')]"
},
"then": {
"effect": "deny"
}
}
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/84ce0900-69cd-4b5e-b676-0b5a66d027c9",
"type": "Microsoft.Authorization/policyDefinitions",
"name": "84ce0900-69cd-4b5e-b676-0b5a66d027c9"
}
|