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

Add reference() function to get output from a resource #354

Merged
merged 5 commits into from
Mar 9, 2024

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

Add reference() function to get output from an executed resource. Note that this differs from https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#reference in that it only takes a single argument which is a resourceId. The other two parameters don't apply to DSC. Also note that the output is the same as if you executed the resource from dsc so it's wrapped as a GetResult, SetResult, TestResult.

PR Context

Part of #57

@SteveL-MSFT SteveL-MSFT merged commit e63c3bb into PowerShell:main Mar 9, 2024
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the reference branch March 9, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant