Missing JSON Template Link for "Add to an Index Using the Push API" Exercise

Vladislav Sorokin 5 Reputation points
2024-06-14T09:22:14.64+00:00

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
      }
    }
  ]
}

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,725 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 9,185 Reputation points Microsoft Vendor
    2024-06-18T08:02:22.29+00:00

    Hi Vladislav Sorokin,
    Thank you for reaching out on the Microsoft Q&A Forum.

    It seems like you're following the "Add to an Index Using the Push API" exercise in the Implement Knowledge Mining with Azure AI Search learning path (AI-102), and you're looking for the JSON template file for deploying resources.

    You can find guidance on deploying resources using a custom template in the Azure documentation. Here is the link to the relevant page, which provides instructions and examples for using Azure Resource Manager (ARM) templates: https://learn.microsoft.com/en-us/azure/search/search-get-started-arm?source=recommendations

    This should help you find the necessary JSON template file and complete the exercise. If you have any further questions or need additional assistance, please let me know!

    If you have found the answer provided to be helpful, please click on the "Accept Answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.