deploy to azure (#632)

Co-authored-by: Omri Mendels <omri374@users.noreply.github.com>
This commit is contained in:
balteravishay
2021-03-24 09:57:13 +02:00
committed by GitHub
parent 1f65a0f02f
commit 15fad0c1fe
2 changed files with 84 additions and 0 deletions

View File

@@ -7,6 +7,12 @@
The Presidio Image Redactor is a Python based module for detecting and redacting PII
text entities in images.
## Deploy Presidio image redactor to Azure
Use the following button to deploy presidio image redactor to your Azure subscription.
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Fpresidio%2Fmain%2Fpresidio-image-redactor%2Fdeploytoazure.json)
![Image Redactor Design](../docs/assets/image-redactor-design.png)
## Installation

View File

@@ -0,0 +1,78 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"type": "string",
"defaultValue": "[concat('webApp-', uniqueString(resourceGroup().id))]",
"minLength": 2,
"metadata": {
"description": "Web app name."
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
},
"sku": {
"type": "string",
"defaultValue": "P2V2",
"metadata": {
"description": "The SKU of App Service Plan."
},
"allowedValues": [
"F2",
"B2",
"S2",
"P2V2",
"P1V3",
"I2"
]
},
"ipRestriction": {
"type": "string",
"defaultValue": "any",
"metadata": {
"description": "Optional IP range to restrict access to."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2019-10-01",
"name": "presidio-analyzer",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/microsoft/presidio/main/docs/samples/deployments/app-service/presidio-services.json",
"contentVersion": "1.0.0.0"
},
"parameters": {
"anonymizer": {
"value": false
},
"analyzer": {
"value": false
},
"imageRedactorWebAppName": {
"value": "[parameters('webAppName')]"
},
"imageRedactorSku": {
"value": "[parameters('sku')]"
},
"location": {
"value": "[parameters('location')]"
},
"ipRestriction": {
"value": "[parameters('ipRestriction')]"
}
}
}
}
]
}