Azure/enterprise-azureai

Fail to run the command `azd up`

Closed this issue · 4 comments

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.

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

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

@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.

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.