-
Notifications
You must be signed in to change notification settings - Fork 4k
update New Roleassignment creation calls to have delegation flag #5023
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darshanhs90 a few comments
@@ -246,10 +249,10 @@ | |||
<Project>{d3804b64-c0d3-48f8-82ec-1f632f833c9e}</Project> | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darshanhs90 please remove this section if you are going to comment it out #Resolved
@@ -144,10 +147,10 @@ | |||
<Project>{70527617-7598-4aef-b5bd-db9186b8184b}</Project> | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darshanhs90 same comment about removing this section #Resolved
@@ -2,4 +2,5 @@ | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines