From 12184412615b52ae98cba57921a7586e6970c436 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 2 Sep 2025 20:50:29 +0300 Subject: AI Deploy. --- ...ice-gateway-twine-portal-ai - Web Deploy.pubxml | 30 ++++++ .../profile.arm.json | 113 +++++++++++++++++++++ .../Tango.Portal.Chat.Web/appsettings.json | 9 +- 3 files changed, 150 insertions(+), 2 deletions(-) create mode 100644 Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml create mode 100644 Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json (limited to 'Software/Visual_Studio_22') diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml new file mode 100644 index 000000000..e6ca68390 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml @@ -0,0 +1,30 @@ + + + + + MSDeploy + /subscriptions/10c8aa60-3b15-4e0d-b412-6aeef90e5e91/resourceGroups/Tango/providers/Microsoft.Web/sites/machineservice-gateway/slots/twine-portal-ai + Tango + AzureWebSite + Release + Any CPU + https://machineservice-gateway-twine-portal-ai.azurewebsites.net + true + false + f044e4a1-1d9c-b93c-28c5-e9e5a44a038d + machineservice-gateway-twine-portal-ai.scm.azurewebsites.net:443 + machineservice-gateway__twine-portal-ai + + true + WMSVC + true + true + + <_SavePWD>false + <_DestinationType>AzureWebSite + false + + \ No newline at end of file diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json new file mode 100644 index 000000000..e07bae316 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json @@ -0,0 +1,113 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_dependencyType": "compute.appService.windows" + }, + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "Tango", + "metadata": { + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "westeurope", + "metadata": { + "description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support." + } + }, + "resourceName": { + "type": "string", + "defaultValue": "twine-portal-ai", + "metadata": { + "description": "Name of the main resource to be created by this template." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "variables": { + "appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]" + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "location": "[parameters('resourceLocation')]", + "name": "[parameters('resourceName')]", + "type": "Microsoft.Web/sites", + "apiVersion": "2015-08-01", + "tags": { + "[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty" + }, + "dependsOn": [ + "[variables('appServicePlan_ResourceId')]" + ], + "kind": "app", + "properties": { + "name": "[parameters('resourceName')]", + "kind": "app", + "httpsOnly": true, + "reserved": false, + "serverFarmId": "[variables('appServicePlan_ResourceId')]", + "siteConfig": { + "metadata": [ + { + "name": "CURRENT_STACK", + "value": "dotnetcore" + } + ] + } + }, + "identity": { + "type": "SystemAssigned" + } + }, + { + "location": "[parameters('resourceLocation')]", + "name": "[variables('appServicePlan_name')]", + "type": "Microsoft.Web/serverFarms", + "apiVersion": "2015-08-01", + "sku": { + "name": "S1", + "tier": "Standard", + "family": "S", + "size": "S1" + }, + "properties": { + "name": "[variables('appServicePlan_name')]" + } + } + ] + } + } + } + ] +} \ No newline at end of file diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json index c5bebc38f..f2ed0fa2e 100644 --- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json @@ -10,11 +10,16 @@ "Endpoint": "https://api.openai.com/v1/chat/completions", "ApiKey": "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", "Model": "gpt-4o-mini", - "Temperature": 0.2 + "Temperature": 0.2, + "AnswererAssistantId": "asst_JRKGFqWUYG2rP6CptUgyVcJk", + "DocsAssistantId": "asst_HQ0C8tsdtzjENITM4qq6kFpz" }, "ADX": { "ClusterUri": "https://adx-twine.westeurope.kusto.windows.net/", - "Database": "twine-dev" + "Database": "twine-dev", + "TenantId": "2ebd63a5-bc2f-41dc-9066-4409ed5e5dd4", + "ClientId": "ec612854-7abc-457b-808a-5d0c5ba80c57", + "ClientSecret": "C6n8Q~-NgsAQ6yYJwoNABkcVUNSm2~8-8xNgaa32" }, "AllowedHosts": "*" } \ No newline at end of file -- cgit v1.3.1