LoginSignup
1
4

More than 5 years have passed since last update.

【Azure】サーバからBlob Storageにファイルアップロード(Azure CLI)

Posted at

Azure CLIをYumインストールする

Azure CLIインストール方法(MicroSoft公式ドキュメントより引用)

方法

Azureにログイン

# az login

ファイルアップロード

# az storage blob upload -c <アップロード先コンテナ名> --file <アップロードするファイルpath> --account-key <アクセスキー> --account-name <ストレージアカウント名> --name <アップロード後の名前>

その他

ファイル削除

# az storage blob delete -c <コンテナ名> --account-key <アカウントキー> --account-name <ストレージアカウント名> --name <削除するファイル名>

コンテナ内のBlob一覧表示

# az storage blob list -c <コンテナ名> --account-key <アカウントキー> --account-name <ストレージアカウント名>
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4