Adding Sample search scenario and mcr parameters
This commit is contained in:
Родитель
9113c23e59
Коммит
77e8964f11
|
@ -29,4 +29,4 @@ Invoke-Expression -command "az cosmosdb collection create --name $cosmosDBAccoun
|
|||
write-host "Creating Azure Storage resumes container"
|
||||
Invoke-Expression -command "az storage container create --account-name $storageAccountName --account-key $storageAccountKey --name resumes"
|
||||
|
||||
& .\UploadSearchConfiguration.ps1 @searchConfigParams
|
||||
# & .\UploadSearchConfiguration.ps1 @searchConfigParams
|
|
@ -1,9 +1,3 @@
|
|||
{
|
||||
"storageAccountName": "jobs11backendstorage",
|
||||
"searchApiKey": "8BA2971924F88998DA8955C0E23C299B",
|
||||
"storageAccountConnectionString": "DefaultEndpointsProtocol=https;AccountName=jobs11backendstorage;AccountKey=FSiOpnSb4VtPOMP2djyxx8GyUEVY5fT++TTTucp9xxgT5NKp4qWYMVNQmS/T0xnQ4rt8+HyhD3w2fIlF+utPJg==;EndpointSuffix=core.windows.net;",
|
||||
"searchAccountName": "jobs11search",
|
||||
"cosmosDBConnectionString": "AccountEndpoint=https://jobs11-db.documents.azure.com:443/;AccountKey=xyVAIbPXRnpQS3yyA0EoHQ0qTOWL1qe3I2b1PjpyoP64aLthCpgOPvuKabLGhaVo6in5KpI0vQ3ENUwAw8XbOQ==;Database=db;",
|
||||
"cosmosDBAccountName": "jobs11-db",
|
||||
"cognitiveServiceAccountKey": "b0da73c108204ba6bb31fb9eef759d7c"
|
||||
|
||||
}
|
||||
|
|
|
@ -286,7 +286,7 @@
|
|||
"outputs": {
|
||||
"skillsCognitiveSearchAPIUrl": {
|
||||
"type": "string",
|
||||
"value": "[concat(variables('cog-search-function-app-name'), 'azurewebsites.net/api/azure_cognitive_search' )]"
|
||||
"value": "[concat(variables('cog-search-function-app-name'), 'azurewebsites.net/api/azure_cognitive_search')]"
|
||||
},
|
||||
"searchAccountName": {
|
||||
"type": "string",
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
"parameters": {
|
||||
"prefixparam": {
|
||||
"type": "string",
|
||||
"value": "jobs11"
|
||||
"value": "jobs12"
|
||||
},
|
||||
"dockerImageName": {
|
||||
"type": "string",
|
||||
"value": "kabirkhan14/azure-functions-skills-extractor"
|
||||
"value": "mcr.microsoft.com/wwllab/skills/skills-extractor-cognitive-search"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
## Prerequisites
|
||||
|
||||
Before running this sample, you must have the following:
|
||||
|
||||
* Azure Powershell Module
|
||||
|
||||
```
|
||||
Install-Module -Name Az -AllowClobber -Scope CurrentUser
|
||||
```
|
||||
|
||||
## Deployment Quickstart
|
||||
|
||||
Deploy a full sample search scenario with Azure Cosmos DB, Blob Storage, Azure Search and the Skills Extractor as an Azure Function.
|
||||
|
||||
Open a Powershell prompt and run the following.
|
||||
```powershell
|
||||
git clone https://github.com/Microsoft/SkillsExtractorCognitiveSearch
|
||||
cd SkillsExtractorCognitiveSearch\deployment
|
||||
```
|
||||
|
||||
You only need to edit 1 parameter in azuredeploy.parameters.json
|
||||
Change YOUR_PREFIX_HERE to something unique
|
||||
|
||||
`azuredeploy.parameters.json`
|
||||
```json{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"prefixparam": {
|
||||
"type": "string",
|
||||
"value": "{YOUR_PREFIX_HERE}"
|
||||
},
|
||||
"dockerImageName": {
|
||||
"type": "string",
|
||||
"value": "mcr.microsoft.com/wwllab/skills/skills-extractor-cognitive-search"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Login to your Azure Account using Powershell
|
||||
```powershell
|
||||
Connect-AzAccount
|
||||
```
|
||||
|
||||
Set the Azure Subscription you want to use
|
||||
```powershell
|
||||
$context = Get-AzSubscription -SubscriptionId ...
|
||||
Set-AzContext $context
|
||||
```
|
||||
|
||||
Deploy the ARM Template and Search Configuration
|
||||
```powershell
|
||||
.\Deploy.ps1 -ResourceGroupName MyResourceGroupName -ResourceGroupLocation westus2
|
||||
```
|
Загрузка…
Ссылка в новой задаче