-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
374 additions
and
350 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
classical/aml-cli-v2/data-science/environment/train-monitor-conda.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
classical/rai-aml-cli-v2/data-science/environment/train-monitor-conda.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"analyzers": { | ||
"core": { | ||
"enabled": true, | ||
"verbose": true, | ||
"rules": { | ||
"no-hardcoded-env-urls": { | ||
"level": "error" | ||
}, | ||
"no-unused-params": { | ||
"level": "error" | ||
}, | ||
"no-unused-vars": { | ||
"level": "error" | ||
}, | ||
"prefer-interpolation": { | ||
"level": "error" | ||
}, | ||
"secure-parameter-default": { | ||
"level": "error" | ||
}, | ||
"simplify-interpolation": { | ||
"level": "error" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
targetScope = 'subscription' | ||
|
||
param location string = 'westus2' | ||
param prefix string | ||
param postfix string | ||
param env string | ||
|
||
param tags object = { | ||
Owner: 'mlops-v2' | ||
Project: 'mlops-v2' | ||
Environment: env | ||
Toolkit: 'bicep' | ||
Name: prefix | ||
} | ||
|
||
var baseName = '${prefix}-${postfix}${env}' | ||
var resourceGroupName = 'rg-${baseName}' | ||
|
||
resource rg 'Microsoft.Resources/resourceGroups@2020-06-01' = { | ||
name: resourceGroupName | ||
location: location | ||
|
||
tags: tags | ||
} | ||
|
||
// Storage Account | ||
module st './modules/storage_account.bicep' = { | ||
name: 'st' | ||
scope: resourceGroup(rg.name) | ||
params: { | ||
baseName: '${uniqueString(rg.id)}${env}' | ||
location: location | ||
tags: tags | ||
} | ||
} | ||
|
||
// Key Vault | ||
module kv './modules/key_vault.bicep' = { | ||
name: 'kv' | ||
scope: resourceGroup(rg.name) | ||
params: { | ||
baseName: baseName | ||
location: location | ||
tags: tags | ||
} | ||
} | ||
|
||
// App Insights | ||
module appi './modules/application_insights.bicep' = { | ||
name: 'appi' | ||
scope: resourceGroup(rg.name) | ||
params: { | ||
baseName: baseName | ||
location: location | ||
tags: tags | ||
} | ||
} | ||
|
||
// Container Registry | ||
module cr './modules/container_registry.bicep' = { | ||
name: 'cr' | ||
scope: resourceGroup(rg.name) | ||
params: { | ||
baseName: '${uniqueString(rg.id)}${env}' | ||
location: location | ||
tags: tags | ||
} | ||
} | ||
|
||
// AML workspace | ||
module mlw './modules/aml_workspace.bicep' = { | ||
name: 'mlw' | ||
scope: resourceGroup(rg.name) | ||
params: { | ||
baseName: baseName | ||
location: location | ||
stoacctid: st.outputs.stoacctOut | ||
kvid: kv.outputs.kvOut | ||
appinsightid: appi.outputs.appinsightOut | ||
crid: cr.outputs.crOut | ||
tags: tags | ||
} | ||
} | ||
|
||
// AML compute cluster | ||
module mlwcc './modules/aml_computecluster.bicep' = { | ||
name: 'mlwcc' | ||
scope: resourceGroup(rg.name) | ||
params: { | ||
location: location | ||
workspaceName: mlw.outputs.amlsName | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
param location string | ||
param computeClusterName string = 'cpu-cluster' | ||
param workspaceName string | ||
|
||
resource amlci 'Microsoft.MachineLearningServices/workspaces/computes@2020-09-01-preview' = { | ||
name: '${workspaceName}/${computeClusterName}' | ||
location: location | ||
properties: { | ||
computeType: 'AmlCompute' | ||
properties: { | ||
vmSize: 'Standard_DS3_v2' | ||
subnet: json('null') | ||
osType: 'Linux' | ||
scaleSettings: { | ||
maxNodeCount: 4 | ||
minNodeCount: 0 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
param baseName string | ||
param location string | ||
param stoacctid string | ||
param kvid string | ||
param appinsightid string | ||
param crid string | ||
param tags object | ||
|
||
// AML workspace | ||
resource amls 'Microsoft.MachineLearningServices/workspaces@2020-09-01-preview' = { | ||
name: 'mlw-${baseName}' | ||
location: location | ||
identity: { | ||
type: 'SystemAssigned' | ||
} | ||
sku: { | ||
tier: 'basic' | ||
name: 'basic' | ||
} | ||
properties: { | ||
storageAccount: stoacctid | ||
keyVault: kvid | ||
applicationInsights: appinsightid | ||
containerRegistry: crid | ||
encryption: { | ||
status: 'Disabled' | ||
keyVaultProperties: { | ||
keyIdentifier: '' | ||
keyVaultArmId: '' | ||
} | ||
} | ||
} | ||
|
||
tags: tags | ||
} | ||
|
||
output amlsName string = amls.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
param baseName string | ||
param location string | ||
param tags object | ||
|
||
// App Insights | ||
resource appinsight 'Microsoft.Insights/components@2020-02-02-preview' = { | ||
name: 'appi-${baseName}' | ||
location: location | ||
kind: 'web' | ||
properties: { | ||
Application_Type: 'web' | ||
} | ||
|
||
tags: tags | ||
} | ||
|
||
output appinsightOut string = appinsight.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
param baseName string | ||
param location string | ||
param tags object | ||
|
||
resource cr 'Microsoft.ContainerRegistry/registries@2020-11-01-preview' = { | ||
name: 'cr${baseName}' | ||
location: location | ||
sku: { | ||
name: 'Standard' | ||
} | ||
|
||
properties: { | ||
adminUserEnabled: true | ||
} | ||
|
||
tags: tags | ||
} | ||
|
||
output crOut string = cr.id |
Oops, something went wrong.