mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
## What Add an Electron sample that integrates with multiple Azure services. ## Why As part of our investigation into how well our SDKs integrate into existing frameworks we created a few sample apps that showcase how to use the various SDKs. Adding a sample here would ensure that we have something to reference and provide to folks who are interested in using our SDKs in Electron.
143 lines
4.4 KiB
JSON
143 lines
4.4 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"baseName": {
|
|
"type": "string",
|
|
"defaultValue": "[resourceGroup().name]",
|
|
"metadata": {
|
|
"description": "The base resource name."
|
|
}
|
|
}
|
|
},
|
|
"variables": {
|
|
"serviceBusQueue": "events",
|
|
"serviceBusNamespace": "[concat(parameters('baseName'), 'servicebus')]",
|
|
"storageAccount": "[concat(replace(parameters('baseName'), '-', ''), 'storage')]",
|
|
"storageContainer": "[concat(replace(parameters('baseName'), '-', ''), 'storage', '/default/blobs')]",
|
|
"location": "[resourceGroup().location]"
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.ServiceBus/namespaces",
|
|
"apiVersion": "2018-01-01-preview",
|
|
"name": "[variables('serviceBusNamespace')]",
|
|
"location": "[variables('location')]",
|
|
"sku": {
|
|
"name": "Standard",
|
|
"tier": "Standard"
|
|
},
|
|
"properties": {
|
|
"zoneRedundant": false
|
|
}
|
|
},
|
|
{
|
|
"type": "Microsoft.ServiceBus/namespaces/queues",
|
|
"apiVersion": "2017-04-01",
|
|
"name": "[concat(variables('serviceBusNamespace'), '/', variables('serviceBusQueue'))]",
|
|
"location": "West US 2",
|
|
"dependsOn": [
|
|
"[resourceId('Microsoft.ServiceBus/namespaces', variables('serviceBusNamespace'))]"
|
|
],
|
|
"properties": {
|
|
"lockDuration": "PT30S",
|
|
"maxSizeInMegabytes": 1024,
|
|
"requiresDuplicateDetection": false,
|
|
"requiresSession": false,
|
|
"defaultMessageTimeToLive": "P14D",
|
|
"deadLetteringOnMessageExpiration": false,
|
|
"enableBatchedOperations": true,
|
|
"duplicateDetectionHistoryTimeWindow": "PT10M",
|
|
"maxDeliveryCount": 10,
|
|
"status": "Active",
|
|
"autoDeleteOnIdle": "P10675199DT2H48M5.4775807S",
|
|
"enablePartitioning": false,
|
|
"enableExpress": false
|
|
}
|
|
},
|
|
{
|
|
"type": "Microsoft.Storage/storageAccounts",
|
|
"apiVersion": "2020-08-01-preview",
|
|
"name": "[variables('storageAccount')]",
|
|
"location": "[variables('location')]",
|
|
"sku": {
|
|
"name": "Standard_RAGRS",
|
|
"tier": "Standard"
|
|
},
|
|
"kind": "StorageV2",
|
|
"properties": {
|
|
"networkAcls": {
|
|
"bypass": "AzureServices",
|
|
"virtualNetworkRules": [],
|
|
"ipRules": [],
|
|
"defaultAction": "Allow"
|
|
},
|
|
"supportsHttpsTrafficOnly": true,
|
|
"encryption": {
|
|
"services": {
|
|
"file": {
|
|
"keyType": "Account",
|
|
"enabled": true
|
|
},
|
|
"blob": {
|
|
"keyType": "Account",
|
|
"enabled": true
|
|
}
|
|
},
|
|
"keySource": "Microsoft.Storage"
|
|
},
|
|
"accessTier": "Hot"
|
|
}
|
|
},
|
|
{
|
|
"type": "Microsoft.Storage/storageAccounts/blobServices",
|
|
"apiVersion": "2020-08-01-preview",
|
|
"name": "[concat(variables('storageAccount'), '/default')]",
|
|
"dependsOn": [
|
|
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccount'))]"
|
|
],
|
|
"sku": {
|
|
"name": "Standard_RAGRS",
|
|
"tier": "Standard"
|
|
},
|
|
"properties": {
|
|
"deleteRetentionPolicy": {
|
|
"enabled": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
|
|
"apiVersion": "2020-08-01-preview",
|
|
"name": "[variables('storageContainer')]",
|
|
"dependsOn": [
|
|
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('storageAccount'), 'default')]",
|
|
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccount'))]"
|
|
],
|
|
"properties": {
|
|
"defaultEncryptionScope": "$account-encryption-key",
|
|
"denyEncryptionScopeOverride": false,
|
|
"publicAccess": "None"
|
|
}
|
|
}
|
|
],
|
|
"outputs": {
|
|
"service_bus_namespace": {
|
|
"type": "string",
|
|
"value": "[concat(variables('serviceBusNamespace'), '.servicebus.windows.net')]"
|
|
},
|
|
"service_bus_queue": {
|
|
"type": "string",
|
|
"value": "[variables('serviceBusQueue')]"
|
|
},
|
|
"blob_uri": {
|
|
"type": "string",
|
|
"value": "[reference(variables('storageAccount')).primaryEndpoints.blob]"
|
|
},
|
|
"blob_container": {
|
|
"type": "string",
|
|
"value": "[last(split(variables('storageContainer'), '/'))]"
|
|
}
|
|
}
|
|
}
|