hypen strip in flow log storage acc (#354)
This commit is contained in:
Родитель
296969f09e
Коммит
ee25d48ad2
|
@ -339,7 +339,7 @@ resource log 'Microsoft.OperationalInsights/workspaces@2021-06-01' existing = if
|
|||
}
|
||||
|
||||
param CreateNsgFlowLogs bool = false
|
||||
var flowLogStorageRawName = toLower('stflow${resourceName}${uniqueString(resourceGroup().id, resourceName)}')
|
||||
var flowLogStorageRawName = replace(toLower('stflow${resourceName}${uniqueString(resourceGroup().id, resourceName)}'),'-','')
|
||||
var flowLogStorageName = length(flowLogStorageRawName) > 24 ? substring(flowLogStorageRawName, 0, 24) : flowLogStorageRawName
|
||||
resource flowLogStor 'Microsoft.Storage/storageAccounts@2021-08-01' = if(CreateNsgFlowLogs && networkSecurityGroups) {
|
||||
name: flowLogStorageName
|
||||
|
|
Загрузка…
Ссылка в новой задаче