Unable to perform a file share in azure

Arun SG 1 Reputation point
2020-07-30T04:28:06.26+00:00

I am trying to perform a file share upload in Azure. I am using Katacoda to perform this. The command should have: the account name, account key, share name, source, and path parameters correctly so that the file (index.php) is uploaded to the created directory. The share and directory inside share has same name sgfileshare1.

The path specified in the "source" is already downloaded using the command : git clone https://github.com/Azure-Samples/php-docs-hello-world

This is the command I gave :
az storage file upload --account-name **********--account-key hDY99b3***jcu9brPS2h1Nn5FfV6FAbCNbg== --share-name sgfileshare1 --source "/home/scrapbook/tutorial/php-docs-hello-world/index.php" --path "*****.file.core.windows.net/sgfileshare1/sgfileshare1/"

However, this is throwing errors (System cannot find the specified path (for both source and path). Can someone please guide me on this. This is a lab session and i have to include source and path.

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,215 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 44,996 Reputation points Microsoft Employee
    2020-07-30T10:40:46.89+00:00

    @Arun SG For better understanding: May I know which version OS are using?
    Can you share the screenshot of the error message?

    Have you checked port 445 is enabled? Also refer the Prerequisites

    Troubleshoot Azure Files problems in Windows and Troubleshoot Azure Files problems in Linux

    This article provide How to mount Azure Files and List of Windows version and Linux Distribution list supported by Azure Files

    For example: \anexampleaccountname.file.core.windows.net\example-share-name.

    Additional information: Using AzCopy and Azure Storage Explorer tool are the best option to transfer data(upload and download) to Azure

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.