File: perf-resources.bicep

package info (click to toggle)
python-azure 20250603%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 851,724 kB
  • sloc: python: 7,362,925; ansic: 804; javascript: 287; makefile: 195; sh: 145; xml: 109
file content (30 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
param baseName string = resourceGroup().name
param location string = resourceGroup().location

resource storageAccount 'Microsoft.Storage/storageAccounts@2019-06-01' = {
  name: '${baseName}dlake'
  location: location
  kind: 'BlockBlobStorage'
  sku: {
    name: 'Premium_LRS'
  }
  properties: {
    isHnsEnabled: true
  }
}

var name = storageAccount.name
var key = storageAccount.listKeys().keys[0].value

// EndpointSuffix is required by azure-storage-file-datalake 12.7.0 and earlier (fixed in #24779)
var connectionString = 'DefaultEndpointsProtocol=https;AccountName=${name};AccountKey=${key};EndpointSuffix=core.windows.net'

// .NET
output DATALAKE_STORAGE_ACCOUNT_NAME string = name
output DATALAKE_STORAGE_ACCOUNT_KEY string = key

// Java, JS
output STORAGE_CONNECTION_STRING string = connectionString

// Python
output AZURE_STORAGE_CONNECTION_STRING string = connectionString