I'm following the "Add to an Index Using the Push API" exercise in the Implement Knowledge Mining with Azure AI Search learning path (AI-102). The instructions suggest deploying resources using a custom template, but they only provide a screenshot without a link to the necessary JSON template file.
Could you please provide the template file or guide on where to find it?
Thank you!
P.S.
Below is my attempt to create the JSON template based on the screenshot provided. Can you review and suggest any revisions?
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourcePrefix": {
"type": "string",
"metadata": {
"description": "Globally unique prefix for all resources"
}
},
"location": {
"type": "string",
"defaultValue": "West Europe",
"allowedValues": [
"West Europe",
"UK South",
"UK West",
"East US",
"West US"
],
"metadata": {
"description": "Location for all resources"
}
},
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_ZRS",
"Premium_LRS"
],
"metadata": {
"description": "Storage Account type"
}
},
"searchServiceSku": {
"type": "string",
"defaultValue": "standard",
"allowedValues": [
"basic",
"standard",
"storage_optimized_l1",
"storage_optimized_l2"
],
"metadata": {
"description": "Search Service SKU"
}
}
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01",
"name": "[concat(parameters('resourcePrefix'), 'storage')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('storageAccountType')]"
},
"kind": "StorageV2",
"properties": {}
},
{
"type": "Microsoft.CognitiveServices/accounts",
"apiVersion": "2017-04-18",
"name": "[concat(parameters('resourcePrefix'), 'cog')]",
"location": "[parameters('location')]",
"sku": {
"name": "S1",
"tier": "Standard"
},
"kind": "CognitiveServices",
"properties": {
"apiProperties": {}
}
},
{
"type": "Microsoft.Search/searchServices",
"apiVersion": "2015-08-19",
"name": "[concat(parameters('resourcePrefix'), 'search')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('searchServiceSku')]"
},
"properties": {
"replicaCount": 1,
"partitionCount": 1
}
}
]
}