Skip to content

Commit d1d0f71

Browse files
{AppServices} Update AccountName parameter description (#20607)
* {AppServices} Update AccountName parameter description Update AccountName parameter and mount path parameter description * Update Parameter description Update Parameter description * modify parameter description * generate help
1 parent dbfd3f6 commit d1d0f71

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/Websites/Websites/Cmdlets/WebApps/NewAzureRmWebAppAzureStoragePath.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class NewAzureRmWebAppAzureStoragePath: WebAppBaseClientCmdLet
2929
[ValidateNotNullOrEmpty]
3030
public AzureStorageType Type { get; set; }
3131

32-
[Parameter(Mandatory = true, HelpMessage = "Azure Storage account name. E.g.: myfilestorageaccount.file.core.windows.net")]
32+
[Parameter(Mandatory = true, HelpMessage = "Azure Storage account name. e.g.: myfilestorageaccount")]
3333
[ValidateNotNullOrEmpty]
3434
public string AccountName { get; set; }
3535

@@ -41,7 +41,7 @@ public class NewAzureRmWebAppAzureStoragePath: WebAppBaseClientCmdLet
4141
[ValidateNotNullOrEmpty]
4242
public string AccessKey { get; set; }
4343

44-
[Parameter(Mandatory = true, HelpMessage = "Path in the container where the share specified by ShareName will be exposed")]
44+
[Parameter(Mandatory = true, HelpMessage = "Path in the container where the share specified by ShareName will be exposed. MountPath must be sub-directory of \"mounts\".")]
4545
[ValidateNotNullOrEmpty]
4646
public string MountPath { get; set; }
4747

src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Creates an object that represent an Azure Storage path to be mounted inside a We
2525

2626
### Example 1
2727
```powershell
28-
$storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount.files.core.windows.net" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" `
29-
-MountPath "C:\myFolderInsideTheContainerWebApp"
28+
$storagePath1 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount1" -AccountName "myaccount" -Type AzureFiles -ShareName "someShareName" -AccessKey "some access key" `
29+
-MountPath "\mounts\myFolderInsideTheContainerWebApp"
3030
31-
$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2.files.core.windows.net" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" `
32-
-MountPath "C:\myFolderInsideTheContainerWebApp2"
31+
$storagePath2 = New-AzWebAppAzureStoragePath -Name "RemoteStorageAccount2" -AccountName "myaccount2" -Type AzureFiles -ShareName "someShareName2" -AccessKey "some access key 2" `
32+
-MountPath "\mounts\myFolderInsideTheContainerWebApp2"
3333
3434
Set-AzWebApp -ResourceGroupName myresourcegroup -Name myapp -AzureStoragePath $storagepath1, $storagePath2
3535
```
@@ -52,8 +52,7 @@ Accept wildcard characters: False
5252
```
5353
5454
### -AccountName
55-
Azure Storage account name.
56-
E.g.: myfilestorageaccount.file.core.windows.net
55+
Azure Storage account name. e.g.: myfilestorageaccount
5756
5857
```yaml
5958
Type: System.String
@@ -83,7 +82,7 @@ Accept wildcard characters: False
8382
```
8483
8584
### -MountPath
86-
Path in the container where the share specified by ShareName will be exposed
85+
Path in the container where the share specified by ShareName will be exposed. MountPath must be sub-directory of "\mounts".
8786
8887
```yaml
8988
Type: System.String

0 commit comments

Comments
 (0)