Skip to content
Discussion options

You must be logged in to vote

@allowed() will only support literal values, but you can use type syntax to make this work (and a type statement if you want to reuse it in multiple places):

param sku resourceInput<'Microsoft.Storage/storageAccounts@2023-01-01'>.sku.name

resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
  name: 'name'
  sku: {
    name: sku
  }
  // ...
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ikkentim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs: Triage 🔍
2 participants
Converted from issue

This discussion was converted from issue #16984 on April 23, 2025 20:16.