TestCases/SVT/Search/TestData/Template_Search_All_Compliant.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "ResourceName": { "type": "string", "minLength": 2, "maxLength": 60, "metadata": { "description": "Service name must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and is limited between 2 and 60 characters in length." }, "defaultValue": "azsdktestsearch-compliant" }, "location": { "type": "string", "defaultValue": "southeastasia" }, "sku": { "type": "string", "defaultValue": "basic", "allowedValues": [ "free", "basic", "standard", "standard2", "standard3" ], "metadata": { "description": "The SKU of the search service you want to create. E.g. free or standard" } }, "replicaCount": { "type": "int", "minValue": 1, "maxValue": 12, "defaultValue": 3, "metadata": { "description": "Replicas distribute search workloads across the service. You need 2 or more to support high availability (applies to Basic and Standard only)." } }, "partitionCount": { "type": "int", "allowedValues": [ 1, 2, 3, 4, 6, 12 ], "defaultValue": 1, "metadata": { "description": "Partitions allow for scaling of document count as well as faster indexing by sharding your index over multiple Azure Search units." } }, "hostingMode": { "type": "string", "defaultValue": "default", "allowedValues": [ "default", "highDensity" ], "metadata": { "description": "Applicable only for SKU set to standard3. You can set this property to enable a single, high density partition that allows up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU." } }, "storageAccountName": { "type": "string", "defaultValue": "azsdkteststoragecommon" } }, "resources": [ { "apiVersion": "2015-08-19", "name": "[parameters('ResourceName')]", "type": "Microsoft.Search/searchServices", "location": "[parameters('location')]", "sku": { "name": "[toLower(parameters('sku'))]" }, "properties": { "replicaCount": "[parameters('replicaCount')]", "partitionCount": "[parameters('partitionCount')]", "hostingMode": "[parameters('hostingMode')]" } }, { "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", "name": "[concat(parameters('ResourceName'), '/', 'Microsoft.Insights/service')]", "dependsOn": [ "[resourceId('Microsoft.Search/searchServices', parameters('ResourceName'))]" ], "apiVersion": "2015-07-01", "properties": { "storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]", "logs": [ { "category": "OperationLogs", "enabled": true, "retentionPolicy": { "days": 365, "enabled": true } } ] } } ] } |