Fail to to fetch locations: deployment as a web app under Azure Open AI service

Sida Jiang 0 Reputation points
2024-12-17T13:36:55.6+00:00

Hi, we get stuck in the deployment as a web app under Azure Open AI service. We have built a data pipeline for documentation and connect with Azure AI search already, but can't deploy as web app due to get location error "Failed to fetch locations", if you have good experience with Azure AI and web deployment, will be great to exchange some words!

cheers/Sida

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
481 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 1,585 Reputation points Microsoft Vendor
    2024-12-19T20:36:08.7833333+00:00

    Hi Sida Jiang

    Welcome to the Microsoft Q&A Platform!
    The error "Failed to fetch locations" typically occurs when deploying a web app or configuring resources in Azure due to a misconfiguration, network restriction, or issue with your Azure environment setup.

    1. Ensure Azure OpenAI is supported in your selected region.
    2. Confirm your Azure subscription has access to the Azure OpenAI service.
    3. Check with your Azure admin if necessary.
    4. Allow outbound traffic to these domains. *.azure.com *.microsoft.com
    5. Test connectivity with. az network watcher connectivity-check --source-resource <resource-id> --destination-address management.azure.com
    6. Update Azure CLI az upgrade
    7. Go to Subscription > Resource Providers.
    8. Register Microsoft.Web, Microsoft.CognitiveServices, and Microsoft.OpenAI.
    9. Create and deploy resources via CLI.
    az group create --name myResourceGroup --location eastus  
    az deployment group create \
      --resource-group myResourceGroup \
      --template-file webapp-template.json \
      --parameters location=eastus
    
    1. Check Activity Log in the Azure portal for deployment error details.
    2. Confirm your role as Contributor or Owner in the subscription.
      ref: Azure RBAC Documentation
      Azure Activity Log
      If the answer is helpful, please click "Accept Answer" and kindly upvote it.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.