-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Adding new Powershell module for ManagedServiceIdentity #5270
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
|
I ran the tests by setting the credentials using Set-TestEnvironment and the tests succeeded but no SessionRecords were generated. |
|
@varunkch the build is failing because there is no markdown help provided for your cmdlets. See this guide for more information on using the |
maddieclayton
left a comment
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.
Here is an initial review - I may have a few more comments once these comments are addressed and I can do another in depth review.
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.
Is there a reason you can't use GetRMModulePath below? No reason to add a method if it is not necessary.
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.
Changed to use GetRMModulePath
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.
It is standard for modules to start at version 1.0.0.
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.
Please update this to the current version of Profile (4.2.0).
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.
You will need to regenerate the WIX file: https://github.com/Azure/azure-powershell/wiki/Azure-Powershell-Developer-Guide#updating-the-installer
This should fix your build issues.
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.
done
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.
Please change RootNamespace and AssemblyName to Microsoft.Azure.Commands.ManagedServiceIdentity.Tests
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.
Add better message and store in Resources
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.
Please add descriptions for each of these cmdlets - if you regenerate the description for the individual modules should be automatically filled in, but you will have to fill the module description manually.
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.
Please add sample output for all examples.
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.
Change to System.Boolean
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.
Please update the online version for these markdown files
|
@maddieclayton would you mind taking a look at that changes Varun pushed, as well as helping him with the failing test? |
|
@varunkch Can you also squash the commits? Thanks. |
|
@varunkch Once you have fixed the test (as outlined by Cormac over email) and squashed the commits, please assign this back to me. |
maddieclayton
left a comment
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.
Once the online version is updated, this will be good to go. Ping me once this is done, and I will start a sign run.
| --- | ||
| external help file: Microsoft.Azure.Commands.ManagedServiceIdentity.dll-Help.xml | ||
| Module Name: AzureRM.ManagedServiceIdentity | ||
| online version: 1.0.0 |
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.
All you need to do is follow the format, and it will create the proper link:
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.managedserviceidentity/get-azurermuserassignedidentity
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.managedserviceidentity/new-azurermuserassignedidentity
online version: https://docs.microsoft.com/en-us/powershell/module/azurerm.managedserviceidentity/remove-azurermuserassignedidentity
| <Project>{3436a126-edc9-4060-8952-9a1be34cdd95}</Project> | ||
| <Name>Commands.ScenarioTests.ResourceManager.Common</Name> | ||
| </ProjectReference> | ||
| <ProjectReference Include="..\..\Profile\Commands.Profile\Commands.Profile.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.
You will need to remove both Profile and Resources in order to pass the sign job. Additionally, it seems like a lot of these project references are unnecessary (scenariotests for instance should only be in the test csproj). Please go through and remove the references that are not being used in your project.
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.
Well I had added these references when you mentioned that I need to add all the common references from this file line 15-35 for sign job to pass:
https://github.com/Azure/azure-powershell/blob/preview/src/ResourceManager/Resources/Resources.sln#L15
I though we need to add all :)
Removed Resources, Profile and ScenarioTests, RBAC, Storage, Network since we dont need them
…nto msi_powershell2
This reverts commit a8d0e88.
| VisualStudioVersion = 14.0.25420.1 | ||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ManagedServiceIdentity", "Commands.ManagedServiceIdentity\Commands.ManagedServiceIdentity.csproj", "{228EB071-FA04-43B3-95F9-7D76DBF0B850}" | ||
| ProjectSection(ProjectDependencies) = postProject |
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.
This doesn't look correct - please fix this so it follows the format below. Did you add the new project on visual studio?
Description
Adding new Powershell module for MSI (Managed Service Identity).
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