From 071a175b1480df6e6af6042ed1f9fd0d0ccf6713 Mon Sep 17 00:00:00 2001 From: SaurabhSharma-MSFT <38112130+SaurabhSharma-MSFT@users.noreply.github.com> Date: Tue, 10 Jan 2023 14:47:54 +0530 Subject: [PATCH 1/4] {AppServices} Update AccountName parameter description Update AccountName parameter and mount path parameter description --- .../Websites/help/New-AzWebAppAzureStoragePath.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md index 3fc2d3fca148..8ca6af9021ac 100644 --- a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md +++ b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md @@ -25,11 +25,11 @@ Creates an object that represent an Azure Storage path to be mounted inside a We ### Example 1 ```powershell -$storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount.files.core.windows.net" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" ` --MountPath "C:\myFolderInsideTheContainerWebApp" +$storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" ` +-MountPath "\mounts\myFolderInsideTheContainerWebApp" -$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2.files.core.windows.net" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" ` --MountPath "C:\myFolderInsideTheContainerWebApp2" +$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" ` +-MountPath "\mounts\myFolderInsideTheContainerWebApp2" Set-AzWebApp -ResourceGroupName myresourcegroup -Name myapp -AzureStoragePath $storagepath1, $storagePath2 ``` @@ -52,8 +52,7 @@ Accept wildcard characters: False ``` ### -AccountName -Azure Storage account name. -E.g.: myfilestorageaccount.file.core.windows.net +Azure Storage account name. e.g.: myfilestorageaccount ```yaml Type: System.String @@ -83,7 +82,7 @@ Accept wildcard characters: False ``` ### -MountPath -Path in the container where the share specified by ShareName will be exposed +Path in the container where the share specified by ShareName will be exposed. MountPath must be sub-directory of "\mounts". ```yaml Type: System.String From 80f476a826bbba7a0c91da2bf632a65a40b08dbc Mon Sep 17 00:00:00 2001 From: SaurabhSharma-MSFT <38112130+SaurabhSharma-MSFT@users.noreply.github.com> Date: Mon, 16 Jan 2023 16:56:47 +0530 Subject: [PATCH 2/4] Update Parameter description Update Parameter description --- .../Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs b/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs index f6438be85d7a..1454797be2a5 100644 --- a/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs +++ b/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs @@ -29,7 +29,7 @@ public class NewAzureRmWebAppAzureStoragePath: WebAppBaseClientCmdLet [ValidateNotNullOrEmpty] public AzureStorageType Type { get; set; } - [Parameter(Mandatory = true, HelpMessage = "Azure Storage account name. E.g.: myfilestorageaccount.file.core.windows.net")] + [Parameter(Mandatory = true, HelpMessage = "Azure Storage account name. e.g.: myfilestorageaccount")] [ValidateNotNullOrEmpty] public string AccountName { get; set; } @@ -41,7 +41,7 @@ public class NewAzureRmWebAppAzureStoragePath: WebAppBaseClientCmdLet [ValidateNotNullOrEmpty] public string AccessKey { get; set; } - [Parameter(Mandatory = true, HelpMessage = "Path in the container where the share specified by ShareName will be exposed")] + [Parameter(Mandatory = true, HelpMessage = "Path in the container where the share specified by ShareName will be exposed. MountPath must be sub-directory of "\mounts".")] [ValidateNotNullOrEmpty] public string MountPath { get; set; } From ac2ac1c3f1464aa3742a9c7d6c0325aa55f56c84 Mon Sep 17 00:00:00 2001 From: SaurabhSharma-MSFT <38112130+SaurabhSharma-MSFT@users.noreply.github.com> Date: Tue, 17 Jan 2023 17:19:02 +0530 Subject: [PATCH 3/4] modify parameter description --- .../Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs | 2 +- src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs b/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs index 1454797be2a5..9481253a028d 100644 --- a/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs +++ b/src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs @@ -41,7 +41,7 @@ public class NewAzureRmWebAppAzureStoragePath: WebAppBaseClientCmdLet [ValidateNotNullOrEmpty] public string AccessKey { get; set; } - [Parameter(Mandatory = true, HelpMessage = "Path in the container where the share specified by ShareName will be exposed. MountPath must be sub-directory of "\mounts".")] + [Parameter(Mandatory = true, HelpMessage = "Path in the container where the share specified by ShareName will be exposed. MountPath must be sub-directory of \"mounts\".")] [ValidateNotNullOrEmpty] public string MountPath { get; set; } diff --git a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md index 8ca6af9021ac..17ec9f3b3f0c 100644 --- a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md +++ b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md @@ -26,7 +26,7 @@ Creates an object that represent an Azure Storage path to be mounted inside a We ### Example 1 ```powershell $storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" ` --MountPath "\mounts\myFolderInsideTheContainerWebApp" +-MountPath "\mount\myFolderInsideTheContainerWebApp" $storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" ` -MountPath "\mounts\myFolderInsideTheContainerWebApp2" From 1374233617d6f9147449ac71cfa9ba489671065d Mon Sep 17 00:00:00 2001 From: SaurabhSharma-MSFT <38112130+SaurabhSharma-MSFT@users.noreply.github.com> Date: Tue, 17 Jan 2023 17:20:40 +0530 Subject: [PATCH 4/4] generate help --- src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md index 17ec9f3b3f0c..8ca6af9021ac 100644 --- a/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md +++ b/src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md @@ -26,7 +26,7 @@ Creates an object that represent an Azure Storage path to be mounted inside a We ### Example 1 ```powershell $storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" ` --MountPath "\mount\myFolderInsideTheContainerWebApp" +-MountPath "\mounts\myFolderInsideTheContainerWebApp" $storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" ` -MountPath "\mounts\myFolderInsideTheContainerWebApp2"