Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand All @@ -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; }

Expand Down
13 changes: 6 additions & 7 deletions src/Websites/Websites/help/New-AzWebAppAzureStoragePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down