VOOZH about

URL: https://www.cdata.com/kb/tech/amazons3-cloud-aas.rst

⇱ Model Amazon S3 Data Using Azure Analysis Services


Model Amazon S3 Data Using Azure Analysis Services

πŸ‘ Dibyendu Datta
Dibyendu Datta
Lead Technology Evangelist
Leverage CData Connect AI to establish a connection between Azure Analysis Services and Amazon S3, enabling the direct import of real-time Amazon S3 data.

Microsoft Azure Analysis Services (AAS) is a fully-managed platform-as-a-service (PaaS) offering that delivers enterprise-grade data models in the cloud. When combined with CData Connect AI, AAS facilitates immediate cloud-to-cloud access to Amazon S3 data for applications. This article outlines the process of connecting to Amazon S3 via Connect AI and importing Amazon S3 data into Visual Studio using an AAS extension.

CData Connect AI offers a seamless cloud-to-cloud interface tailored for Amazon S3, enabling you to create live models of Amazon S3 data in Azure Analysis Services without the need to replicate data to a natively supported database. While constructing high-quality semantic data models for business reports and client applications, Azure Analysis Services formulates SQL queries to retrieve data. CData Connect AI is equipped with optimized data processing capabilities right from the start, directing all supported SQL operations, including filters and JOINs, directly to Amazon S3. This leverages server-side processing for swift retrieval of the requested Amazon S3 data.

Prerequisites

Before you connect, you must first do the following:

  • Connect a data source to your CData Connect AI account. Detailed steps are provided in the next section.
  • Generate a Personal Access Token (PAT). Copy this down, as it acts as your password during authentication.
  • Create a server in Azure Analysis Services to which you will deploy your data from CData Connect AI.
  • Install and configure an On-Premise Gateway in your system. This will pull data from the source via CData Connect AI into the Azure Analysis Services project and deploy models to the server. Refer to the given link to find the detailed process.

Configure Amazon S3 Connectivity for AAS

Connectivity to Amazon S3 from Azure Analysis Services is made possible through CData Connect AI. To work with Amazon S3 data from Azure Analysis Services, we start by creating and configuring a Amazon S3 connection.

  1. Log into Connect AI, click Sources, and then click Add Connection
  2. πŸ‘ Adding a Connection
  3. Select "Amazon S3" from the Add Connection panel
  4. πŸ‘ Selecting a data source
  5. Enter the necessary authentication properties to connect to Amazon S3.

    To authorize Amazon S3 requests, provide the credentials for an administrator account or for an IAM user with custom permissions. Set AccessKey to the access key Id. Set SecretKey to the secret access key.

    Note: You can connect as the AWS account administrator, but it is recommended to use IAM user credentials to access AWS services.

    For information on obtaining the credentials and other authentication methods, refer to the Getting Started section of the Help documentation.

    πŸ‘ Configuring a connection (Salesforce is shown)
  6. Click Save & Test
  7. Navigate to the Permissions tab in the Add Amazon S3 Connection page and update the User-based permissions. πŸ‘ Updating permissions

Add a Personal Access Token

When connecting to Connect AI through the REST API, the OData API, or the Virtual SQL Server, a Personal Access Token (PAT) is used to authenticate the connection to Connect AI. It is best practice to create a separate PAT for each service to maintain granularity of access.

  1. Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
  2. On the Settings page, go to the Access Tokens section and click Create PAT.
  3. Give the PAT a name and click Create. πŸ‘ Creating a new PAT
  4. The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.

With the connection configured and a PAT generated, you are ready to connect to Amazon S3 data from Visual Studio using Azure Analysis Services.

Connect to Amazon S3 in Visual Studio Using AAS

The steps below outline connecting to CData Connect AI from Azure Analysis Services to create a new Amazon S3 data source. You will need the Microsoft Analysis Services Project extension installed in Microsoft Visual Studio to continue.

  1. In Visual Studio, create a new project. Select Analysis Services Tabular Project. Click on Next.
  2. πŸ‘ Selecting Analysis Services Tabular Project
  3. In the Configure your new project dialog box, enter a name for your project in the Project name field. Fill in the rest of the fields.
  4. πŸ‘ Configure new project
  5. Click on Create. The Tabular model designer dialog box opens. Select Workspace server and enter the address of your Azure Analysis Services server (for example, asazure://eastus.azure.windows.net/myAzureServer). Also, make sure to select the option SQL Server 2022 / Azure Analysis Services (1600) from the Compatibility level dropdown. Click on Test Connection to check if the connection details are correct. Click OK and sign in to your server.
  6. πŸ‘ Adding AAS server
  7. Now, click on OK to create the project. Your Visual Studio window should resemble the following screenshot:
  8. πŸ‘ Visual Studio interface for creating the project
  9. In the Tabular Model Explorer window of Visual Studio, right-click Data Sources and select Import From Data Source.
  10. πŸ‘ Importing from the data source
  11. In the Get Data window, select SQL Server database and click Connect. In the Server field, enter the Virtual SQL Server endpoint and the port separated by a comma: e.g., β€œtds.cdata.com, 14333”, and click on OK.
  12. πŸ‘ Selecting SQL Server database
    πŸ‘ Entering the virtual SQL server endpoint and port number
  13. Click on Database and enter the following information:
    • User name: Enter your CData Connect AI username. This is displayed in the top-right corner of the CData Connect AI interface. For example, [email protected].
    • Password: Enter the PAT you generated on the Settings page.

    Click on Connect. If successful, the Navigator window will pop up.

    πŸ‘ Entering the Username and Password (PAT)
  14. In the Navigator window, search and select the tables of your choice πŸ‘ Searching and selectisng the data source tables
  15. You should now see the Salesforce table populated with data in the preview section on the right panel.
  16. Click on Load to import the data. πŸ‘ Select and load tables from the data source

Now that you have imported the Amazon S3 data into your data model, you are ready to deploy the project to Azure Analysis Services for use in business reports, client applications, and more.

Get CData Connect AI

To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!