Skip to content

Commit

Permalink
add perm guidence to readme, update project connection strnig
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiebreviu committed Nov 15, 2024
1 parent c926b3e commit 73fbdd0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/api/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73fbdd0

Please sign in to comment.