|
20 | 20 | "description": "Friendly name." |
21 | 21 | } |
22 | 22 | }, |
| 23 | + "kind": { |
| 24 | + "type": "string", |
| 25 | + "defaultValue": "Default", |
| 26 | + "metadata": { |
| 27 | + "description": "Specifies the Kind of the workspace." |
| 28 | + } |
| 29 | + }, |
23 | 30 | "location": { |
24 | 31 | "type": "string", |
25 | 32 | "metadata": { |
|
395 | 402 | "metadata": { |
396 | 403 | "description": "Managed network settings to be used for the workspace. If not specified, isolation mode Disabled is the default" |
397 | 404 | } |
| 405 | + }, |
| 406 | + "spark_runtime_version": { |
| 407 | + "type": "string", |
| 408 | + "metadata": { |
| 409 | + "description": "spark version to be used by all feature sets" |
| 410 | + } |
| 411 | + }, |
| 412 | + "offline_store_connection_name": { |
| 413 | + "type": "string", |
| 414 | + "defaultValue": "", |
| 415 | + "metadata": { |
| 416 | + "description": "Feature store offline store config" |
| 417 | + } |
| 418 | + }, |
| 419 | + "online_store_connection_name": { |
| 420 | + "type": "string", |
| 421 | + "defaultValue": "", |
| 422 | + "metadata": { |
| 423 | + "description": "Feature store online store config" |
| 424 | + } |
| 425 | + }, |
| 426 | + "offline_store_connection_target": { |
| 427 | + "type": "string", |
| 428 | + "defaultValue": "", |
| 429 | + "metadata": { |
| 430 | + "description": "Feature store offline store connection target" |
| 431 | + } |
| 432 | + }, |
| 433 | + "materialization_identity_client_id": { |
| 434 | + "type": "string", |
| 435 | + "defaultValue": "", |
| 436 | + "metadata": { |
| 437 | + "description": "Feature store offline store connection credential client id" |
| 438 | + } |
| 439 | + }, |
| 440 | + "materialization_identity_resource_id": { |
| 441 | + "type": "string", |
| 442 | + "defaultValue": "", |
| 443 | + "metadata": { |
| 444 | + "description": "Feature store offline store connection credential resource id" |
| 445 | + } |
| 446 | + }, |
| 447 | + "setup_materialization_store": { |
| 448 | + "type": "string", |
| 449 | + "defaultValue": "false", |
| 450 | + "allowedValues": [ |
| 451 | + "false", |
| 452 | + "true" |
| 453 | + ], |
| 454 | + "metadata": { |
| 455 | + "description": "Whether to set up materialization store" |
| 456 | + } |
398 | 457 | } |
399 | 458 | }, |
400 | 459 | "variables": { |
|
425 | 484 | } |
426 | 485 | }, |
427 | 486 | "defaultPEConnections": "[array(variables('privateEndpointSettings'))]", |
428 | | - "privateEndpointDeploymentName": "[concat('DeployPrivateEndpoint-', uniqueString(parameters('privateEndpointName')))]" |
| 487 | + "privateEndpointDeploymentName": "[concat('DeployPrivateEndpoint-', uniqueString(parameters('privateEndpointName')))]", |
| 488 | + "offlineStoreConnectionName": "[if(equals(parameters('offline_store_connection_name'), ''), 'OfflineStoreConnectionName', parameters('offline_store_connection_name'))]" |
429 | 489 | }, |
430 | 490 | "resources": [ |
431 | 491 | { |
|
555 | 615 | "apiVersion": "2022-12-01-preview", |
556 | 616 | "tags": "[parameters('tagValues')]", |
557 | 617 | "name": "[parameters('workspaceName')]", |
| 618 | + "kind": "[parameters('kind')]", |
558 | 619 | "location": "[parameters('location')]", |
559 | 620 | "dependsOn": [ |
560 | 621 | "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]", |
|
586 | 647 | "SearchAccountArmId": "[parameters('encryption_search_resourceid')]" |
587 | 648 | }, |
588 | 649 | "primaryUserAssignedIdentity": "[parameters('primaryUserAssignedIdentity')]", |
589 | | - "managedNetwork": "[parameters('managedNetwork')]" |
590 | | - } |
| 650 | + "managedNetwork": "[parameters('managedNetwork')]", |
| 651 | + "featureStoreSettings": { |
| 652 | + "computeruntime": { |
| 653 | + "SparkRuntimeVersion": "[parameters('spark_runtime_version')]" |
| 654 | + }, |
| 655 | + "offlinestoreconnectionname": "[parameters('offline_store_connection_name')]", |
| 656 | + "onlinestoreconnectionname": "[parameters('online_store_connection_name')]" |
| 657 | + } |
| 658 | + }, |
| 659 | + "resources": [{ |
| 660 | + "condition": "[equals(parameters('setup_materialization_store'), 'true')]", |
| 661 | + "type": "connections", |
| 662 | + "apiVersion": "2022-05-01", |
| 663 | + "name": "[variables('offlineStoreConnectionName')]", |
| 664 | + "location": "[parameters('location')]", |
| 665 | + "dependsOn": [ |
| 666 | + "[resourceId('Microsoft.MachineLearningServices/workspaces', parameters('workspaceName'))]" |
| 667 | + ], |
| 668 | + "identity": { |
| 669 | + "type": "SystemAssigned" |
| 670 | + }, |
| 671 | + "properties": { |
| 672 | + "category": "AzureDataLakeGen2", |
| 673 | + "target": "[parameters('offline_store_connection_target')]", |
| 674 | + "authType": "ManagedIdentity", |
| 675 | + "credentials": { |
| 676 | + "clientid": "[parameters('materialization_identity_client_id')]", |
| 677 | + "resourceid": "[parameters('materialization_identity_resource_id')]" |
| 678 | + } |
| 679 | + } |
| 680 | + }] |
591 | 681 | }, |
| 682 | + { |
| 683 | + "condition": "[equals(parameters('setup_materialization_store'), 'true')]", |
| 684 | + "type": "Microsoft.Resources/deployments", |
| 685 | + "apiVersion": "2022-05-01", |
| 686 | + "name": "[concat(parameters('workspaceName'), '-update-UAI')]", |
| 687 | + "dependsOn": [ |
| 688 | + "[parameters('workspaceName')]" |
| 689 | + ], |
| 690 | + "properties": { |
| 691 | + "mode": "Incremental", |
| 692 | + "parameters": {}, |
| 693 | + "template": { |
| 694 | + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
| 695 | + "contentVersion": "1.0.0.1", |
| 696 | + "resources": [{ |
| 697 | + "apiVersion": "2022-01-01-preview", |
| 698 | + "name": "[parameters('workspaceName')]", |
| 699 | + "location": "[parameters('location')]", |
| 700 | + "kind": "featurestore", |
| 701 | + "type": "Microsoft.MachineLearningServices/workspaces", |
| 702 | + "identity": { |
| 703 | + "type": "SystemAssigned,UserAssigned", |
| 704 | + "userAssignedIdentities": { |
| 705 | + "[parameters('materialization_identity_resource_id')]": {} |
| 706 | + } |
| 707 | + }, |
| 708 | + "properties": { |
| 709 | + "friendlyName": "[parameters('friendlyName')]", |
| 710 | + "description": "[parameters('description')]", |
| 711 | + "storageAccount": "[variables('storageAccount')]", |
| 712 | + "keyVault": "[variables('keyVault')]", |
| 713 | + "applicationInsights": "[variables('applicationInsights')]", |
| 714 | + "containerRegistry": "[if(not(equals(parameters('containerRegistryOption'), 'none')), variables('containerRegistry'), json('null'))]", |
| 715 | + "hbiWorkspace": "[parameters('confidential_data')]", |
| 716 | + "imageBuildCompute": "[parameters('imageBuildCompute')]", |
| 717 | + "publicNetworkAccess": "[parameters('publicNetworkAccess')]", |
| 718 | + "softDeleteEnabled": "[parameters('soft_delete_enabled')]", |
| 719 | + "allowRecoverSoftDeletedWorkspace": "[parameters('allow_recover_softdeleted_workspace')]", |
| 720 | + "encryption": { |
| 721 | + "status": "[parameters('encryption_status')]", |
| 722 | + "keyVaultProperties": { |
| 723 | + "keyVaultArmId": "[parameters('cmk_keyvault')]", |
| 724 | + "keyIdentifier": "[parameters('resource_cmk_uri')]" |
| 725 | + }, |
| 726 | + "cosmosDbArmId": "[parameters('encryption_cosmosdb_resourceid')]", |
| 727 | + "storageAccountArmId": "[parameters('encryption_storage_resourceid')]", |
| 728 | + "SearchAccountArmId": "[parameters('encryption_search_resourceid')]" |
| 729 | + }, |
| 730 | + "primaryUserAssignedIdentity": "[parameters('primaryUserAssignedIdentity')]", |
| 731 | + "featureStoreSettings": { |
| 732 | + "computeruntime": { |
| 733 | + "SparkRuntimeVersion": "[parameters('spark_runtime_version')]" |
| 734 | + }, |
| 735 | + "offlinestoreconnectionname": "[parameters('offline_store_connection_name')]", |
| 736 | + "onlinestoreconnectionname": "[parameters('online_store_connection_name')]" |
| 737 | + } |
| 738 | + } |
| 739 | + }] |
| 740 | + } |
| 741 | + } |
| 742 | + }, |
592 | 743 | { |
593 | 744 | "condition": "[and(variables('enablePE'), not(equals(parameters('privateEndpointType'), 'none')))]", |
594 | 745 | "type": "Microsoft.Resources/deployments", |
|
0 commit comments