diff --git a/README.md b/README.md index 39b04984..d55874ff 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,8 @@ The easiest way to get started is GitHub Codespaces, since it will setup all the 5. Once the above steps are completed you can [test the sample](#testing-the-sample). +NOTE: If the api is failing due to permissions, add the AppID as Contributor in the IAM for the Resource Group. + ### VS Code Dev Containers A related option is VS Code Dev Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers): @@ -303,6 +305,18 @@ To set up CI/CD with GitHub actions on your repository, run the following comman ```shell azd pipeline config ``` +Add permission to Service Principal that is created: +``` +Azure AI Administrator +AzureML Data Scientist +Cognitive Services OpenAI Contributor +Contributor +Key Vault Administrator +Key Vault Contributor +Key Vault Reader +Search Index Data Contrbutor +Storage Blob Data Contributor +``` ## Guidance diff --git a/src/api/telemetry.py b/src/api/telemetry.py index b5f6d10c..e8a86ead 100644 --- a/src/api/telemetry.py +++ b/src/api/telemetry.py @@ -33,7 +33,7 @@ def setup_telemetry(app: FastAPI): location = os.environ["AZURE_LOCATION"]+".api.azureml.ms;" subscription = os.environ["AZURE_SUBSCRIPTION_ID"]+";" resource_group = os.environ["AZURE_RESOURCE_GROUP"]+";" - project_name = os.environ["AZURE_AI_PROJECT_NAME"]+";" + project_name = os.environ["AZURE_AI_PROJECT_NAME"] # Configure OpenTelemetry using Azure AI Project ai_project_conn_str = location + subscription +resource_group + project_name