|
119 | 119 | }, |
120 | 120 | "applicationInsightsOption": { |
121 | 121 | "type": "string", |
122 | | - "defaultValue": "new", |
| 122 | + "defaultValue": "none", |
123 | 123 | "allowedValues": [ |
124 | | - "new", |
| 124 | + "none", |
125 | 125 | "existing" |
126 | 126 | ], |
127 | 127 | "metadata": { |
|
161 | 161 | "type": "string", |
162 | 162 | "defaultValue": "none", |
163 | 163 | "allowedValues": [ |
164 | | - "new", |
165 | 164 | "existing", |
166 | 165 | "none" |
167 | 166 | ], |
|
778 | 777 | "networkAcls": "[if(equals(parameters('keyVaultBehindVNet'), 'true'), variables('networkRuleSetBehindVNet'), json('null'))]" |
779 | 778 | } |
780 | 779 | }, |
781 | | - { |
782 | | - "condition": "[and(variables('enablePE'), equals(parameters('containerRegistryOption'), 'new'))]", |
783 | | - "type": "Microsoft.ContainerRegistry/registries", |
784 | | - "apiVersion": "2019-05-01", |
785 | | - "tags": "[parameters('tagValues')]", |
786 | | - "name": "[parameters('containerRegistryName')]", |
787 | | - "dependsOn": [ |
788 | | - "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), parameters('subnetName'))]" |
789 | | - ], |
790 | | - "location": "[parameters('containerRegistryLocation')]", |
791 | | - "sku": { |
792 | | - "name": "[parameters('containerRegistrySku')]" |
793 | | - }, |
794 | | - "properties": { |
795 | | - "adminUserEnabled": true, |
796 | | - "networkRuleSet": "[if(equals(parameters('containerRegistryBehindVNet'), 'true'), variables('networkRuleSetBehindVNet'), json('null'))]" |
797 | | - } |
798 | | - }, |
799 | | - { |
800 | | - "condition": "[and(variables('enablePE'), equals(parameters('applicationInsightsOption'), 'new'))]", |
801 | | - "type": "Microsoft.OperationalInsights/workspaces", |
802 | | - "tags": "[parameters('tagValues')]", |
803 | | - "apiVersion": "2020-08-01", |
804 | | - "name": "[parameters('logAnalyticsName')]", |
805 | | - "location": "[if(or(equals(toLower(parameters('applicationInsightsLocation')),'westcentralus'), equals(toLower(parameters('applicationInsightsLocation')),'eastus2euap'), equals(toLower(parameters('applicationInsightsLocation')),'centraluseuap')),'southcentralus', parameters('applicationInsightsLocation'))]", |
806 | | - "kind": "web", |
807 | | - "properties": { |
808 | | - "Application_Type": "web" |
809 | | - } |
810 | | - }, |
811 | | - { |
812 | | - "condition": "[and(variables('enablePE'), equals(parameters('applicationInsightsOption'), 'new'))]", |
813 | | - "type": "Microsoft.Insights/components", |
814 | | - "tags": "[parameters('tagValues')]", |
815 | | - "apiVersion": "2020-02-02-preview", |
816 | | - "name": "[parameters('applicationInsightsName')]", |
817 | | - "location": "[if(or(equals(toLower(parameters('applicationInsightsLocation')),'westcentralus'), equals(toLower(parameters('applicationInsightsLocation')),'eastus2euap'), equals(toLower(parameters('applicationInsightsLocation')),'centraluseuap')),'southcentralus', parameters('applicationInsightsLocation'))]", |
818 | | - "kind": "web", |
819 | | - "dependsOn": [ |
820 | | - "[resourceId('Microsoft.OperationalInsights/workspaces', parameters('logAnalyticsName'))]" |
821 | | - ], |
822 | | - "properties": { |
823 | | - "Application_Type": "web", |
824 | | - "WorkspaceResourceId": "[parameters('logAnalyticsArmId')]" |
825 | | - } |
826 | | - }, |
827 | 780 | { |
828 | 781 | "condition": "[variables('enablePE')]", |
829 | 782 | "type": "Microsoft.MachineLearningServices/workspaces", |
|
834 | 787 | "location": "[parameters('location')]", |
835 | 788 | "dependsOn": [ |
836 | 789 | "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]", |
837 | | - "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]", |
838 | | - "[resourceId('Microsoft.Insights/components', parameters('applicationInsightsName'))]", |
839 | | - "[resourceId('Microsoft.ContainerRegistry/registries', parameters('containerRegistryName'))]" |
| 790 | + "[resourceId('Microsoft.KeyVault/vaults', parameters('keyVaultName'))]" |
840 | 791 | ], |
841 | 792 | "identity": "[parameters('identity')]", |
842 | 793 | "properties": { |
|
846 | 797 | "keyVault": "[variables('keyVault')]", |
847 | 798 | "applicationInsights": "[variables('applicationInsights')]", |
848 | 799 | "containerRegistry": "[if(not(equals(parameters('containerRegistryOption'), 'none')), variables('containerRegistry'), json('null'))]", |
| 800 | + "applicationInsights": "[if(not(equals(parameters('applicationInsightsOption'), 'none')), variables('containerRegistry'), json('null'))]", |
849 | 801 | "hbiWorkspace": "[parameters('confidential_data')]", |
850 | 802 | "imageBuildCompute": "[parameters('imageBuildCompute')]", |
851 | 803 | "publicNetworkAccess": "[parameters('publicNetworkAccess')]", |
|
920 | 872 | "resourceid": "[variables('materializationIdentity')]" |
921 | 873 | } |
922 | 874 | } |
923 | | - }, |
924 | | - { |
925 | | - "condition": "[and(equals(parameters('endpoint_option'), 'new'), variables('isWorkspaceHub'))]", |
926 | | - "type": "endpoints", |
927 | | - "apiVersion": "2023-08-01-preview", |
928 | | - "name": "Azure.OpenAI", |
929 | | - "properties": { |
930 | | - "name": "Azure.OpenAI", |
931 | | - "endpointType": "Azure.OpenAI", |
932 | | - "associatedResourceId": "[if(equals(parameters('endpoint_resource_id'), 'null'), null(), parameters('endpoint_resource_id'))]" |
933 | | - }, |
934 | | - "dependsOn": [ |
935 | | - "[parameters('workspaceName')]" |
936 | | - ] |
937 | | - }, |
938 | | - { |
939 | | - "condition": "[and(equals(parameters('endpoint_kind'), 'AIServices'), equals(parameters('endpoint_option'), 'new'), variables('isWorkspaceHub'))]", |
940 | | - "type": "endpoints", |
941 | | - "apiVersion": "2023-08-01-preview", |
942 | | - "name": "Azure.ContentSafety", |
943 | | - "properties": { |
944 | | - "name": "Azure.ContentSafety", |
945 | | - "endpointType": "Azure.ContentSafety", |
946 | | - "associatedResourceId": "[if(equals(parameters('endpoint_resource_id'), 'null'), null(), parameters('endpoint_resource_id'))]" |
947 | | - }, |
948 | | - "dependsOn": [ |
949 | | - "[parameters('workspaceName')]" |
950 | | - ] |
951 | | - }, |
952 | | - { |
953 | | - "condition": "[and(equals(parameters('endpoint_kind'), 'AIServices'), equals(parameters('endpoint_option'), 'new'), variables('isWorkspaceHub'))]", |
954 | | - "type": "endpoints", |
955 | | - "apiVersion": "2023-08-01-preview", |
956 | | - "name": "Azure.Speech", |
957 | | - "properties": { |
958 | | - "name": "Azure.Speech", |
959 | | - "endpointType": "Azure.Speech", |
960 | | - "associatedResourceId": "[if(equals(parameters('endpoint_resource_id'), 'null'), null(), parameters('endpoint_resource_id'))]" |
961 | | - }, |
962 | | - "dependsOn": [ |
963 | | - "[parameters('workspaceName')]" |
964 | | - ] |
965 | 875 | } |
966 | 876 | ] |
967 | 877 | }, |
|
0 commit comments