add-azure-blob-storage
Add new Azure blob storage.
Syntax:
shell
sfiler-cli [options] add-azure-blob-storage [command options]
Command options | Required / Optional | Description |
---|---|---|
-n | Required | The Azure Blob storage name. |
-d | Optional | The Azure Blob storage description. |
-cs | Required | The Azure Blob storage connection string. |
-cn | Required | The Azure Blob storage container name. |
Example:
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" add-azure-blob-storage -n "Azure Blob Storage" -d "Azure Blob Storage Description" -cs "DefaultEndpointsProtocol=https;AccountName=your_account_name;AccountKey=your_account_key;EndpointSuffix=core.windows.net" -cn "your_container_name"
In the event of access problems, you can test the connection to Azure blob storage using the command test-access-azure-blob-storage
.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" test-access-azure-blob-storage -cs "DefaultEndpointsProtocol=https;AccountName=your_account_name;AccountKey=your_account_key;EndpointSuffix=core.windows.net" -cn "your_container_name"
The storage will not be available after executing this command. It is necessary to change the storage status to Active
to make it available. This can be done using the command modify-azure-blob-storage
.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" modify-azure-blob-storage -n "Azure Blob Storage" -s ACTIVE
Now that that the storage is set to ACTIVE
, you can use it to store your files.
If you wish to make that storage as your default storage, you can use the set-default-storage
command.
shell
./sfiler-config-cli.sh -l my-user -p my-password -cf "conf/sfiler.conf" set-default-storage -n "Azure Blob Storage"
For more information, see the azure-blobs documentation.