Skip to content

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

Merged
merged 5 commits into from
Sep 16, 2018

Conversation

exc3eed
Copy link

@exc3eed exc3eed commented Sep 11, 2018

Description

Azure/azure-powershell-cmdlet-review-pr#136
https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/145

Checklist

@exc3eed exc3eed changed the title Asfarok container cmdlet changes for creating and managing windows container web app Sep 11, 2018
@maddieclayton maddieclayton self-assigned this Sep 11, 2018
@praries880 praries880 self-requested a review September 11, 2018 20:20
@exc3eed exc3eed added the Ignite label Sep 11, 2018
@exc3eed
Copy link
Author

exc3eed commented Sep 12, 2018

<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">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Contributor

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

Copy link
Author

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" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Contributor

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.

Copy link
Author

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

Copy link
Contributor

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.")]
Copy link
Contributor

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.

@@ -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; }
Copy link
Contributor

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #7127

Copy link
Contributor

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.

Copy link
Contributor

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.

@praries880
Copy link
Contributor

@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

praries880
praries880 previously approved these changes Sep 13, 2018
Copy link
Contributor

@praries880 praries880 left a 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

@exc3eed
Copy link
Author

exc3eed commented Sep 13, 2018

@praries880 Thanks for reviewing this

@MiYanni
Copy link
Contributor

MiYanni commented Sep 14, 2018

@exc3eed Please pull the latest from the release-2018-09-17 branch.

MiYanni
MiYanni previously approved these changes Sep 15, 2018
@maddieclayton
Copy link
Contributor

@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
MiYanni
MiYanni previously approved these changes Sep 15, 2018
…es prior state on the subscription to be able to run the test.
@MiYanni MiYanni merged commit 379a4a2 into Azure:release-2018-09-17 Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants