# Create Azure Blob Storage account, Event Grid subscription, Logic App and private endpoint for Cognitive Services [![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Famazon%2Fazure-templates%2Fmain%2Ftext-from-images%2Fazuretemplate.json) Deploy this template to your subscription. Start deployment by clicking the **Deploy To Azure** button. After you click **Deploy to Azure** button, select the subscription you want to use, and add new resource group. You can also choose from existing resource groups if you know you need it. ![Azure Deployment - step 1](screenshots/azure-deploy-2.png) Pass the Application Endpoint URI in the format `https://<your-site>/api/events`. The endpoint must accept POST requests with JSON payload. You can use some fake URL at time of deployment and change it to the real after. ![Azure Deployment - step 2](screenshots/azure-deploy-3.png) When you are done, click **Review + create** and then **create**. After deployment is complete, click on Outputs and copy `storageConnectionStringWithSas` by clicking the *Copy* icon at right. Save it for later. ![Azure Deployment - step 3](screenshots/azure-deploy-7.png) Retutn to Overview and click **Go to resource group** to see the newly created resources. You should see somethink like this: ![Azure Deployment - step 4](screenshots/azure-deploy-8.png) Open your Storage account resource, create new container of your choise, and upload any .jpg image. After then, find you Logic App resource and open it. You should see one run attempt in Run history. It doesn't matter if it is failed or not: ![Azure Deployment - step 5](screenshots/azure-deploy-9.png) Click on the corresponting row, and *Logic app run* view will open. If first 3 steps are succeed, everything is fine so far: ![Azure Deployment - step 6](screenshots/azure-deploy-10.png) Select the failed step to see the reason of failure. In the following screenshot, the reason is *The provided host name my.application.com could not be resolved*, which is quite expected: ![Azure Deployment - step 7](screenshots/azure-deploy-11.png) Now you can change the url to working one using **Logic App Editor**.