From 6ca6f59afeccf06d546978333050b09f70a3dc37 Mon Sep 17 00:00:00 2001 From: cheng-tan Date: Tue, 24 Oct 2023 16:13:33 -0400 Subject: [PATCH] Add create loop button (#594) --- templates/README.md | 14 ++++++++++++++ templates/create-loop.json | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 templates/README.md create mode 100644 templates/create-loop.json diff --git a/templates/README.md b/templates/README.md new file mode 100644 index 000000000..6c18c1a8a --- /dev/null +++ b/templates/README.md @@ -0,0 +1,14 @@ +# Create Azure Personalizer Loop + +## Introduction +- Overview: https://azure.microsoft.com/en-us/products/ai-services/ai-personalizer +- What is Personalizer? https://learn.microsoft.com/en-us/azure/ai-services/personalizer/what-is-personalizer + +## Prerequisites and steps to create a Personalizer Loop: +1. Create an Azure account: https://azure.microsoft.com/en-us/free/ +2. Contact us to add your subscription ID to allowlist +3. Click to deploy the loop: [![Create Personalizer Loop](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FVowpalWabbit%2Freinforcement_learning%2Fmaster%2Ftemplates%2Fcreate-loop.json) + +## Learn More +- Personalizer documentation: https://learn.microsoft.com/en-us/azure/ai-services/personalizer/ +- Need help? https://learn.microsoft.com/en-us/answers/tags/219/azure-personalizer \ No newline at end of file diff --git a/templates/create-loop.json b/templates/create-loop.json new file mode 100644 index 000000000..1e539949e --- /dev/null +++ b/templates/create-loop.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "personalizer_name": { + "type": "String" + }, + "personalizer_region": { + "type": "String" + } + }, + "variables": {}, + "resources": [ + { + "type": "Microsoft.CognitiveServices/accounts", + "apiVersion": "2023-05-01", + "name": "[parameters('personalizer_name')]", + "location": "[parameters('personalizer_region')]", + "sku": { + "name": "S0" + }, + "kind": "Personalizer", + "identity": { + "type": "None" + }, + "properties": { + "customSubDomainName": "[parameters('personalizer_name')]", + "networkAcls": { + "defaultAction": "Allow", + "virtualNetworkRules": [], + "ipRules": [] + }, + "publicNetworkAccess": "Enabled" + } + } + ] +} \ No newline at end of file