e1th4nUwU / AzurePractice8-LogicApps

Inside this repository, you will learn how to create an Azure Logic App to gather information from Tweets and save them inside a Google Sheets spreadsheet via the Azure Portal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a Logic App to save information from Tweets inside a spreadsheet using the Azure Portal

FunctionsLogo


Requirements

  • Microsoft Azure Account ( with funds or credits )
  • Microsoft Azure Suscription
  • A Google Account
  • A Twitter account
  • A web browser

Instructions

1. Login to the Azure Portal.

2. Once your on the portal's home page, you will see something like this:

PortalImage

3. Inside the search bar (located at the top), look for Logic Apps and click on it.

Searchbar

4. Click on Add.

AddLogicApp

5. You will now have to configure the project details: select your suscription and resource group. In my case, I'll be creating a new resource group.

ProjectDetails

6. Now, you need to conigure the instance details: choose a valid name, workflow and the region where your resource will be located.

InstanceDetails

7. Inside plan, chechk the Consumption option.

Plan

8. You can add Tags if you want by click on the Tags button. When you're ready, click Review + create.

ReviewAndCreate

9. If validation passed, click Create.

Create

10. Deployment will begin, please wait a couple of seconds.

DeploymentInProgress

11. Once deployment is complete, click on Go to resource.

GoToResource

12. Click on When a new Tweet is posted.

TweetButton

13. Click Sign in¨, then give your connection a name and login using your Twitter account.

TwitterSignIn

14. Click Continue.

15. Now, configure the text or hashtag to look for on Twitter as well as how often you'll want to search for it.

TweetConfig

16. Click on New step, search for Sentiment and select Sentiment (you may need to scroll down a little).

Sentiment

17. Open another Azure tab

18. Click on the searchbar an search for Cognitive services, then click on it.

CognitiveServices

19. Click Create on Language Service.

LanguageServices

20. Click Continue to create your resource at the bottom of the page.

ContinueCreate

21. Configure your resource (resource group, region, ame and free tier).

LanguageServiceConfig

22. Check the Responsible AI Notice checkbox.

ResponsibleAINotice

23. Click Review + create.

ReviewAndCreate

24. If validation passed, click Create.

Create

25. Deployment will begin, please wait a couple of seconds.

DeploymentInProgress

26. Once deployment is complete, click on Go to resource.

GoToResource

27. Click on Keys and endpoint.

KeysAndEndpoint

28. Copy KEY1 and paste it inside Account Key (in the Logic Apps Designer tab).

Key1 AccountDesignerTab

29. Copy the Endpoint and paste it inside the Site URL.

Endpoint SiteURL

30. Give a name to your connection point and click on Create.

Connection

31. Select this options while configuring the Detect Language connector.

SentimentConfig

32. Click on New step and search for Google Sheets, then click on it.

GoogleSheets

33. Click on Insert Row.

InsertRow

34. Create a copy of this spreadsheet on your Google Drive account.

35. Go back to Azure and click on Sign in and login to your Google account and grant permissions to Azure.

36. Select the file from your Google Drive and worksheet. If the worksheet doesn't appear, click on the three dots, delete and create and repeat step number 32 and 33.

InsertSheetDetails

37. Click on Add new parameter and then check all boxes.

AddNewParameters

38. Insert the following options inside every box:

TweetParameters

39. Click Save.

Save

40. Click Run Trigger and then Run.

RunTrigger

41. After a few seconds, the trigger will run and now you can watch the results on your spreadsheet.

Running


Congratulations ! You've just made your first Azure Function! =)

About

Inside this repository, you will learn how to create an Azure Logic App to gather information from Tweets and save them inside a Google Sheets spreadsheet via the Azure Portal.