1
votes

I want to create a file share in azure storage account using command line .

i am using the command az storage share create --name myfile --account-name $NAME --account-key $key . but it is showing an error.

I also tried azcopy make "url for file share?accountkey" but it is also not working .i am using azcopy version 7.3

this is the error which i am getting.

The command failed with an unexpected error. Here is the traceback:

HTTPSConnectionPool(host='redboxtfstatebedtqgliqc.file.core.windows.net', port=443): Max retries exceeded with url: /myfile?restype=share (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

1
Try to update the Azure CLI latest version? docs.microsoft.com/en-us/cli/azure/… - Nancy Xiong
i am using latest azure cli - DEEPAK
Could you run the az storage share in Azure cloud shell? It seems to be related to an SSL cert issue. - Nancy Xiong
If proxy uses self-signed certificates, you could refer to these ways in the wiki:github.com/Azure/azure-cli/blob/dev/doc/… - George Chen
well i adapted a different method for what i wanted to do ...so now file share creation is not the part of it .thanks for all of your concerns. - DEEPAK

1 Answers

0
votes

I had the same problem like the author of the post. It can be solved following the link which George Chen posted:

https://github.com/Azure/azure-cli/blob/dev/doc/use_cli_effectively.md#working-behind-a-proxy

  1. You need to edit the file: "C:\path_to_your_cli_installation\CLI2\Lib\site-packages\certifi\cacert.pem" and add the certificate of your proxy server
  2. You need to set the environment variable REQUESTS_CA_BUNDLE to "C:\path_to_your_cli_installation\CLI2\Lib\site-packages\certifi\cacert.pem"