Skip to content

Enable object and array type parameters for template deployment #2238

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

Merged
merged 3 commits into from
May 10, 2016

Conversation

TianoMS
Copy link

@TianoMS TianoMS commented May 9, 2016

Issue: #1940

@azurecla
Copy link

azurecla commented May 9, 2016

Hi @TianoMS, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

@TianoMS
Copy link
Author

TianoMS commented May 9, 2016

}
else if (resourceParameterType.Equals(arrayType, StringComparison.OrdinalIgnoreCase))
{
typeObject = typeof(object[]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hashtable[] doesn't work?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Json "array" type, we can't map it to Hashtable[]. Here we are actually binding to a dynamic parameter in powershell. So it's for something like "@('abc', 'def')", which is maps to object[].

@hovsepm
Copy link
Contributor

hovsepm commented May 10, 2016

@TianoMS please pull from upstream and resolve conflicts.

…tiano-d2

Conflicts:
	src/ResourceManager/Resources/Commands.Resources.Test/Models.ResourceGroups/GalleryTemplatesClientTests.cs
@TianoMS
Copy link
Author

TianoMS commented May 10, 2016

@hovsepm hovsepm merged commit 204b6f3 into Azure:dev May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants