update New Roleassignment creation calls to have delegation flag#5023
update New Roleassignment creation calls to have delegation flag#5023cormacpayne merged 11 commits intoAzure:release-5.1.0from
Conversation
|
@darshanhs90 feel free to remove the |
|
@azuresdkci test this please |
|
@cormacpayne Have updated the PR after the publish of the SDK |
|
@azuresdkci test this please |
cormacpayne
left a comment
There was a problem hiding this comment.
@darshanhs90 a few comments
| <Name>Commands.Common.Authentication</Name> | ||
| </ProjectReference> | ||
| <ProjectReference Include="..\..\..\Common\Commands.Common.Authorization\Commands.Common.Authorization.csproj"> | ||
| <!-- <ProjectReference Include="..\..\..\Common\Commands.Common.Authorization\Commands.Common.Authorization.csproj"> |
There was a problem hiding this comment.
@darshanhs90 please remove this section if you are going to comment it out #Resolved
| <Name>Commands.Common.Authentication.Abstractions</Name> | ||
| </ProjectReference> | ||
| <ProjectReference Include="..\..\..\Common\Commands.Common.Authorization\Commands.Common.Authorization.csproj"> | ||
| <!-- <ProjectReference Include="..\..\..\Common\Commands.Common.Authorization\Commands.Common.Authorization.csproj"> |
There was a problem hiding this comment.
@darshanhs90 same comment about removing this section #Resolved
| <packages> | ||
| <package id="Microsoft.Azure.Management.ResourceManager" version="1.6.0-preview" targetFramework="net452" /> | ||
| <package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" /> | ||
| <package id="Microsoft.Azure.Management.Authorization" version="2.6.0-preview" targetFramework="net452" /> |
There was a problem hiding this comment.
@darshanhs90 since you are adding a new package to your module, you will need to do two additional things:
(1) Add the new package to the RequiredAssemblies field in AzureRM.Resources
(2) Update the .wxi file #Resolved
There was a problem hiding this comment.
@cormacpayne Regenerated the wxi file as per the steps mentioned , Let me know if there is anything that needs to be done since this feature was planned to be included for the upcoming 12/8 powersheel release.
| [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ResourceWithSPN, | ||
| HelpMessage = "Delegation flag.")] | ||
| [ValidateNotNullOrEmpty] | ||
| public bool CanDelegate { get; set; } |
There was a problem hiding this comment.
@darshanhs90 two comments about this parameter:
(1) Since it can be found in every parameter set, it would be best if you would put just one Parameter attribute on this, but give it no ParameterSetName property - this will put the parameter into every single parameter set and you won't have to copy-paste the Parameter attribute for every single set it can belong to
(2) Rather than using a bool, this should be a SwitchParameter that a user can set. #Resolved
|
@cormacpayne Have removed the property ValueFromPipelineByPropertyName for the switch parameter |
|
@cormacpayne Should i change the base branch to release-5.1.0 for it to make into the upcoming release? |
|
@darshanhs90 good call, forgot to do that. I just changed the base branch and there looks to be some merge conflicts. Would you mind resolving these? |
|
Sure will do right away |
|
@cormacpayne Fixed the merge conflicts |
Linked to SDK PR
Azure/azure-sdk-for-net#3872
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcessand haveSupportShouldProcess=truespecified in the cmdlet attribute. You can find more information onShouldProcesshere.OutputTypeattribute if any output is produced - if the cmdlet produces no output, it should implement aPassThruparameter.Cmdlet Parameter Guidelines