Azure / enterprise-azureai

Unleash the power of Azure AI to your application developers in a secure & manageable way with Azure API Management and Azure Developer CLI.
MIT License
71 stars 32 forks source link

Fail to run the command `azd up` #42

Closed jerryshia closed 5 months ago

jerryshia commented 5 months ago

Describe the issue: Fail to run the command azd up and there is an error: "deploy 'openai-secondary' fail".

image

Repro Steps:

  1. Run azd init -t Azure/enterprise-azureai.
  2. Run azd env set USE_REDIS_CACHE_APIM 'true'.
  3. Run azd env set SECONDARY_OPENAI_LOCATION 'eastus'.
  4. Run azd up .

Expected behavior: Run azd up successfully. @pascalvanderheiden and @hemarina for notification.

azureholic commented 5 months ago

in .env of your environment MY_IP_ADDRESS should be an IPv4 address. This is used to give your local machine access to the container registry for pushing the container image.

your ip address is automaticly filled by a preprovision hook defined in azure.yaml, but you can override the value

It also looks like the subscription you are targeting does not have quota for Azure OpenAI instances

pascalvanderheiden commented 5 months ago

@jerryshia Can you try again, taking into account the comment mentioned above by @azureholic?

jerryshia commented 5 months ago

@pascalvanderheiden According to your suggestion, when changing "MY-IP_ADDRESS" in .env to an ipv4 address, the test result is PASS. It is recommended to add relevant reminders in README: Change the "MY-IP_ADDRESS" to ipv4.

azureholic commented 5 months ago

agree. This is only needed for azd to push the container to the container registry from a local workstation. The ACR firewall does not support IPv6 adresses. We should mention this in the docs.