You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create an SFTP Storage Account where 2 Containers will be created, there will be 2 local users too who will have permissions to both the Containers but permission level will be different.
Trying to create Containers and local users with permissions to Containers like this but this is obviously wrong. What would be the right way to achieve this:
resource containers 'Microsoft.Storage/storageAccounts/blobServices/containers@2022-09-01' = [for name in containerNames: {
name: ${name}
parent: sa_blob
properties: {
publicAccess: 'None'
}
}
]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Trying to create an SFTP Storage Account where 2 Containers will be created, there will be 2 local users too who will have permissions to both the Containers but permission level will be different.
Trying to define parameters like this:
param containerNames array = [
'mycontainer01'
'mycontainer02'
]
param localUserConfig object = {
localUser01: {
localUserName: 'myuseruat'
permission: 'r'
}
localUser02: {
localUserName: 'myusertest'
permission: 'w'
}
}
Trying to create Containers and local users with permissions to Containers like this but this is obviously wrong. What would be the right way to achieve this:
resource containers 'Microsoft.Storage/storageAccounts/blobServices/containers@2022-09-01' = [for name in containerNames: {
name: ${name}
parent: sa_blob
properties: {
publicAccess: 'None'
}
}
]
resource localUsers 'Microsoft.Storage/storageAccounts/localUsers@2022-09-01' = [for config in items(storageConfig): {
parent: sa
name: config.value.localUserName
properties: {
#homeDirectory: config.value.containerName
hasSharedKey: false
hasSshPassword: true
hasSshKey: false
permissionScopes: [
{
permissions: config.value.permission
service: 'blob'
resourceName: config.value.containerName
}
{
permissions: config.value.permission
service: 'blob'
resourceName: config.value.containerName
}
]
}
}
]
Beta Was this translation helpful? Give feedback.
All reactions