Skip to content

getting an error on aspire deployment - ManagedEnvironmentStorageShareNameInvalidRequest #5831

Answered by davidfowl
markat1 asked this question in Q&A
Discussion options

You must be logged in to vote

its right there:

resource chatcompletionChatcompletionStore 'Microsoft.App/managedEnvironments/storages@2023-05-01' = {
parent: containerAppEnvironment
name: take('${toLower('chatcompletion')}-${toLower('chatcompletion')}', 32)
properties: {
azureFile: {
shareName: '${toLower('chatcompletion')}-${toLower('chatcompletion')}'
accountName: storageVolume.name
accountKey: storageVolume.listKeys().keys[0].value
accessMode: 'ReadWrite'
}
}
}

The share name property is too long.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@markat1
Comment options

@davidfowl
Comment options

@markat1
Comment options

@davidfowl
Comment options

Answer selected by markat1
@markat1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants