Putting a three-hashtag schema into your tweets lets you turn Twitter into a low-cost personal time tracker backed by Azure Logic Apps, Azure SQL Database, and Power BI.
I wanted a lightweight way to measure whether I was spending my time well or just spending it, plus an excuse to post consistently on Twitter. Instead of building a custom scraper or paying for complex ETL tooling, I used Azure Logic Apps to capture my tweets into an Azure SQL table and connected Power BI to transform and visualize the rows.
To keep the cloud architecture simple and cheap, I pushed the parsing discipline into the tweet itself:

- Hashtag 1:
#TimeSpentor#TimeWellSpent - Hashtag 2: Main category (
#Learning,#Exercise, and similar) - Hashtag 3: Specific activity (
#Azure,#Peloton, and similar)
Structuring the input upfront does the heavy lifting so the downstream pipeline only needs to move text and split delimiters.
How the automated tweet-to-dashboard pipeline works#
Deploy the data store first, wire the ingestion trigger second, and connect the reporting layer last so each step has a live target to authenticate against.
How one structured tweet moves through the pipeline#
Putting structure in the tweet upfront keeps the cloud plumbing cheap: Logic Apps moves raw text into Azure SQL, and Power BI splits the hashtags on import.
Finished Azure VPN lab #TimeWellSpent #Learning #AzureDeployment sequence:
- Create the Azure SQL Database and provision the
TweetDatatable. - Create the Azure Logic App with a Twitter trigger on your handle and a SQL
Insert row (V2)action. - Connect Power BI Desktop in Import mode, split the hashtags into columns, build visuals, and publish.
- Configure Scheduled Refresh in the Power BI web portal.
Step 1: Provision the Azure SQL Database and table#
Azure SQL Database is a Platform-as-a-Service (PaaS) relational database that gives you Rowstore and Columnstore control plus native JSON support if you expand the schema later.
In the Azure Portal, search for SQL databases and select Create.

The creation wizard spans six tabs: Basics, Networking, Security, Additional settings, Tags, and Review + create.
_Basics_
**Project details**
Subscription: Azure subscription 1
Resource Group: rg-01
**Database details**
Database name: sql-01
Server: thordraperjr-sql-server-01
+Username:
+Password:
Want to use SQL elastic pool? No
Compute + storage: Basic
**Backup storage redundancy**
Backup storage redundancy: Locally-redundant backup storage - Preview
_Networking_
**Network connectivity**
Connectivity method: No access
**Connection Policy**
Connection policy: Default
**Encrypted connections**
Minimum TLS version: TLS 1.2
_Security_
**Azure Defender for SQL**
Enable Azure Defender for SQL: []Start free trial(30 Days)[x]Not now
_Additional settings_
**Datasource**
Use existing data: None
**Database collation**
Collation: SQL_Latin_General_CP1_CI_AS
**Maintenance window**
Maintenance window: System default (5pm to 8am)
_Tags_
Development:Twitter-to-PowerBi-App
The Basic compute and storage tier keeps costs low for a personal tweet workload. Once provisioning finishes, open Query editor (preview) on the database.

Run the following statement to create the table:
CREATE TABLE TweetData (
CreatedAt datetime,
TweetText varchar(512)
);
Step 2: Wire Twitter to SQL with Azure Logic Apps#
Azure Logic Apps runs serverless workflows across API connectors without writing custom integration code, and the Consumption plan includes 4,000 free actions, which easily covers personal tweet volume.
Search for Logic Apps in the Azure Portal and select Create.

Choosing the Consumption plan reduces the creation form from five tabs down to three: Basics, Tags, and Review + create.
_Basics_
**Project details**
Subscription: Azure subscription 1
Resource Group: rg-01
**Instance details**
Type: [x] Consumption [] Standard
Logic App name: twitter-to-powerBi
Region: East US
Enable log analytics: [] Yes [x] No
_Tags_
Development:Twitter-to-PowerBi-App
Configure the connector, trigger, and action#
A connector wraps an external service API so Logic Apps can poll events and write rows without manual HTTP handling.

Select the When a new tweet is posted trigger and sign in to authorize Twitter.

Configure the trigger to poll once per hour for your handle and hashtags:
Search text: from:@Thor_DraperJr, #TimeSpent OR #TimeWellSpent
How often do you want to check for items? 1 | Hour
Next, add the SQL Server Insert row (V2) action and map the dynamic tweet fields to your two columns:
Insert row (V2)
Server name: Use connection settings (thordraperjr-sql-server-01.database.windows.net)
Database name: Use connection settings (sql-01)
Table name: TweetData
Parameter 1: `CreatedAt` `Created at` <-- Dynamic content
Parameter 2: `TweetText` `Tweet text` <-- Dynamic content
Each matching tweet now lands as a new row in dbo.TweetData.
Step 3: Split hashtags and build visuals in Power BI#
Connect Power BI Desktop to Azure SQL in Import mode rather than DirectQuery, because DirectQuery blocks the delimiter transformations needed to break one tweet string into reporting dimensions.
Sign up for Power BI (a work or school email is required for the free trial) and install Power BI Desktop. Select Get data.

Search for Azure SQL database and enter your SQL server name.

Choose Import for Data Connectivity mode. Once the fields appear on the right, open Transform data and split TweetText using two delimiters: a custom # delimiter and a Space delimiter. That separates each record into four usable columns: Tweet, Hashtag 1, Hashtag 2, and Hashtag 3.
In the Visualizations pane, configure three charts using the split columns:
- Pie chart: Legend and Values =
TweetText.2/ Count ofTweetText.2(TimeSpentvsTimeWellSpent) - Funnel chart: Group and Values =
TweetText.3/ Count ofTweetText.3(Category) - Donut chart: Legend and Values =
TweetText.4/ Count ofTweetText.4(Activity)
Use the Format and Analytics icons under the visualization picker to adjust titles, legends, and data colors.

Step 4: Configure scheduled refresh and SQL maintenance#
Publish the report to the Power BI web portal, open your workspace settings, and turn on Scheduled refresh so the dashboard pulls new rows from Azure SQL automatically.

Once the schedule is active, new tweets flow into the live dashboard without touching Power BI Desktop.

Useful SQL maintenance commands#
DROP TABLE TweetData;deletes the entire table.ALTER TABLE dbo.TweetData ADD CreatedAt datetime;adds a column to an existing table.SELECT CreatedAt, TweetText FROM TweetData;returns all stored rows.DELETE FROM TweetData;clears all rows while keeping the table schema intact.
Troubleshooting refresh failures#
If you locked down the Azure SQL Server firewall (Connectivity method: No access), scheduled refreshes from the Power BI service will fail until you allow Azure services or permit the IP ranges used by the Power BI refresh gateway.