Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow outputs from a blueprint assignment #36

Open
pbalexlear opened this issue May 18, 2020 · 4 comments
Open

Allow outputs from a blueprint assignment #36

pbalexlear opened this issue May 18, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@pbalexlear
Copy link

Hello, would it be possible to add the functionality to output variables etc like you can from arm templates but as part of an assignation instead?

@alex-frankel
Copy link
Contributor

I will leave this open as an enhancement. It is a good suggestion, but this is not something we are likely to get to.

@alex-frankel alex-frankel added the enhancement New feature or request label May 27, 2020
@kkazala
Copy link

kkazala commented Feb 2, 2021

This is absolutely fantastic idea, especially for CI/CD

For example, I am creating a resource group with a name defined as
[concat(parameters('g_Environment_Name'),'-',parameters('g_Project_Name'),'-App-rg')].

I'm using assignment file which is updated during each stage, based on the library variables.
After the assignment completes, I would like to use the name of the resource group in AZsK task.

@pbalexlear
Copy link
Author

@kkazala you can do this by querying the blueprints api to get the objects and resource groups it created i think its the assignment you need to do a get on.

@ivan-83
Copy link

ivan-83 commented Mar 11, 2021

Hi, @alex-frankel
I am trying to get outputs from an assignment in the following way,

  1. List assignment operations based on assignment name,
  2. Get deployment reference from deployments job, properties.deployments.requestUri - https://docs.microsoft.com/en-us/rest/api/blueprints/assignmentoperations/list#assignment-at-subscription-scope
  3. Return outputs based on deployment reference,
  4. However sometimes, I am getting properties.deployments.requestUri as null in 2. step, and there is no deployment reference. Is it some issue related to listing assignment operations REST API or I am doing something wrong? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants