Skip to content

Commit

Permalink
Update connectors-template.json (Azure#570)
Browse files Browse the repository at this point in the history
* Update connectors-template.json

* Update connectors-template.json

* Update connectors-template.json

* Update connectors-template.json
  • Loading branch information
abatishchev authored Jun 20, 2022
1 parent 44a3c75 commit cd7042c
Showing 1 changed file with 113 additions and 113 deletions.
226 changes: 113 additions & 113 deletions github-sample/ARM/connectors-template.json
Original file line number Diff line number Diff line change
@@ -1,122 +1,122 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "The datacenter to use for the deployment."
}
},
"logicAppSystemAssignedIdentityTenantId": {
"type": "string"
},
"logicAppSystemAssignedIdentityObjectId": {
"type": "string"
},
"sa_name": {
"defaultValue": "storage name",
"type": "string"
},
"connections_azureblob_name": {
"defaultValue": "azureblob",
"type": "string"
}
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "The datacenter to use for the deployment."
}
},
"variables": {
"sa": "[concat(toLower(parameters('sa_name')), uniqueString(resourceGroup().id))]"
"logicAppSystemAssignedIdentityTenantId": {
"type": "string"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2020-08-01-preview",
"name": "[variables('sa')]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "Storage",
"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"
}
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2018-02-01",
"name": "[concat(variables('sa'), '/default/blobs')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', variables('sa'))]"
],
"properties": {
"defaultEncryptionScope": "$account-encryption-key",
"denyEncryptionScopeOverride": false,
"publicAccess": "Container"
}
"logicAppSystemAssignedIdentityObjectId": {
"type": "string"
},
"sa_name": {
"defaultValue": "storage name",
"type": "string"
},
"connections_azureblob_name": {
"defaultValue": "azureblob",
"type": "string"
}
},
"variables": {
"storage_account": "[concat(toLower(parameters('sa_name')), uniqueString(resourceGroup().id))]"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-09-01",
"name": "[variables('storage_account')]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "Storage",
"properties": {
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_azureblob_name')]",
"location": "[parameters('location')]",
"kind": "V2",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', variables('sa'))]"
],
"properties": {
"displayName": "privatestorage",
"parameterValues": {
"accountName": "[variables('sa')]",
"accessKey": "[concat(listKeys(concat(resourceGroup().id,'/providers/Microsoft.Storage/storageAccounts/', variables('sa')),'2019-06-01').keys[0].value)]"
},
"api": {
"id": "[concat('/subscriptions/',subscription().subscriptionId,'/providers/Microsoft.Web/locations/',parameters('location'),'/managedApis/azureblob')]"
}
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true
},
"blob": {
"keyType": "Account",
"enabled": true
}
},
"keySource": "Microsoft.Storage"
}
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2021-09-01",
"name": "[format('{0}/default/blobs', variables('storage_account'))]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', variables('storage_account'))]"
],
"properties": {
"defaultEncryptionScope": "$account-encryption-key",
"denyEncryptionScopeOverride": false,
"publicAccess": "Container"
}
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_azureblob_name')]",
"location": "[parameters('location')]",
"kind": "V2",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', variables('storage_account'))]"
],
"properties": {
"displayName": "privatestorage",
"parameterValues": {
"accountName": "[variables('storage_account')]",
"accessKey": "[listKeys(resourceId('Microsoft.Storage/storageAccounts/', variables('storage_account')), '2019-06-01').keys[0].value]"
},
{
"type": "Microsoft.Web/connections/accessPolicies",
"apiVersion": "2016-06-01",
"name": "[concat(parameters('connections_azureblob_name'),'/',parameters('logicAppSystemAssignedIdentityObjectId'))]",
"location": "australiasoutheast",
"dependsOn": [
"[resourceId('Microsoft.Web/connections', parameters('connections_azureblob_name'))]"
],
"properties": {
"principal": {
"type": "ActiveDirectory",
"identity": {
"tenantId": "[parameters('logicAppSystemAssignedIdentityTenantId')]",
"objectId": "[parameters('logicAppSystemAssignedIdentityObjectId')]"
}
}
}
"api": {
"id": "[subscriptionResourceId('Microsoft.Web/locations/managedApis', parameters('location'), 'azureblob')]"
}
}
},
{
"type": "Microsoft.Web/connections/accessPolicies",
"apiVersion": "2016-06-01",
"name": "[format('{0}/{1}', parameters('connections_azureblob_name'), parameters('logicAppSystemAssignedIdentityObjectId'))]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/connections', parameters('connections_azureblob_name'))]"
],
"properties": {
"principal": {
"type": "ActiveDirectory",
"identity": {
"tenantId": "[parameters('logicAppSystemAssignedIdentityTenantId')]",
"objectId": "[parameters('logicAppSystemAssignedIdentityObjectId')]"
}
}

],
"outputs": {
"blobendpointurl": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Web/connections', parameters('connections_azureblob_name')),'2016-06-01', 'full').properties.connectionRuntimeUrl]"
}
}
}

],
"outputs": {
"blobendpointurl": {
"type": "string",
"value": "[reference(resourceId('Microsoft.Web/connections', parameters('connections_azureblob_name')), '2016-06-01', 'full').properties.connectionRuntimeUrl]"
}
}
}

0 comments on commit cd7042c

Please sign in to comment.