Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
Key-Vault-Backup-Restore-Sample/src/Resources/connection.azureblob.json
Find file
Copy path
Fetching contributors…

{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"name": { | |
"type": "string", | |
"metadata": { | |
"description": "Name of the API Connection." | |
} | |
}, | |
"locationCode": { | |
"type": "string", | |
"metadata": { | |
"description": "Location code where the resource is provisioned." | |
} | |
}, | |
"storageAccountName": { | |
"type": "string", | |
"metadata": { | |
"description": "Name of the Storage Account." | |
} | |
}, | |
"locationLookup": { | |
"type": "object", | |
"metadata": { | |
"description": "The reference to lookup location - DO NOT TOUCH" | |
}, | |
"defaultValue": { | |
"auc": "australiacentral", | |
"aue": "australiaeast", | |
"ause": "australiasoutheast", | |
"jpe": "japaneast", | |
"jpw": "japanwest", | |
"krc": "koreacentral", | |
"krs": "koreasouth", | |
"ea": "eastasia", | |
"sea": "southeastasia" | |
} | |
}, | |
"author": { | |
"type": "string", | |
"metadata": { | |
"description": "Author in tags" | |
}, | |
"defaultValue": "Justin Yoo" | |
}, | |
"profile": { | |
"type": "string", | |
"metadata": { | |
"description": "Profile in tags" | |
}, | |
"defaultValue": "https://twitter.com/justinchronicle" | |
}, | |
"projectUrl": { | |
"type": "string", | |
"metadata": { | |
"description": "Project URL in tags" | |
}, | |
"defaultValue": "https://github.com/devkimchi/Key-Vault-Backup-Restore-Sample" | |
}, | |
"repositoryUrl": { | |
"type": "string", | |
"metadata": { | |
"description": "Repository URL in tags" | |
}, | |
"defaultValue": "https://github.com/devkimchi/Key-Vault-Backup-Restore-Sample" | |
}, | |
"license": { | |
"type": "string", | |
"metadata": { | |
"description": "License in tags" | |
}, | |
"defaultValue": "https://raw.githubusercontent.com/devkimchi/Key-Vault-Backup-Restore-Sample/master/LICENSE" | |
} | |
}, | |
"variables": { | |
"location": "[if(contains(parameters('locationLookup'), parameters('locationCode')), parameters('locationLookup')[parameters('locationCode')], resourceGroup().location)]", | |
"storageAccount": { | |
"name": "[parameters('storageAccountName')]", | |
"apiVersion": "[providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]]" | |
}, | |
"connection": { | |
"name": "[parameters('name')]", | |
"apiVersion": "[providers('Microsoft.Web', 'connections').apiVersions[0]]", | |
"resourceId": "[resourceId('Microsoft.Storage/storageAccount', parameters('name'))]", | |
"location": "[variables('location')]", | |
"azureblob": { | |
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', variables('location'), '/managedApis/azureblob')]", | |
"name": "[parameters('name')]", | |
"displayName": "[parameters('name')]", | |
"accountName": "[variables('storageAccount').name]" | |
} | |
}, | |
"tags": { | |
"author": "[parameters('author')]", | |
"profile": "[parameters('profile')]", | |
"projectUrl": "[parameters('projectUrl')]", | |
"repositoryUrl": "[parameters('repositoryUrl')]", | |
"license": "[parameters('license')]" | |
} | |
}, | |
"resources": [ | |
{ | |
"comments": "### CONNECTOR - BLOB STORAGE ###", | |
"type": "Microsoft.Web/connections", | |
"apiVersion": "[variables('connection').apiVersion]", | |
"name": "[variables('connection').azureblob.name]", | |
"location": "[variables('connection').location]", | |
"properties": { | |
"api": { | |
"id": "[variables('connection').azureblob.id]" | |
}, | |
"displayName": "[variables('connection').azureblob.displayName]", | |
"parameterValues": { | |
"accountName": "[variables('connection').azureblob.accountName]", | |
"accessKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccount').name), variables('storageAccount').apiVersion).keys[0].value]" | |
} | |
} | |
} | |
], | |
"outputs": {} | |
} |