-
Notifications
You must be signed in to change notification settings - Fork 4k
cmdlet changes for creating and managing windows container web app #7191
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
Related design review PR https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/136 |
...ceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/GetAzureWebAppSlotConfigName.cs
Outdated
Show resolved
Hide resolved
<Reference Include="Microsoft.Azure.Management.Websites, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Websites.2.0.0\lib\net452\Microsoft.Azure.Management.Websites.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
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.
remove this
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.
take care of this.. these need to be removed
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.
Lets address this in PR #7127
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.15\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" /> |
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.
remove this
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.
same here.. this needs to be pulled out.
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.
Should be fixed in #7127
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.
Newtonsoft.Json
and Microsoft.Rest.ClientRuntime.Azure
need to be removed from this file. They are referenced from the common targets file (at the top of the csproj).
@@ -67,5 +68,8 @@ public PSSite(Site other) | |||
public string GitRemoteUri { get; set; } | |||
public string GitRemoteUsername { get; set; } | |||
public SecureString GitRemotePassword { get; set; } | |||
|
|||
[CmdletParameterBreakingChange("SnapshotInfo", ChangeDescription = "This property is deprecated and will be removed in a future releases.")] |
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 needs to be applied on the cmdlet itself where PSSite is consumed. Adding it here will have no impact.
...er/Websites/Commands.Websites/Cmdlets/DeploymentSlots/GetAzureWebAppSlotPublishingProfile.cs
Outdated
Show resolved
Hide resolved
@@ -34,15 +34,19 @@ public class GetAzureWebAppPublishingProfileCmdlet : WebAppBaseCmdlet | |||
[ValidateSet("WebDeploy", "FileZilla3", "Ftp", IgnoreCase = true)] | |||
public string Format { get; set; } | |||
|
|||
[Parameter(Mandatory = false, HelpMessage = "Include the disaster recovery endpoints if true")] | |||
public SwitchParameter IncludeDisasterRecoveryEndpoints { 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.
use a singular noun instead of the plural form.
Can you call the switch -IncludeDisasterRecoveryEndpointInformation
or -IncludeDisasterRecoveryEndpointData
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.
See #7127
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.
what I am saying is that PS recommends using singular nouns for params. Documentation here.
You can call this whatever internally but the param name should not be a plural.
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 change is not part of this PR. It is part of #7127. Plural names for Switch parameters is fine as switch parameters cannot take values. So, plurality is irrelevant, other than to make the switch name make sense.
@exc3eed @maddieclayton adding Do not merge in this PR because it depends on #7127 getting in first. The changes here are basically all changes in #7127 with only 4 cmdlets changes ove them |
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.
Limiting the scope of the review to just whats described in :"https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/136". The changes look good to me. Approved.
This can only be merged though after #7127 gets merged
@praries880 Thanks for reviewing this |
4c34167
to
55c88ad
Compare
@exc3eed Please pull the latest from the |
55c88ad
to
89359f9
Compare
src/ResourceManager/Websites/Commands.Websites/help/AzureRM.Websites.md
Outdated
Show resolved
Hide resolved
demand: https://azuresdkci.westus2.cloudapp.azure.com/view/PowerShell/job/powershell-demand/1096/ @markcowl This PR is ready to merge once CI passes. |
@exc3eed It looks like merging Nick's PR caused some merge conflicts with your branch. I would merge them in Github, but looks like they are too complex to resolve in the web tool. Please pull from the upstream release-2018-09-17 branch to resolve merge conflicts. |
…asfarok-container # Conflicts: # src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestCreateNewWebAppBackup.json # src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestCreateNewWebAppBackupPiping.json # src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestEditAndGetWebAppBackupConfiguration.json # src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestEditAndGetWebAppBackupConfigurationPiping.json # src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestGetWebAppBackup.json # src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebAppBackupRestoreTests/TestGetWebAppBackupList.json # src/ResourceManager/Websites/Commands.Websites/ChangeLog.md # src/ResourceManager/Websites/Commands.Websites/help/AzureRM.Websites.md
…es prior state on the subscription to be able to run the test.
Description
Azure/azure-powershell-cmdlet-review-pr#136
https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/145Checklist
CONTRIBUTING.md
platyPS
module