-
Notifications
You must be signed in to change notification settings - Fork 4k
Adding subnet delegation cmdlets #7220
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
Adding subnet delegation cmdlets #7220
Conversation
|
b07f81a
to
f7b7b2d
Compare
@praries880 Can you please review the code that is here in parallel? I'm in the process of getting through the cmdlet review and adding tests. |
fe79b8e
to
ea5e1ff
Compare
@rupalivohra Follow instructions inthis document to add alias mappings for netcore. Remove the file |
...anager/Network/Commands.Network/VirtualNetwork/Subnet/AzureVirtualNetworkSubnetConfigBase.cs
Outdated
Show resolved
Hide resolved
...nager/Network/Commands.Network/VirtualNetwork/Subnet/Delegation/NewAzureDelegationCommand.cs
Outdated
Show resolved
Hide resolved
src/ResourceManager/Network/Commands.Network/help/New-AzureRmDelegation.md
Show resolved
Hide resolved
src/ResourceManager/Network/Commands.Network/help/New-AzureRmVirtualNetworkSubnetConfig.md
Outdated
Show resolved
Hide resolved
src/ResourceManager/Network/Commands.Network/help/Set-AzureRmVirtualNetworkSubnetConfig.md
Outdated
Show resolved
Hide resolved
8b0b261
to
9375cd9
Compare
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.
@rupalivohra yuou need to fix the following static analysis errors :
AssemblyFileName | ClassName | Target | Severity | ProblemId | Description | Remediation |
---|---|---|---|---|---|---|
c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.Azure.Commands.Network.dll | Microsoft.Azure.Commands.Network.AddAzureSubnetDelegation | Add-AzureRmDelegation | 1 | 8100 | Add-AzureRmDelegation Does not support ShouldProcess but the cmdlet verb Add indicates that it should. | Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue |
c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.Azure.Commands.Network.dll | Microsoft.Azure.Commands.Network.VirtualNetwork.Subnet.RemoveAzureSubnetDelegation | Remove-AzureRmDelegation | 1 | 8100 | Remove-AzureRmDelegation Does not support ShouldProcess but the cmdlet verb Remove indicates that it should. | Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue |
c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.Azure.Commands.Network.dll | Microsoft.Azure.Commands.Network.VirtualNetwork.Subnet.NewAzureDelegationCommand | New-AzureRmDelegation | 1 | 8100 | New-AzureRmDelegation Does not support ShouldProcess but the cmdlet verb New indicates that it should. | Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue |
c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.Azure.Commands.Network.dll | Microsoft.Azure.Commands.Network.AddAzureSubnetDelegation | Add-AzureRmDelegation | 1 | 8100 | Add-AzureRmDelegation Does not support ShouldProcess but the cmdlet verb Add indicates that it should. | Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue |
c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.Azure.Commands.Network.dll | Microsoft.Azure.Commands.Network.VirtualNetwork.Subnet.RemoveAzureSubnetDelegation | Remove-AzureRmDelegation | 1 | 8100 | Remove-AzureRmDelegation Does not support ShouldProcess but the cmdlet verb Remove indicates that it should. | Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue |
c:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Network\Microsoft.Azure.Commands.Network.dll | Microsoft.Azure.Commands.Network.VirtualNetwork.Subnet.NewAzureDelegationCommand | New-AzureRmDelegation | 1 | 8100 | New-AzureRmDelegation Does not support ShouldProcess but the cmdlet verb New indicates that it should. | Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue |
.DESCRIPTION | ||
SmokeTest | ||
#> | ||
function Test-subnetDelegationCRUD |
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 need to add the test recodings for the tests to both git and the project. Example here and here](https://github.com/Azure/azure-powershell/blob/preview/src/ResourceManager/Network/Commands.Network.Test/Commands.Network.Test.csproj#L321).
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.
static analysis errors should be fixed in the latest build.
Running a local build to re-run tests before I add the recordings. Should be there soon.
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.
I added these cmdlets to the exception, but I'm still experiencing build failures :(
...nager/Network/Commands.Network/VirtualNetwork/Subnet/Delegation/NewAzureDelegationCommand.cs
Outdated
Show resolved
Hide resolved
...anager/Network/Commands.Network/VirtualNetwork/Subnet/AzureVirtualNetworkSubnetConfigBase.cs
Show resolved
Hide resolved
@rupalivohra can you pull the latest changes in Azure:network-september-release I am not sure why is this failing : https://travis-ci.org/Azure/azure-powershell/builds/428268315#L1652 |
9375cd9
to
ecb41cb
Compare
tools/StaticAnalysis/Exceptions/AzureRM.Network/SignatureIssues.csv
Outdated
Show resolved
Hide resolved
87c5aaf
to
9850ea2
Compare
0af412f
to
faeff1b
Compare
@rupalivohra retargeted the PR, please resolve the merge conflict when making other changes |
46426ea
to
08843c5
Compare
@rupalivohra Fixed the build failure and update two more of the delegation descriptions with the update description. Should be good to go as long as the build passes this time. Will check either late tonight or tomorrow morning. |
@maddieclayton thanks for the fix. It looks like unrelated tests are failing in the default build. Can we ignore those and check in regardless?
|
@rupalivohra Looks like the names of the paths changed since the last time the signature issues were ran - fixed it. Letting CI run now, hopefully all the tests will pass as they seem to be unrelated. We cannot merge this without CI passing, but I will gate creating the second release candidate on merging this PR so no need to worry about that. |
@rupalivohra Looking at the test failures now |
Failing tests in build: From Microsoft.WindowsAzure.Commands.Test: |
Changing to published SDK Adding help documentation for CRUD ops on delegations
bb9688b
to
284ef53
Compare
@maddieclayton @praries880 ready for merge |
Description
Adding PS support for CRUD operations for delegations on subnets
Checklist
CONTRIBUTING.md
platyPS
module