Build to deploy on linux with: dotnet publish -c Release -r linux-x64 --self-contained
Usage: service-tester <sql | mongo | redis | appconfig | keyvault | blob-storage | kafka-rest | kafka-broker> [options] "<connection-string> | <url> | <broker>"
- SQL Server
- MongoDB
- Redis
- Azure App Configuration
- Azure Key Vault
- Azure Blob Storage / Storage Account
- Kafka REST Proxy
- Kafka Broker
sql: Test SQL Server connectionmongo: Test MongoDB connectionredis: Test Redis connectionappconfig: Test Azure App Configuration connectionkeyvault: Test Azure Key Vault connectionblob-storage: Test Azure Storage account connectivity (blob container, optional resource listing)kafka-rest: Test Kafka REST API connectionkafka-broker: Test Kafka Broker connection
-m, --managed-identity: Use Azure Managed Identity for authentication.
-c, --container: Specific blob container to test connectivity for.-f, --file-share: Specific file share to test connectivity for.-l, --list: List accessible blob containers, file shares, and queues.
- With
--managed-identity, provide a Blob service URI like:https://<account-name>.blob.core.windows.net - Without
--managed-identity, use an Azure Storage connection string in key/value format (not justhttps://...), for example:service-tester blob-storage "DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=YYY;EndpointSuffix=core.windows.net" --list
-u, --username: Username for Basic Authentication.-p, --password: Password for Basic Authentication.
-s, --security-protocol: Security protocol (Plaintext, Ssl, SaslPlaintext, SaslSsl).-m, --sasl-mechanism: SASL mechanism (Plain, ScramSha256, ScramSha512, Gssapi, OAuthBearer).-u, --username: SASL username.-p, --password: SASL password.
- Command "appconfig" = Azure App Configuration
- Connection string / URL / Broker address should be enclosed in double-quotes if it contains special characters.
- Key vault connection string should be in the format:
https://<keyvault-name>.vault.azure.net - When not using Managed Identity, Key Vault and SQL Server may prompt for interactive login or require specific authentication details in the connection string.
Find this useful and want to show appreciation??
Your support helps keep this project alive and motivates me to continue improving it! 🚀