web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / integration Apps with ...
Power Pages
Suggested Answer

integration Apps with AWS hosted Apps & API with Power platform

(1) ShareShare
ReportReport
Posted on by 2
we are leveraging some AWS environmental services like APIs in EC2 , DB -My Sql in AWS , those we need to connect for dashboard kind of Application in MS Power BI & power pages ...based apps -like dashboard-Power BI or Power pages 
please share the resolution best practices to follow ups for it.
 
best regards- RB 
Categories:
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2026 Season 1 on at
     

    To connect AWS-hosted services (like APIs on EC2 and MySQL databases) with Microsoft Power BI and Power Pages for dashboard-style applications, here are the best practices and resolution steps you should follow:


    1. Connecting AWS APIs (EC2) to Power BI / Power Pages

    Power BI

    • Use Power Query (Web connector):

      • If your API is RESTful and returns JSON/XML, use the Web connector in Power BI Desktop.
      • Example:
    • https://your-ec2-api-endpoint.amazonaws.com/data

    •  

      • Add authentication headers (e.g., API key, bearer token) via Advanced settings.
    • Best Practices:

      • Secure your API with HTTPS and authentication (OAuth2, API Key, etc.).
      • Implement pagination and filtering in your API to reduce data load.
      • Use gateways if your API is not publicly accessible.
    • 🔹 Power Pages

    • Use Power Automate flows or custom JavaScript to call your API.
    • You can also use Dataverse Custom Connectors to abstract API logic.
    • Ensure CORS is configured correctly on your EC2-hosted API.

    •  2. Connecting AWS MySQL to Power BI / Power Pages

      🔹 Power BI

    • Use the MySQL connector in Power BI Desktop:

      • Provide the hostname, port, database name, and credentials.
      • If the DB is not public, use a data gateway to connect securely.
    • Best Practices:

      • Use read-only users for reporting.
      • Optimize queries with views or stored procedures.
      • Consider incremental refresh for large datasets.
    • 🔹 Power Pages

    • Power Pages connects best with Dataverse. To use MySQL:
      • Create a Power Automate flow that connects to MySQL and writes to Dataverse.
      • Or use Azure Functions or Custom APIs as a bridge between MySQL and Power Pages.

    •  3. Security & Integration Best Practices

    • Authentication:

      • Use OAuth2, API keys, or AWS IAM roles for secure access.
      • Avoid hardcoding credentials—use Azure Key Vault or environment variables.
    • Network Security:

      • Use VPC peering, VPN, or PrivateLink if your AWS services are private.
      • Use Azure On-Premises Data Gateway for secure data transfer.
    • Performance:

      • Cache frequent queries.
      • Use pagination and filtering in APIs.
      • Schedule refreshes during off-peak hours.

    •  4. Monitoring & Maintenance

    • Monitor API usage and DB performance using CloudWatch (AWS) and Power BI Service metrics.
    • Set up alerts for failures or slow responses.
    • Regularly update credentials and rotate keys.
     
     
    🏷️ Tag me if you have any further questions or if the issue persists.
    ✅ Click "Accept as Solution" if my post helped resolve your issue—it helps others facing similar problems.
    ❤️ Give it a Like if you found the approach useful in any way.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 49

#2
11manish Profile Picture

11manish 33

#3
Haque Profile Picture

Haque 28

Last 30 days Overall leaderboard