Skip to main content
Any Framework

.NET Tool that archives local files to Azure Blob Storage

Published
Sep 24, 2024
2y ago
Total Downloads
242.0K
241,957

Install

dotnet add package Blobify --version 2024.9.24.40

No framework information available.

README

Blobify

Blobify is a .NET Global tool that archives (moves) files from a local folder to Azure Blob Storage container.

Obtain

dotnet tool install -g Blobify

Usage

blobify archive    [OPTIONS]

Example

blobify archive inputpath storageaccountname storagecontainer

Arguments

                       Input path
             Azure Storage Account Name
    Azure Storage Account Container Name

Options

-h, --help               Prints help information
    --azure-tenant-id    Azure Tentant ID to sign into
    --file-pattern       Local file pattern to match

Authentication

By default it'll try authenticate using the DefaultAzureCredential which tries to authorize in the following order based on your environment.

  1. EnvironmentCredential
  2. WorkloadIdentityCredential
  3. ManagedIdentityCredential
  4. SharedTokenCacheCredential
  5. VisualStudioCredential
  6. VisualStudioCodeCredential
  7. AzureCliCredential
  8. AzurePowerShellCredential
  9. AzureDeveloperCliCredential
  10. InteractiveBrowserCredential

Using EnvironmentCredential

  1. Set the environment variable AZURE_TENANT_ID to the tenant ID (found in the App Registration overview for your app).
  2. Set the environment variable AZURE_CLIENT_ID to the client ID (found in the App Registration overview for your app).
  3. Set the environment variable AZURE_CLIENT_SECRET to the secret noted earlier.
  4. Set the environment variable AZURE_AUTHORITY_HOST to https://login.microsoftonline.com/.

Tool flow

flowchart TD
    ls[List files in source path]
    exists[Verifies if blob file already exists]
    upload[Upload file]
    verify[Verifies MD5 hash]
    delete[Delete file]
    skip[Skip file]
    ls --> exists
    exists --Found--> verify
    exists --Not Found--> upload
    upload --> verify
    verify --Matches--> delete
    verify --Not Matches--> skip

Changes from Previous Version

No structural changes between v2024.9.22.13 and v2024.9.24.40.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.