Azure / Azure/azure-quickstart-templates

Can't figure out how to use outputs on dynamic number of resources created based on count

Open
#1,932 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

I am creating x number of storage accounts and x is determined by a 'count' parameter passed into the template. I would like to output an array of storage account objects but because I can't use CopyIndex() in Outputs, I don't know how to do that or if it's even possible.

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

No template file or test is named. Start by locating the count-based storage account resource and its output declarations in the relevant Azure Quickstart template, then check the documented Bicep or ARM output behavior around CopyIndex(). Done means establishing whether an array of created storage account objects can be exposed and documenting the supported approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.