Closed artisticcheese closed 3 years ago
You shouldn't have to supply both -Blueprint
and -AssignmentFile
parameters. It should be either/or. Is that not what you are seeing?
New-AzBlueprintAssignment cmdlet has 2 parameter sets, one with assignment file and another one without it. For parameter set which accepts assignment file why -Blueprint parameter is needed at all?
I think at one point both parameters were required, but we realized it was redundant so we made it optional
Confused with wording here https://docs.microsoft.com/en-us/azure/governance/blueprints/how-to/manage-assignments-ps#example-2-use-a-json-assignment-definition-file which using assignment file with published blueprint id as part of it. What is reason to have blueprint -Blueprint parameter in such cases since blueprint ID is already part of assignment file itself and is required (Example is below https://docs.microsoft.com/en-us/powershell/module/az.blueprint/new-azblueprintassignment?view=azps-5.2.0#example-4)