Add marketing storage ARM
This commit is contained in:
parent
8cb861dab8
commit
bb377f0ff7
91
deploy/az/storage/marketing/deploystorage.json
Normal file
91
deploy/az/storage/marketing/deploystorage.json
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"marketingstorage": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"profileName" : {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variables": {
|
||||||
|
"marketingstorage": "[concat(parameters('marketingstorage'), uniqueString(resourceGroup().id))]",
|
||||||
|
"endpointName": "[concat('endpoint-', uniqueString(resourceGroup().id))]",
|
||||||
|
"profileName": "[parameters('profileName')]"
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"type": "Microsoft.Storage/storageAccounts",
|
||||||
|
"name": "[variables('marketingstorage')]",
|
||||||
|
"apiVersion": "2016-01-01",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "[variables('marketingstorage')]"
|
||||||
|
},
|
||||||
|
"sku": {
|
||||||
|
"name": "Standard_LRS"
|
||||||
|
},
|
||||||
|
"kind": "Storage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "[variables('profileName')]",
|
||||||
|
"type": "Microsoft.Cdn/profiles",
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"apiVersion": "2016-04-02",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "[variables('profileName')]"
|
||||||
|
},
|
||||||
|
"sku": {
|
||||||
|
"name": "Standard_Verizon"
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"apiVersion": "2016-04-02",
|
||||||
|
"name": "[variables('endpointName')]",
|
||||||
|
"type": "endpoints",
|
||||||
|
"dependsOn": [
|
||||||
|
"[variables('profileName')]",
|
||||||
|
"[variables('marketingstorage')]"
|
||||||
|
],
|
||||||
|
"location": "[resourceGroup().location]",
|
||||||
|
"tags": {
|
||||||
|
"displayName": "[variables('endpointName')]"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"originHostHeader": "[replace(replace(reference(resourceId('Microsoft.Storage/storageAccounts', variables('marketingstorage')),'2015-06-15' ).primaryEndpoints.blob,'https://',''),'/','')]",
|
||||||
|
"isHttpAllowed": true,
|
||||||
|
"isHttpsAllowed": true,
|
||||||
|
"queryStringCachingBehavior": "IgnoreQueryString",
|
||||||
|
"contentTypesToCompress": [
|
||||||
|
"text/plain",
|
||||||
|
"text/html",
|
||||||
|
"text/css",
|
||||||
|
"application/x-javascript",
|
||||||
|
"text/javascript"
|
||||||
|
],
|
||||||
|
"isCompressionEnabled": "True",
|
||||||
|
"origins": [
|
||||||
|
{
|
||||||
|
"name": "origin1",
|
||||||
|
"properties": {
|
||||||
|
"hostName": "[replace(replace(reference(resourceId('Microsoft.Storage/storageAccounts', variables('marketingstorage')),'2015-06-15' ).primaryEndpoints.blob,'https://',''),'/','')]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": {
|
||||||
|
"hostName": {
|
||||||
|
"type": "string",
|
||||||
|
"value": "[reference(resourceId('Microsoft.cdn/profiles/endpoints', variables('profileName'), variables('endpointName'))).hostName]"
|
||||||
|
},
|
||||||
|
"originHostHeader": {
|
||||||
|
"type": "string",
|
||||||
|
"value": "[reference(resourceId('Microsoft.cdn/profiles/endpoints', variables('profileName'), variables('endpointName'))).originHostHeader]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
12
deploy/az/storage/marketing/deploystorage.parameters.json
Normal file
12
deploy/az/storage/marketing/deploystorage.parameters.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"marketingstorage": {
|
||||||
|
"value": "marketing"
|
||||||
|
},
|
||||||
|
"profileName":{
|
||||||
|
"value": "eshopmarketing"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user