From 2fb78f044f45e2208fbd2935cf79c3ad92822f8a Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Fri, 9 Jun 2023 18:47:05 +0530 Subject: [PATCH 01/22] fix: Bicep Module for Bing Resource --- .../cognitiveservices/bing-resource/README.md | 57 +++++++++++ .../bing-resource/main.bicep | 54 +++++++++++ .../cognitiveservices/bing-resource/main.json | 96 +++++++++++++++++++ .../bing-resource/metadata.json | 6 ++ .../bing-resource/test/main.test.bicep | 35 +++++++ .../bing-resource/version.json | 8 ++ 6 files changed, 256 insertions(+) create mode 100644 modules/cognitiveservices/bing-resource/README.md create mode 100644 modules/cognitiveservices/bing-resource/main.bicep create mode 100644 modules/cognitiveservices/bing-resource/main.json create mode 100644 modules/cognitiveservices/bing-resource/metadata.json create mode 100644 modules/cognitiveservices/bing-resource/test/main.test.bicep create mode 100644 modules/cognitiveservices/bing-resource/version.json diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md new file mode 100644 index 0000000000..a69ff98b65 --- /dev/null +++ b/modules/cognitiveservices/bing-resource/README.md @@ -0,0 +1,57 @@ +# Bing Resource + +This module deploys Azure Bing Resource + +## Description + +Azure Bing resource refers to the integration of Bing's search capabilities into the Azure platform. Azure provides the Azure Cognitive Search service, which allows you to incorporate powerful search functionality, including web search, image search, news search, video search, and more, using Bing's search algorithms. +This Bicep Module helps to create Bing Search Kind resource + +## Parameters + +| Name | Type | Required | Description | +| :------------------ | :------: | :------: | :---------------------------------------------------------------------------------------------------------- | +| `accountName` | `string` | Yes | Required. The name of the Bing Search account. | +| `kind` | `string` | No | Optional. Bing search kind. | +| `skuName` | `string` | No | Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind | +| `statisticsEnabled` | `bool` | No | Optional. Enable or disable Bing statistics. | +| `tags` | `object` | No | Optional. Tags of the resource. | + +## Outputs + +| Name | Type | Description | +| :------- | :----: | :-------------- | +| id | string | Bing account ID | +| endpoint | string | Bing Endpoint | + +## Examples + +### Example 1 + +Deploy a Bing Search v7 resource with the free SKU + +``` +module bing-search-resource '../main.bicep' = { + name: 'bing-search-resource' + params: { + kind: 'Bing.Search.v7' + accountName: 'bing-search-resource-name-01' + skuName: 'F1' + } +} +``` + +### Example 2 + +Deploy a Bing Custom Search resource with the free SKU + +``` +module bing-search-resource '../main.bicep' = { + name: 'bing-search-resource' + params: { + kind: 'Bing.CustomSearch' + accountName: 'bing-search-resource-name-02' + skuName: 'F0' + } +} +``` diff --git a/modules/cognitiveservices/bing-resource/main.bicep b/modules/cognitiveservices/bing-resource/main.bicep new file mode 100644 index 0000000000..53feea24df --- /dev/null +++ b/modules/cognitiveservices/bing-resource/main.bicep @@ -0,0 +1,54 @@ +@description('Required. The name of the Bing Search account.') +param accountName string + +@description('Optional. Bing search kind.') +@allowed( + [ + 'Bing.Search.v7' + 'Bing.CustomSearch' + ] +) +param kind string = 'Bing.Search.v7' + +@description('Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind') +@allowed( + [ + 'F0' + 'F1' + 'S1' + 'S2' + 'S3' + 'S4' + 'S5' + 'S6' + 'S7' + 'S8' + 'S9' + ] +) +param skuName string = 'F1' + +@description('Optional. Enable or disable Bing statistics.') +param statisticsEnabled bool = false + +@description('Optional. Tags of the resource.') +param tags object = {} + +resource BingAccount 'Microsoft.Bing/accounts@2020-06-10' = { + name: accountName + location: 'global' + tags: tags + + kind: kind + properties: { + statisticsEnabled: statisticsEnabled + } + sku: { + name: skuName + } +} + +@description( 'Bing account ID') +output id string = BingAccount.id +@description( 'Bing Endpoint') +output endpoint string = BingAccount.properties.endpoint diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json new file mode 100644 index 0000000000..607985949f --- /dev/null +++ b/modules/cognitiveservices/bing-resource/main.json @@ -0,0 +1,96 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.16.2.56959", + "templateHash": "5866067334905837385" + } + }, + "parameters": { + "accountName": { + "type": "string", + "metadata": { + "description": "Required. The name of the Bing Search account." + } + }, + "kind": { + "type": "string", + "defaultValue": "Bing.Search.v7", + "allowedValues": [ + "Bing.Search.v7", + "Bing.CustomSearch" + ], + "metadata": { + "description": "Optional. Bing search kind." + } + }, + "skuName": { + "type": "string", + "defaultValue": "F1", + "allowedValues": [ + "F0", + "F1", + "S1", + "S2", + "S3", + "S4", + "S5", + "S6", + "S7", + "S8", + "S9" + ], + "metadata": { + "description": "Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind" + } + }, + "statisticsEnabled": { + "type": "bool", + "defaultValue": false, + "metadata": { + "description": "Optional. Enable or disable Bing statistics." + } + }, + "tags": { + "type": "object", + "defaultValue": {}, + "metadata": { + "description": "Optional. Tags of the resource." + } + } + }, + "resources": [ + { + "type": "Microsoft.Bing/accounts", + "apiVersion": "2020-06-10", + "name": "[parameters('accountName')]", + "location": "global", + "tags": "[parameters('tags')]", + "kind": "[parameters('kind')]", + "properties": { + "statisticsEnabled": "[parameters('statisticsEnabled')]" + }, + "sku": { + "name": "[parameters('skuName')]" + } + } + ], + "outputs": { + "id": { + "type": "string", + "metadata": { + "description": "Bing account ID" + }, + "value": "[resourceId('Microsoft.Bing/accounts', parameters('accountName'))]" + }, + "endpoint": { + "type": "string", + "metadata": { + "description": "Bing Endpoint" + }, + "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('accountName')), '2020-06-10').endpoint]" + } + } +} \ No newline at end of file diff --git a/modules/cognitiveservices/bing-resource/metadata.json b/modules/cognitiveservices/bing-resource/metadata.json new file mode 100644 index 0000000000..2e9f816bc2 --- /dev/null +++ b/modules/cognitiveservices/bing-resource/metadata.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://aka.ms/bicep-registry-module-metadata-file-schema-v2#", + "name": "Bing Resource", + "summary": "This module deploys Azure Bing Resource", + "owner": "tanujbhatia1708" +} \ No newline at end of file diff --git a/modules/cognitiveservices/bing-resource/test/main.test.bicep b/modules/cognitiveservices/bing-resource/test/main.test.bicep new file mode 100644 index 0000000000..a1d4fb1080 --- /dev/null +++ b/modules/cognitiveservices/bing-resource/test/main.test.bicep @@ -0,0 +1,35 @@ +/* +Write deployment tests in this file. Any module that references the main +module file is a deployment test. Make sure at least one test is added. +*/ + +targetScope = 'resourceGroup' +param accountName string = 'bingsearchtest' + +// ===== // +// Tests // +// ===== // + +// Test-01 - Bing Search v7 resource + + +module test_01_Bing '../main.bicep' = { + name: 'test_01_Bing_resource' + params: { + kind: 'Bing.Search.v7' + accountName: accountName + skuName: 'F1' + } +} + + +// Test-02 - Bing Custom Search resource + +module test_02_Bing '../main.bicep' = { + name: 'test_02_Bing_resource' + params: { + kind: 'Bing.CustomSearch' + accountName: accountName + skuName: 'F0' + } +} diff --git a/modules/cognitiveservices/bing-resource/version.json b/modules/cognitiveservices/bing-resource/version.json new file mode 100644 index 0000000000..e40897e287 --- /dev/null +++ b/modules/cognitiveservices/bing-resource/version.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", + "version": "1.0", + "pathFilters": [ + "./main.json", + "./metadata.json" + ] +} \ No newline at end of file From 3713e4896f497088a90312d5b3dbc3b40ea7d3da Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Fri, 9 Jun 2023 18:50:53 +0530 Subject: [PATCH 02/22] fix: Bicep Module for Bing Resource --- modules/cognitiveservices/bing-resource/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index a69ff98b65..372823d3d0 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` +``` \ No newline at end of file From 0f7b0488a773a9c6f39b924b1b6b354f1ac40871 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Mon, 12 Jun 2023 11:48:57 +0530 Subject: [PATCH 03/22] fix: Bicep Module for Bing Resource --- .../cognitiveservices/bing-resource/README.md | 2 +- .../cognitiveservices/bing-resource/main.json | 96 ------------------- 2 files changed, 1 insertion(+), 97 deletions(-) delete mode 100644 modules/cognitiveservices/bing-resource/main.json diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index 372823d3d0..a69ff98b65 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` \ No newline at end of file +``` diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json deleted file mode 100644 index 607985949f..0000000000 --- a/modules/cognitiveservices/bing-resource/main.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.16.2.56959", - "templateHash": "5866067334905837385" - } - }, - "parameters": { - "accountName": { - "type": "string", - "metadata": { - "description": "Required. The name of the Bing Search account." - } - }, - "kind": { - "type": "string", - "defaultValue": "Bing.Search.v7", - "allowedValues": [ - "Bing.Search.v7", - "Bing.CustomSearch" - ], - "metadata": { - "description": "Optional. Bing search kind." - } - }, - "skuName": { - "type": "string", - "defaultValue": "F1", - "allowedValues": [ - "F0", - "F1", - "S1", - "S2", - "S3", - "S4", - "S5", - "S6", - "S7", - "S8", - "S9" - ], - "metadata": { - "description": "Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind" - } - }, - "statisticsEnabled": { - "type": "bool", - "defaultValue": false, - "metadata": { - "description": "Optional. Enable or disable Bing statistics." - } - }, - "tags": { - "type": "object", - "defaultValue": {}, - "metadata": { - "description": "Optional. Tags of the resource." - } - } - }, - "resources": [ - { - "type": "Microsoft.Bing/accounts", - "apiVersion": "2020-06-10", - "name": "[parameters('accountName')]", - "location": "global", - "tags": "[parameters('tags')]", - "kind": "[parameters('kind')]", - "properties": { - "statisticsEnabled": "[parameters('statisticsEnabled')]" - }, - "sku": { - "name": "[parameters('skuName')]" - } - } - ], - "outputs": { - "id": { - "type": "string", - "metadata": { - "description": "Bing account ID" - }, - "value": "[resourceId('Microsoft.Bing/accounts', parameters('accountName'))]" - }, - "endpoint": { - "type": "string", - "metadata": { - "description": "Bing Endpoint" - }, - "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('accountName')), '2020-06-10').endpoint]" - } - } -} \ No newline at end of file From 5d81cd9ed572fa422a909ae8a4b77753a5b974a7 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Mon, 12 Jun 2023 11:51:09 +0530 Subject: [PATCH 04/22] fix: Bicep Module for Bing Resource --- .../cognitiveservices/bing-resource/main.json | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 modules/cognitiveservices/bing-resource/main.json diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json new file mode 100644 index 0000000000..607985949f --- /dev/null +++ b/modules/cognitiveservices/bing-resource/main.json @@ -0,0 +1,96 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.16.2.56959", + "templateHash": "5866067334905837385" + } + }, + "parameters": { + "accountName": { + "type": "string", + "metadata": { + "description": "Required. The name of the Bing Search account." + } + }, + "kind": { + "type": "string", + "defaultValue": "Bing.Search.v7", + "allowedValues": [ + "Bing.Search.v7", + "Bing.CustomSearch" + ], + "metadata": { + "description": "Optional. Bing search kind." + } + }, + "skuName": { + "type": "string", + "defaultValue": "F1", + "allowedValues": [ + "F0", + "F1", + "S1", + "S2", + "S3", + "S4", + "S5", + "S6", + "S7", + "S8", + "S9" + ], + "metadata": { + "description": "Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind" + } + }, + "statisticsEnabled": { + "type": "bool", + "defaultValue": false, + "metadata": { + "description": "Optional. Enable or disable Bing statistics." + } + }, + "tags": { + "type": "object", + "defaultValue": {}, + "metadata": { + "description": "Optional. Tags of the resource." + } + } + }, + "resources": [ + { + "type": "Microsoft.Bing/accounts", + "apiVersion": "2020-06-10", + "name": "[parameters('accountName')]", + "location": "global", + "tags": "[parameters('tags')]", + "kind": "[parameters('kind')]", + "properties": { + "statisticsEnabled": "[parameters('statisticsEnabled')]" + }, + "sku": { + "name": "[parameters('skuName')]" + } + } + ], + "outputs": { + "id": { + "type": "string", + "metadata": { + "description": "Bing account ID" + }, + "value": "[resourceId('Microsoft.Bing/accounts', parameters('accountName'))]" + }, + "endpoint": { + "type": "string", + "metadata": { + "description": "Bing Endpoint" + }, + "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('accountName')), '2020-06-10').endpoint]" + } + } +} \ No newline at end of file From 741a462e92d6afeef8331fc8ddcc1265db6ad0ce Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Mon, 12 Jun 2023 11:57:06 +0530 Subject: [PATCH 05/22] fix: Bicep Module for Bing Resource --- .../cognitiveservices/bing-resource/main.json | 96 ------------------- 1 file changed, 96 deletions(-) delete mode 100644 modules/cognitiveservices/bing-resource/main.json diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json deleted file mode 100644 index 607985949f..0000000000 --- a/modules/cognitiveservices/bing-resource/main.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "metadata": { - "_generator": { - "name": "bicep", - "version": "0.16.2.56959", - "templateHash": "5866067334905837385" - } - }, - "parameters": { - "accountName": { - "type": "string", - "metadata": { - "description": "Required. The name of the Bing Search account." - } - }, - "kind": { - "type": "string", - "defaultValue": "Bing.Search.v7", - "allowedValues": [ - "Bing.Search.v7", - "Bing.CustomSearch" - ], - "metadata": { - "description": "Optional. Bing search kind." - } - }, - "skuName": { - "type": "string", - "defaultValue": "F1", - "allowedValues": [ - "F0", - "F1", - "S1", - "S2", - "S3", - "S4", - "S5", - "S6", - "S7", - "S8", - "S9" - ], - "metadata": { - "description": "Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind" - } - }, - "statisticsEnabled": { - "type": "bool", - "defaultValue": false, - "metadata": { - "description": "Optional. Enable or disable Bing statistics." - } - }, - "tags": { - "type": "object", - "defaultValue": {}, - "metadata": { - "description": "Optional. Tags of the resource." - } - } - }, - "resources": [ - { - "type": "Microsoft.Bing/accounts", - "apiVersion": "2020-06-10", - "name": "[parameters('accountName')]", - "location": "global", - "tags": "[parameters('tags')]", - "kind": "[parameters('kind')]", - "properties": { - "statisticsEnabled": "[parameters('statisticsEnabled')]" - }, - "sku": { - "name": "[parameters('skuName')]" - } - } - ], - "outputs": { - "id": { - "type": "string", - "metadata": { - "description": "Bing account ID" - }, - "value": "[resourceId('Microsoft.Bing/accounts', parameters('accountName'))]" - }, - "endpoint": { - "type": "string", - "metadata": { - "description": "Bing Endpoint" - }, - "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('accountName')), '2020-06-10').endpoint]" - } - } -} \ No newline at end of file From cdaf611268bf1069588583fdb74073984c3f43a1 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Mon, 12 Jun 2023 11:57:42 +0530 Subject: [PATCH 06/22] fix: Bicep Module for Bing Resource --- .../cognitiveservices/bing-resource/README.md | 2 +- .../cognitiveservices/bing-resource/main.json | 96 +++++++++++++++++++ 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 modules/cognitiveservices/bing-resource/main.json diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index a69ff98b65..372823d3d0 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` +``` \ No newline at end of file diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json new file mode 100644 index 0000000000..607985949f --- /dev/null +++ b/modules/cognitiveservices/bing-resource/main.json @@ -0,0 +1,96 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.16.2.56959", + "templateHash": "5866067334905837385" + } + }, + "parameters": { + "accountName": { + "type": "string", + "metadata": { + "description": "Required. The name of the Bing Search account." + } + }, + "kind": { + "type": "string", + "defaultValue": "Bing.Search.v7", + "allowedValues": [ + "Bing.Search.v7", + "Bing.CustomSearch" + ], + "metadata": { + "description": "Optional. Bing search kind." + } + }, + "skuName": { + "type": "string", + "defaultValue": "F1", + "allowedValues": [ + "F0", + "F1", + "S1", + "S2", + "S3", + "S4", + "S5", + "S6", + "S7", + "S8", + "S9" + ], + "metadata": { + "description": "Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind" + } + }, + "statisticsEnabled": { + "type": "bool", + "defaultValue": false, + "metadata": { + "description": "Optional. Enable or disable Bing statistics." + } + }, + "tags": { + "type": "object", + "defaultValue": {}, + "metadata": { + "description": "Optional. Tags of the resource." + } + } + }, + "resources": [ + { + "type": "Microsoft.Bing/accounts", + "apiVersion": "2020-06-10", + "name": "[parameters('accountName')]", + "location": "global", + "tags": "[parameters('tags')]", + "kind": "[parameters('kind')]", + "properties": { + "statisticsEnabled": "[parameters('statisticsEnabled')]" + }, + "sku": { + "name": "[parameters('skuName')]" + } + } + ], + "outputs": { + "id": { + "type": "string", + "metadata": { + "description": "Bing account ID" + }, + "value": "[resourceId('Microsoft.Bing/accounts', parameters('accountName'))]" + }, + "endpoint": { + "type": "string", + "metadata": { + "description": "Bing Endpoint" + }, + "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('accountName')), '2020-06-10').endpoint]" + } + } +} \ No newline at end of file From 0aa6dba1186adbcf204a25336c501814db427c4f Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Mon, 12 Jun 2023 12:55:43 +0530 Subject: [PATCH 07/22] updated files --- modules/cognitiveservices/bing-resource/README.md | 4 ++-- modules/cognitiveservices/bing-resource/main.bicep | 2 +- modules/cognitiveservices/bing-resource/main.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index 372823d3d0..f8e632ef5d 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -12,7 +12,7 @@ This Bicep Module helps to create Bing Search Kind resource | Name | Type | Required | Description | | :------------------ | :------: | :------: | :---------------------------------------------------------------------------------------------------------- | | `accountName` | `string` | Yes | Required. The name of the Bing Search account. | -| `kind` | `string` | No | Optional. Bing search kind. | +| `kind` | `string` | No | Optional.This parameter will define Bing search kind. | | `skuName` | `string` | No | Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind | | `statisticsEnabled` | `bool` | No | Optional. Enable or disable Bing statistics. | | `tags` | `object` | No | Optional. Tags of the resource. | @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` \ No newline at end of file +``` diff --git a/modules/cognitiveservices/bing-resource/main.bicep b/modules/cognitiveservices/bing-resource/main.bicep index 53feea24df..a762c796e5 100644 --- a/modules/cognitiveservices/bing-resource/main.bicep +++ b/modules/cognitiveservices/bing-resource/main.bicep @@ -1,7 +1,7 @@ @description('Required. The name of the Bing Search account.') param accountName string -@description('Optional. Bing search kind.') +@description('Optional.This parameter will define Bing search kind.') @allowed( [ 'Bing.Search.v7' diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json index 607985949f..10f101fd64 100644 --- a/modules/cognitiveservices/bing-resource/main.json +++ b/modules/cognitiveservices/bing-resource/main.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.16.2.56959", - "templateHash": "5866067334905837385" + "templateHash": "12600815654397594460" } }, "parameters": { @@ -23,7 +23,7 @@ "Bing.CustomSearch" ], "metadata": { - "description": "Optional. Bing search kind." + "description": "Optional.This parameter will define Bing search kind." } }, "skuName": { From 30b8ef2fc97ccf9b739a9d85a7b78e98a2d856f4 Mon Sep 17 00:00:00 2001 From: tanujbhatia1708 Date: Mon, 12 Jun 2023 07:26:45 +0000 Subject: [PATCH 08/22] Autogenerate Bicep Files --- modules/cognitiveservices/bing-resource/README.md | 2 +- modules/cognitiveservices/bing-resource/main.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index f8e632ef5d..cbc8e036bd 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` +``` \ No newline at end of file diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json index 10f101fd64..eac92ef2fb 100644 --- a/modules/cognitiveservices/bing-resource/main.json +++ b/modules/cognitiveservices/bing-resource/main.json @@ -4,8 +4,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.16.2.56959", - "templateHash": "12600815654397594460" + "version": "0.17.1.54307", + "templateHash": "3122045129133480964" } }, "parameters": { From 7c3f99f4823254027bd1d60d0ae88f27113f2dd2 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Wed, 21 Jun 2023 22:06:42 +0530 Subject: [PATCH 09/22] updated Readme.md --- modules/cognitiveservices/bing-resource/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index cbc8e036bd..0311fc3ee8 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -5,7 +5,7 @@ This module deploys Azure Bing Resource ## Description Azure Bing resource refers to the integration of Bing's search capabilities into the Azure platform. Azure provides the Azure Cognitive Search service, which allows you to incorporate powerful search functionality, including web search, image search, news search, video search, and more, using Bing's search algorithms. -This Bicep Module helps to create Bing Search Kind resource +This Bicep Module helps to create Bing Search Kind resource. You may need to register Microsoft/Bing resource provider for your subscription before using this module. ## Parameters From 4bb9524a4b12e82bfc01bd1051a889d9c88f91ea Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Wed, 21 Jun 2023 22:09:04 +0530 Subject: [PATCH 10/22] updated Readme.md --- modules/cognitiveservices/bing-resource/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index 0311fc3ee8..7d42340b0a 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` \ No newline at end of file +``` From f4a700f622f8cd6a67a26a96a1b40c5edadeb6df Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Wed, 21 Jun 2023 22:12:01 +0530 Subject: [PATCH 11/22] updated Readme.md --- modules/cognitiveservices/bing-resource/main.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cognitiveservices/bing-resource/main.bicep b/modules/cognitiveservices/bing-resource/main.bicep index a762c796e5..613e2672f1 100644 --- a/modules/cognitiveservices/bing-resource/main.bicep +++ b/modules/cognitiveservices/bing-resource/main.bicep @@ -1,7 +1,7 @@ @description('Required. The name of the Bing Search account.') param accountName string -@description('Optional.This parameter will define Bing search kind.') +@description('Optional. This parameter will define Bing search kind.') @allowed( [ 'Bing.Search.v7' From 0f69591f78fbbe26fb07924bb010841f59fbceaf Mon Sep 17 00:00:00 2001 From: tanujbhatia1708 Date: Wed, 21 Jun 2023 16:43:09 +0000 Subject: [PATCH 12/22] Autogenerate Bicep Files --- modules/cognitiveservices/bing-resource/README.md | 12 ++++++------ modules/cognitiveservices/bing-resource/main.json | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/cognitiveservices/bing-resource/README.md index 7d42340b0a..59599c52ce 100644 --- a/modules/cognitiveservices/bing-resource/README.md +++ b/modules/cognitiveservices/bing-resource/README.md @@ -12,17 +12,17 @@ This Bicep Module helps to create Bing Search Kind resource. You may need to reg | Name | Type | Required | Description | | :------------------ | :------: | :------: | :---------------------------------------------------------------------------------------------------------- | | `accountName` | `string` | Yes | Required. The name of the Bing Search account. | -| `kind` | `string` | No | Optional.This parameter will define Bing search kind. | +| `kind` | `string` | No | Optional. This parameter will define Bing search kind. | | `skuName` | `string` | No | Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind | | `statisticsEnabled` | `bool` | No | Optional. Enable or disable Bing statistics. | | `tags` | `object` | No | Optional. Tags of the resource. | ## Outputs -| Name | Type | Description | -| :------- | :----: | :-------------- | -| id | string | Bing account ID | -| endpoint | string | Bing Endpoint | +| Name | Type | Description | +| :--------- | :------: | :-------------- | +| `id` | `string` | Bing account ID | +| `endpoint` | `string` | Bing Endpoint | ## Examples @@ -54,4 +54,4 @@ module bing-search-resource '../main.bicep' = { skuName: 'F0' } } -``` +``` \ No newline at end of file diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/cognitiveservices/bing-resource/main.json index eac92ef2fb..6dba651ed8 100644 --- a/modules/cognitiveservices/bing-resource/main.json +++ b/modules/cognitiveservices/bing-resource/main.json @@ -4,8 +4,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.17.1.54307", - "templateHash": "3122045129133480964" + "version": "0.18.4.5664", + "templateHash": "10935254632437609814" } }, "parameters": { @@ -23,7 +23,7 @@ "Bing.CustomSearch" ], "metadata": { - "description": "Optional.This parameter will define Bing search kind." + "description": "Optional. This parameter will define Bing search kind." } }, "skuName": { From f5f590fae35919b17e6f8b8e0191fd8609e49d76 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Tue, 4 Jul 2023 11:39:50 +0530 Subject: [PATCH 13/22] updated the path for bing service --- modules/{cognitiveservices => ai}/bing-resource/README.md | 0 modules/{cognitiveservices => ai}/bing-resource/main.bicep | 0 modules/{cognitiveservices => ai}/bing-resource/main.json | 0 modules/{cognitiveservices => ai}/bing-resource/metadata.json | 0 .../{cognitiveservices => ai}/bing-resource/test/main.test.bicep | 0 modules/{cognitiveservices => ai}/bing-resource/version.json | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename modules/{cognitiveservices => ai}/bing-resource/README.md (100%) rename modules/{cognitiveservices => ai}/bing-resource/main.bicep (100%) rename modules/{cognitiveservices => ai}/bing-resource/main.json (100%) rename modules/{cognitiveservices => ai}/bing-resource/metadata.json (100%) rename modules/{cognitiveservices => ai}/bing-resource/test/main.test.bicep (100%) rename modules/{cognitiveservices => ai}/bing-resource/version.json (100%) diff --git a/modules/cognitiveservices/bing-resource/README.md b/modules/ai/bing-resource/README.md similarity index 100% rename from modules/cognitiveservices/bing-resource/README.md rename to modules/ai/bing-resource/README.md diff --git a/modules/cognitiveservices/bing-resource/main.bicep b/modules/ai/bing-resource/main.bicep similarity index 100% rename from modules/cognitiveservices/bing-resource/main.bicep rename to modules/ai/bing-resource/main.bicep diff --git a/modules/cognitiveservices/bing-resource/main.json b/modules/ai/bing-resource/main.json similarity index 100% rename from modules/cognitiveservices/bing-resource/main.json rename to modules/ai/bing-resource/main.json diff --git a/modules/cognitiveservices/bing-resource/metadata.json b/modules/ai/bing-resource/metadata.json similarity index 100% rename from modules/cognitiveservices/bing-resource/metadata.json rename to modules/ai/bing-resource/metadata.json diff --git a/modules/cognitiveservices/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep similarity index 100% rename from modules/cognitiveservices/bing-resource/test/main.test.bicep rename to modules/ai/bing-resource/test/main.test.bicep diff --git a/modules/cognitiveservices/bing-resource/version.json b/modules/ai/bing-resource/version.json similarity index 100% rename from modules/cognitiveservices/bing-resource/version.json rename to modules/ai/bing-resource/version.json From 3b746317bd1b66d0d0b7bfc8c6ef93a0ced9093c Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Tue, 4 Jul 2023 11:55:55 +0530 Subject: [PATCH 14/22] updated the path for bing service --- modules/ai/bing-resource/test/main.test.bicep | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ai/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep index a1d4fb1080..083fe040f4 100644 --- a/modules/ai/bing-resource/test/main.test.bicep +++ b/modules/ai/bing-resource/test/main.test.bicep @@ -4,7 +4,6 @@ module file is a deployment test. Make sure at least one test is added. */ targetScope = 'resourceGroup' -param accountName string = 'bingsearchtest' // ===== // // Tests // @@ -17,7 +16,7 @@ module test_01_Bing '../main.bicep' = { name: 'test_01_Bing_resource' params: { kind: 'Bing.Search.v7' - accountName: accountName + accountName: 'Bing_SearchTest01' skuName: 'F1' } } @@ -29,7 +28,7 @@ module test_02_Bing '../main.bicep' = { name: 'test_02_Bing_resource' params: { kind: 'Bing.CustomSearch' - accountName: accountName + accountName: 'Bing_SearchTest02' skuName: 'F0' } } From 38bfb48c3b99f901c752df587a15fabf433eda46 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Tue, 4 Jul 2023 12:06:27 +0530 Subject: [PATCH 15/22] updated the path for bing service --- modules/ai/bing-resource/test/main.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ai/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep index 083fe040f4..c17a02419d 100644 --- a/modules/ai/bing-resource/test/main.test.bicep +++ b/modules/ai/bing-resource/test/main.test.bicep @@ -22,7 +22,7 @@ module test_01_Bing '../main.bicep' = { } -// Test-02 - Bing Custom Search resource +// Test-02 - Bing Custom Search resource test module test_02_Bing '../main.bicep' = { name: 'test_02_Bing_resource' From 14998f1c93c39219e337cd90ea39a3b3eb4d22ee Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Tue, 4 Jul 2023 13:35:06 +0530 Subject: [PATCH 16/22] updated the path for bing service --- modules/ai/bing-resource/test/main.test.bicep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ai/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep index c17a02419d..374b23241b 100644 --- a/modules/ai/bing-resource/test/main.test.bicep +++ b/modules/ai/bing-resource/test/main.test.bicep @@ -4,7 +4,7 @@ module file is a deployment test. Make sure at least one test is added. */ targetScope = 'resourceGroup' - +param accountName string = 'Bing_SearchTest' // ===== // // Tests // // ===== // @@ -16,7 +16,7 @@ module test_01_Bing '../main.bicep' = { name: 'test_01_Bing_resource' params: { kind: 'Bing.Search.v7' - accountName: 'Bing_SearchTest01' + accountName: accountName skuName: 'F1' } } @@ -28,7 +28,7 @@ module test_02_Bing '../main.bicep' = { name: 'test_02_Bing_resource' params: { kind: 'Bing.CustomSearch' - accountName: 'Bing_SearchTest02' + accountName: accountName skuName: 'F0' } } From 00ad70d774508515e9f685320594f406301526bf Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Tue, 4 Jul 2023 14:03:53 +0530 Subject: [PATCH 17/22] updated the path for bing service --- modules/ai/bing-resource/test/main.test.bicep | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ai/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep index 374b23241b..ef1f04466c 100644 --- a/modules/ai/bing-resource/test/main.test.bicep +++ b/modules/ai/bing-resource/test/main.test.bicep @@ -4,7 +4,6 @@ module file is a deployment test. Make sure at least one test is added. */ targetScope = 'resourceGroup' -param accountName string = 'Bing_SearchTest' // ===== // // Tests // // ===== // @@ -16,7 +15,7 @@ module test_01_Bing '../main.bicep' = { name: 'test_01_Bing_resource' params: { kind: 'Bing.Search.v7' - accountName: accountName + accountName: 'Bing_SearchTest01' skuName: 'F1' } } @@ -28,7 +27,7 @@ module test_02_Bing '../main.bicep' = { name: 'test_02_Bing_resource' params: { kind: 'Bing.CustomSearch' - accountName: accountName + accountName: 'Bing_SearchTest02' skuName: 'F0' } } From 2be654e230eaf62b5c577edff36339e4b9589859 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Tue, 4 Jul 2023 13:37:22 -0400 Subject: [PATCH 18/22] fix: Params to conform to contributing guidelines and tests --- modules/ai/bing-resource/README.md | 18 ++++++----- modules/ai/bing-resource/main.bicep | 23 ++++++++++---- modules/ai/bing-resource/main.json | 31 ++++++++++++++----- modules/ai/bing-resource/test/main.test.bicep | 16 +++++----- 4 files changed, 60 insertions(+), 28 deletions(-) diff --git a/modules/ai/bing-resource/README.md b/modules/ai/bing-resource/README.md index 59599c52ce..4e6aad254e 100644 --- a/modules/ai/bing-resource/README.md +++ b/modules/ai/bing-resource/README.md @@ -11,7 +11,9 @@ This Bicep Module helps to create Bing Search Kind resource. You may need to reg | Name | Type | Required | Description | | :------------------ | :------: | :------: | :---------------------------------------------------------------------------------------------------------- | -| `accountName` | `string` | Yes | Required. The name of the Bing Search account. | +| `prefix` | `string` | No | Prefix of Resource Name. Not used if name is provided | +| `location` | `string` | No | The location into which your Azure resources should be deployed. | +| `name` | `string` | No | The name of the Bing Service. | | `kind` | `string` | No | Optional. This parameter will define Bing search kind. | | `skuName` | `string` | No | Optional. The name of the SKU, F* (free) and S* (standard). Supported SKUs will differ based on search kind | | `statisticsEnabled` | `bool` | No | Optional. Enable or disable Bing statistics. | @@ -31,11 +33,12 @@ This Bicep Module helps to create Bing Search Kind resource. You may need to reg Deploy a Bing Search v7 resource with the free SKU ``` -module bing-search-resource '../main.bicep' = { +module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { name: 'bing-search-resource' params: { kind: 'Bing.Search.v7' - accountName: 'bing-search-resource-name-01' + location: 'global' + name: 'bing-search-resource-name-01' skuName: 'F1' } } @@ -43,15 +46,16 @@ module bing-search-resource '../main.bicep' = { ### Example 2 -Deploy a Bing Custom Search resource with the free SKU +Deploy a Bing Custom Search resource with the standard SKU ``` -module bing-search-resource '../main.bicep' = { +module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { name: 'bing-search-resource' params: { kind: 'Bing.CustomSearch' - accountName: 'bing-search-resource-name-02' - skuName: 'F0' + location: 'global' + name: 'bing-search-resource-name-02' + skuName: 'S1' } } ``` \ No newline at end of file diff --git a/modules/ai/bing-resource/main.bicep b/modules/ai/bing-resource/main.bicep index 613e2672f1..28299fba85 100644 --- a/modules/ai/bing-resource/main.bicep +++ b/modules/ai/bing-resource/main.bicep @@ -1,5 +1,16 @@ -@description('Required. The name of the Bing Search account.') -param accountName string +@description('Prefix of Resource Name. Not used if name is provided') +param prefix string = 'bng' + +@description('The location into which your Azure resources should be deployed.') +param location string = resourceGroup().location + +@minLength(2) +@maxLength(64) +// Must contain only lowercase letters, hyphens and numbers +// Must contain at least 2 through 64 characters +// Can't start or end with hyphen +@description('The name of the Bing Service.') +param name string = take('${prefix}-${kind}-${uniqueString(resourceGroup().id, location)}', 64) @description('Optional. This parameter will define Bing search kind.') @allowed( @@ -35,8 +46,8 @@ param statisticsEnabled bool = false param tags object = {} resource BingAccount 'Microsoft.Bing/accounts@2020-06-10' = { - name: accountName - location: 'global' + name: name + location: location tags: tags kind: kind @@ -48,7 +59,7 @@ resource BingAccount 'Microsoft.Bing/accounts@2020-06-10' = { } } -@description( 'Bing account ID') +@description('Bing account ID') output id string = BingAccount.id -@description( 'Bing Endpoint') +@description('Bing Endpoint') output endpoint string = BingAccount.properties.endpoint diff --git a/modules/ai/bing-resource/main.json b/modules/ai/bing-resource/main.json index 6dba651ed8..7ac9038d71 100644 --- a/modules/ai/bing-resource/main.json +++ b/modules/ai/bing-resource/main.json @@ -5,16 +5,33 @@ "_generator": { "name": "bicep", "version": "0.18.4.5664", - "templateHash": "10935254632437609814" + "templateHash": "5128592152439671358" } }, "parameters": { - "accountName": { + "prefix": { "type": "string", + "defaultValue": "bng", "metadata": { - "description": "Required. The name of the Bing Search account." + "description": "Prefix of Resource Name. Not used if name is provided" } }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]", + "metadata": { + "description": "The location into which your Azure resources should be deployed." + } + }, + "name": { + "type": "string", + "defaultValue": "[take(format('{0}-{1}-{2}', parameters('prefix'), parameters('kind'), uniqueString(resourceGroup().id, parameters('location'))), 64)]", + "metadata": { + "description": "The name of the Bing Service." + }, + "maxLength": 64, + "minLength": 2 + }, "kind": { "type": "string", "defaultValue": "Bing.Search.v7", @@ -65,8 +82,8 @@ { "type": "Microsoft.Bing/accounts", "apiVersion": "2020-06-10", - "name": "[parameters('accountName')]", - "location": "global", + "name": "[parameters('name')]", + "location": "[parameters('location')]", "tags": "[parameters('tags')]", "kind": "[parameters('kind')]", "properties": { @@ -83,14 +100,14 @@ "metadata": { "description": "Bing account ID" }, - "value": "[resourceId('Microsoft.Bing/accounts', parameters('accountName'))]" + "value": "[resourceId('Microsoft.Bing/accounts', parameters('name'))]" }, "endpoint": { "type": "string", "metadata": { "description": "Bing Endpoint" }, - "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('accountName')), '2020-06-10').endpoint]" + "value": "[reference(resourceId('Microsoft.Bing/accounts', parameters('name')), '2020-06-10').endpoint]" } } } \ No newline at end of file diff --git a/modules/ai/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep index ef1f04466c..3485aaec6b 100644 --- a/modules/ai/bing-resource/test/main.test.bicep +++ b/modules/ai/bing-resource/test/main.test.bicep @@ -10,24 +10,24 @@ targetScope = 'resourceGroup' // Test-01 - Bing Search v7 resource - module test_01_Bing '../main.bicep' = { name: 'test_01_Bing_resource' params: { - kind: 'Bing.Search.v7' - accountName: 'Bing_SearchTest01' - skuName: 'F1' + location: 'global' + kind: 'Bing.Search.v7' + name: 'Bing_SearchTest01' + skuName: 'F1' } } - // Test-02 - Bing Custom Search resource test module test_02_Bing '../main.bicep' = { name: 'test_02_Bing_resource' params: { - kind: 'Bing.CustomSearch' - accountName: 'Bing_SearchTest02' - skuName: 'F0' + location: 'global' + kind: 'Bing.CustomSearch' + name: 'Bing_SearchTest02' + skuName: 'S1' } } From 36ad192bfde639277e07e52bb727f4ba8f6153c0 Mon Sep 17 00:00:00 2001 From: OmegaVVeapon Date: Tue, 4 Jul 2023 17:39:21 +0000 Subject: [PATCH 19/22] Autogenerate Bicep Files --- modules/ai/bing-resource/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ai/bing-resource/README.md b/modules/ai/bing-resource/README.md index 4e6aad254e..a1bd5b4e7a 100644 --- a/modules/ai/bing-resource/README.md +++ b/modules/ai/bing-resource/README.md @@ -33,7 +33,7 @@ This Bicep Module helps to create Bing Search Kind resource. You may need to reg Deploy a Bing Search v7 resource with the free SKU ``` -module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { +module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { name: 'bing-search-resource' params: { kind: 'Bing.Search.v7' @@ -49,7 +49,7 @@ module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { Deploy a Bing Custom Search resource with the standard SKU ``` -module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { +module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { name: 'bing-search-resource' params: { kind: 'Bing.CustomSearch' From 2d681e7054ff62195ab1ab85373c9ba9d81dc647 Mon Sep 17 00:00:00 2001 From: Tanuj Bhatia Date: Tue, 4 Jul 2023 23:32:50 +0530 Subject: [PATCH 20/22] fix: update skuname for bing-search --- modules/ai/bing-resource/README.md | 4 ++-- modules/ai/bing-resource/test/main.test.bicep | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ai/bing-resource/README.md b/modules/ai/bing-resource/README.md index a1bd5b4e7a..d966cdb9d1 100644 --- a/modules/ai/bing-resource/README.md +++ b/modules/ai/bing-resource/README.md @@ -39,7 +39,7 @@ module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { kind: 'Bing.Search.v7' location: 'global' name: 'bing-search-resource-name-01' - skuName: 'F1' + skuName: 'S1' } } ``` @@ -58,4 +58,4 @@ module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { skuName: 'S1' } } -``` \ No newline at end of file +``` diff --git a/modules/ai/bing-resource/test/main.test.bicep b/modules/ai/bing-resource/test/main.test.bicep index 3485aaec6b..05bce6623f 100644 --- a/modules/ai/bing-resource/test/main.test.bicep +++ b/modules/ai/bing-resource/test/main.test.bicep @@ -16,7 +16,7 @@ module test_01_Bing '../main.bicep' = { location: 'global' kind: 'Bing.Search.v7' name: 'Bing_SearchTest01' - skuName: 'F1' + skuName: 'S1' } } From 8e452b447bd335fda2307c32cb5ac09bd9da8f37 Mon Sep 17 00:00:00 2001 From: tanujbhatia1708 Date: Tue, 4 Jul 2023 18:03:51 +0000 Subject: [PATCH 21/22] Autogenerate Bicep Files --- modules/ai/bing-resource/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ai/bing-resource/README.md b/modules/ai/bing-resource/README.md index d966cdb9d1..3842e045f6 100644 --- a/modules/ai/bing-resource/README.md +++ b/modules/ai/bing-resource/README.md @@ -58,4 +58,4 @@ module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { skuName: 'S1' } } -``` +``` \ No newline at end of file From 406f904ccd8f929895972b2523bd9ffd1cdb883c Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Tue, 4 Jul 2023 14:59:24 -0400 Subject: [PATCH 22/22] Apply suggestions from code review --- modules/ai/bing-resource/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ai/bing-resource/README.md b/modules/ai/bing-resource/README.md index 3842e045f6..5145762bf6 100644 --- a/modules/ai/bing-resource/README.md +++ b/modules/ai/bing-resource/README.md @@ -33,7 +33,7 @@ This Bicep Module helps to create Bing Search Kind resource. You may need to reg Deploy a Bing Search v7 resource with the free SKU ``` -module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { +module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { name: 'bing-search-resource' params: { kind: 'Bing.Search.v7' @@ -49,7 +49,7 @@ module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { Deploy a Bing Custom Search resource with the standard SKU ``` -module bing-search-resource 'br/public:ai/bing-resource:0.0.1' = { +module bing-search-resource 'br/public:ai/bing-resource:1.0.1' = { name: 'bing-search-resource' params: { kind: 'Bing.CustomSearch'