Skip to content

Conversation

@vinisoto
Copy link
Contributor

Description

Re-submitting #7295

Design review has been approved: Azure/azure-powershell-cmdlet-review-pr#166

Adding -AzureStorageAccounts parameter to Set-AzureRmWebApp and Set-AzureRmWebAppSlot to support "Bring your own storage" to Container-based web apps

Checklist

@vinisoto
Copy link
Contributor Author

Disabled tests have now been enabled.

Copy link
Member

@cormacpayne cormacpayne left a comment

Choose a reason for hiding this comment

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

@vinisoto a few minor comments to take a look at, otherwise LGTM

@@ -0,0 +1,52 @@
using Microsoft.Azure.Commands.WebApps.Models;
Copy link
Member

Choose a reason for hiding this comment

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

@vinisoto please add a license header to this file

@@ -0,0 +1,24 @@
using Microsoft.Azure.Management.WebSites.Models;
Copy link
Member

Choose a reason for hiding this comment

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

@vinisoto please add a license header to this file


namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
{
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "WebAppAzureStoragePath", SupportsShouldProcess = true), OutputType(typeof(WebAppAzureStoragePath))]
Copy link
Member

Choose a reason for hiding this comment

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

@vinisoto instead of "New", please use VerbsCommon.New


namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
{
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "WebAppAzureStoragePath", SupportsShouldProcess = true), OutputType(typeof(WebAppAzureStoragePath))]
Copy link
Member

Choose a reason for hiding this comment

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

@vinisoto as a note, it's not necessary to support ShouldProcess in this scenario since you are creating an in-memory object, but it doesn't hurt to have it supported 😀

@vinisoto
Copy link
Contributor Author

Thanks @cormacpayne. I addressed the requested changes.

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.

3 participants