From 876a26b391200261ed0cdab1343f692449813247 Mon Sep 17 00:00:00 2001 From: stonezy123 <49666210+stonezy123@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:22:54 +0800 Subject: [PATCH] Copy Files From Source Repo (2024-04-23 17:22) --- .vscode/settings.json | 4 ++ Labs/06/diabetes-data/MLTable | 4 +- Labs/06/orange-juice-data/MLTable | 4 +- Policies/DP-100 Base + LP11.json | 52 +++++++++++++++++++++++++ Policies/DP-100 Base.json | 44 +++++++++++++++++++++ Policies/Required Resource Providers.md | 15 +++++++ typings/__builtins__.pyi | 2 + 7 files changed, 121 insertions(+), 4 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 Policies/DP-100 Base + LP11.json create mode 100644 Policies/DP-100 Base.json create mode 100644 Policies/Required Resource Providers.md create mode 100644 typings/__builtins__.pyi diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..01abbe4 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "python.envFile": "${workspaceFolder}\\.databricks\\.databricks.env", + "databricks.python.envFile": "${workspaceFolder}/.env" +} \ No newline at end of file diff --git a/Labs/06/diabetes-data/MLTable b/Labs/06/diabetes-data/MLTable index 9b1c1b6..b125e88 100644 --- a/Labs/06/diabetes-data/MLTable +++ b/Labs/06/diabetes-data/MLTable @@ -1,8 +1,8 @@ # MLTable definition file paths: - - file: ./*.csv + - file: ./diabetes.csv transformations: - read_delimited: delimiter: ',' - encoding: 'ascii' \ No newline at end of file + encoding: 'ascii' diff --git a/Labs/06/orange-juice-data/MLTable b/Labs/06/orange-juice-data/MLTable index 9b1c1b6..7735a8f 100644 --- a/Labs/06/orange-juice-data/MLTable +++ b/Labs/06/orange-juice-data/MLTable @@ -1,8 +1,8 @@ # MLTable definition file paths: - - file: ./*.csv + - file: ./orange-juice-data.csv transformations: - read_delimited: delimiter: ',' - encoding: 'ascii' \ No newline at end of file + encoding: 'ascii' diff --git a/Policies/DP-100 Base + LP11.json b/Policies/DP-100 Base + LP11.json new file mode 100644 index 0000000..1388d93 --- /dev/null +++ b/Policies/DP-100 Base + LP11.json @@ -0,0 +1,52 @@ +{ + "if": { + "not": { + "anyOf": [ + { + "field": "type", + "contains": "Microsoft.Storage/storageAccounts" + }, + { + "field": "type", + "contains": "Microsoft.insights/" + }, + { + "field": "type", + "contains": "Microsoft.ContainerInstance/containerGroups" + }, + { + "field": "type", + "contains": "Microsoft.ContainerRegistry/registries" + }, + { + "field": "type", + "contains": "Microsoft.KeyVault/vaults" + }, + { + "field": "type", + "contains": "Microsoft.AlertsManagement/smartDetectorAlertRules" + }, + { + "field": "type", + "contains": "Microsoft.OperationalInsights/workspaces" + }, + { + "field":"type", + "equals":"Microsoft.MachineLearningServices/workspaces" + }, + { + "field":"type", + "contains":"Microsoft.MachineLearningServices/workspaces/onlineEndpoints" + }, + { + "field":"type", + "contains":"Microsoft.MachineLearningServices/workspaces/batchEndpoints" + } + ] + + } + }, + "then": { + "effect": "Deny" + } +} diff --git a/Policies/DP-100 Base.json b/Policies/DP-100 Base.json new file mode 100644 index 0000000..5a8546c --- /dev/null +++ b/Policies/DP-100 Base.json @@ -0,0 +1,44 @@ +{ + "if": { + "not": { + "anyOf": [ + { + "field": "type", + "contains": "Microsoft.Storage/storageAccounts" + }, + { + "field": "type", + "contains": "Microsoft.insights/" + }, + { + "field": "type", + "contains": "Microsoft.ContainerInstance/containerGroups" + }, + { + "field": "type", + "contains": "Microsoft.ContainerRegistry/registries" + }, + { + "field": "type", + "contains": "Microsoft.KeyVault/vaults" + }, + { + "field": "type", + "contains": "Microsoft.AlertsManagement/smartDetectorAlertRules" + }, + { + "field": "type", + "contains": "Microsoft.OperationalInsights/workspaces" + }, + { + "field":"type", + "equals":"Microsoft.MachineLearningServices/workspaces" + } + ] + + } + }, + "then": { + "effect": "Deny" + } +} diff --git a/Policies/Required Resource Providers.md b/Policies/Required Resource Providers.md new file mode 100644 index 0000000..52493e9 --- /dev/null +++ b/Policies/Required Resource Providers.md @@ -0,0 +1,15 @@ +## Required Resource Providers + +Microsoft.Insights + +Microsoft.ContainerInstance + +Microsoft.ContainerRegistry + +Microsoft.KeyVault + +Microsoft.AlertsManagement + +Microsoft.OperationalInsights + +Microsoft.MachineLearningServices diff --git a/typings/__builtins__.pyi b/typings/__builtins__.pyi new file mode 100644 index 0000000..494d75e --- /dev/null +++ b/typings/__builtins__.pyi @@ -0,0 +1,2 @@ + +from databricks.sdk.runtime import *