зеркало из
1
0
Форкнуть 0

Visual Object sample deployment templates for Azure Files volumes

This commit is contained in:
Abhishek Ram 2018-05-06 18:28:55 -07:00
Родитель 5d2dea281e
Коммит f393262e76
3 изменённых файлов: 382 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,150 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "westus",
"metadata": {
"description": "Location of the resources."
}
},
"storageAccountName": {
"type": "string",
"metadata": {
"description": "Name of Azure storage account for Azure Files volume"
}
},
"storageAccountKey": {
"type": "string",
"metadata": {
"description": "Access key for Azure storage account for Azure Files volume"
}
},
"fileShareName": {
"type": "string",
"metadata": {
"description": "Name of file share for Azure Files volume"
}
}
},
"resources": [
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsWorkerVolumeWindows",
"type": "Microsoft.ServiceFabric/volumes",
"location": "[parameters('location')]",
"properties": {
"description": "Azure Files based volume for visual objects worker service.",
"provider": "SFAzureFile",
"azureFileParameters": {
"shareName": "[parameters('fileShareName')]",
"accountName": "[parameters('storageAccountName')]",
"accountKey": "[parameters('storageAccountKey')]"
}
}
},
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsNetworkWindows",
"type": "Microsoft.ServiceFabric/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"schemaVersion": "0.0.1",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
{
"publicPort": "80",
"applicationName": "visualObjectsAppWindows",
"serviceName": "web",
"endpointName": "webListener"
}
]
}
}
},
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsAppWindows",
"type": "Microsoft.ServiceFabric/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabric/networks/visualObjectsNetworkWindows",
"Microsoft.ServiceFabric/volumes/visualObjectsWorkerVolumeWindows"
],
"properties": {
"description": "Service Fabric Mesh Visual Objects Application!",
"services": [
{
"type": "Microsoft.ServiceFabric/services",
"location": "[parameters('location')]",
"name": "web",
"properties": {
"description": "Service Fabric Mesh Visual Objects Web Service.",
"osType": "windows",
"codePackages": [
{
"name": "code",
"image": "seabreeze/azure-mesh-visualobjects-web:1.0-nanoserver-1709",
"endpoints": [
{
"name": "webListener",
"port": "80"
}
],
"resources": {
"requests": {
"cpu": "1",
"memoryInGB": "1"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'visualObjectsNetworkWindows')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabric/services",
"location": "[parameters('location')]",
"name": "worker",
"properties": {
"description": "Service Fabric Mesh Visual Objects Worker Service.",
"osType": "windows",
"codePackages": [
{
"name": "code",
"image": "seabreeze/azure-mesh-visualobjects-worker:1.0-nanoserver-1709",
"volumeRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/volumes', 'visualObjectsWorkerVolumeWindows')]",
"destinationPath": "c:\\Data"
}
],
"resources": {
"requests": {
"cpu": "1",
"memoryInGB": "1"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'visualObjectsNetworkWindows')]"
}
]
}
}
]
}
}
]
}

Просмотреть файл

@ -0,0 +1,116 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "westus",
"metadata": {
"description": "Location of the resources."
}
}
},
"resources": [
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsNetworkWindows",
"type": "Microsoft.ServiceFabric/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"schemaVersion": "0.0.1",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
{
"publicPort": "80",
"applicationName": "visualObjectsAppWindows",
"serviceName": "web",
"endpointName": "webListener"
}
]
}
}
},
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsAppWindows",
"type": "Microsoft.ServiceFabric/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabric/networks/visualObjectsNetworkWindows"
],
"properties": {
"description": "Service Fabric Mesh Visual Objects Application!",
"services": [
{
"type": "Microsoft.ServiceFabric/services",
"location": "[parameters('location')]",
"name": "web",
"properties": {
"description": "Service Fabric Mesh Visual Objects Web Service.",
"osType": "windows",
"codePackages": [
{
"name": "code",
"image": "seabreeze/azure-mesh-visualobjects-web:1.0-nanoserver-1709",
"endpoints": [
{
"name": "webListener",
"port": "80"
}
],
"resources": {
"requests": {
"cpu": "1",
"memoryInGB": "1"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'visualObjectsNetworkWindows')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabric/services",
"location": "[parameters('location')]",
"name": "worker",
"properties": {
"description": "Service Fabric Mesh Visual Objects Worker Service.",
"osType": "windows",
"codePackages": [
{
"name": "code",
"image": "seabreeze/azure-mesh-visualobjects-worker:1.0-nanoserver-1709",
"volumeRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/volumes', 'visualObjectsWorkerVolumeWindows')]",
"destinationPath": "c:\\Data"
}
],
"resources": {
"requests": {
"cpu": "1",
"memoryInGB": "1"
}
}
}
],
"replicaCount": "3",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'visualObjectsNetworkWindows')]"
}
]
}
}
]
}
}
]
}

Просмотреть файл

@ -0,0 +1,116 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "westus",
"metadata": {
"description": "Location of the resources."
}
}
},
"resources": [
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsNetworkWindows",
"type": "Microsoft.ServiceFabric/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"schemaVersion": "0.0.1",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
{
"publicPort": "80",
"applicationName": "visualObjectsAppWindows",
"serviceName": "web",
"endpointName": "webListener"
}
]
}
}
},
{
"apiVersion": "2018-03-01-privatepreview",
"name": "visualObjectsAppWindows",
"type": "Microsoft.ServiceFabric/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabric/networks/visualObjectsNetworkWindows"
],
"properties": {
"description": "Service Fabric Mesh Visual Objects Application!",
"services": [
{
"type": "Microsoft.ServiceFabric/services",
"location": "[parameters('location')]",
"name": "web",
"properties": {
"description": "Service Fabric Mesh Visual Objects Web Service.",
"osType": "windows",
"codePackages": [
{
"name": "code",
"image": "seabreeze/azure-mesh-visualobjects-web:1.0-nanoserver-1709",
"endpoints": [
{
"name": "webListener",
"port": "80"
}
],
"resources": {
"requests": {
"cpu": "1",
"memoryInGB": "1"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'visualObjectsNetworkWindows')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabric/services",
"location": "[parameters('location')]",
"name": "worker",
"properties": {
"description": "Service Fabric Mesh Visual Objects Worker Service.",
"osType": "windows",
"codePackages": [
{
"name": "code",
"image": "seabreeze/azure-mesh-visualobjects-worker:1.0-rotate-nanoserver-1709",
"volumeRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/volumes', 'visualObjectsWorkerVolumeWindows')]",
"destinationPath": "c:\\Data"
}
],
"resources": {
"requests": {
"cpu": "1",
"memoryInGB": "1"
}
}
}
],
"replicaCount": "3",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'visualObjectsNetworkWindows')]"
}
]
}
}
]
}
}
]
}