I have created an Azure Data Lake gen 2 with ARM templates. But now I am trying to figure out how to create Data Lake File systems in ARM but can't seem to find the API's to do this. Is this unavailable, is this possible through another way ?
Tried to create the File systems manually and export the template in the portal but didn't seem to see the File system resource. Only this warning.
Because this stated that the file system may be listen in the API as "blobservices/containers" I tried to add this resource to the ARM template
{
"name": "[concat( parameters('DataLakeName'), '/default/input')]",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', parameters('DataLakeName'))]"
],
"apiVersion": "2018-07-01",
"properties": {
"publicAccess": "None",
"metadata": {}
},
"resources": []
}
But this did not work unfortunately and provided this error message :
Blob API is not yet supported for hierarchical namespace accounts.
Which got me thinking this may be not even possible to deploy through ARM. Is there someone who already tried this out ?
The ARM template resource block of my datalake storage account complete as context:
{
"name": "[parameters('DataLakeName')]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2018-07-01",
"location": "[parameters('location')]",
"tags": {},
"properties": {
"accessTier": "[parameters('accessTier')]",
"supportsHttpsTrafficOnly": "[parameters('supportsHttpsTrafficOnly')]",
"isHnsEnabled": true
},
"resources": [
{
"type": "providers/advancedThreatProtectionSettings",
"name": "Microsoft.Security/current",
"apiVersion": "2017-08-01-preview",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/', parameters('DataLakeName'))]"
],
"properties": {
"isEnabled": true
}
}
],
"dependsOn": [],
"sku": {
"name": "[parameters('accountType')]"
},
"kind": "StorageV2"
}