You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 00-course-setup/README.md
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,19 @@ Then select `Generate new token`.
35
35
36
36

37
37
38
-
Copy your new token that you have just created. You will now add this to your `.env` file included in this course.
38
+
Instead of a token with no expiration date, we recommend creating one for limited days eg: 60 days [if done at the start of April 2025 conveniently coincides with the duration of [AI Skills fest](https://techcommunity.microsoft.com/blog/microsoftlearnblog/register-now-for-the-microsoft-ai-skills-fest/4292261?wt.mc_id=DT-MVP-500304
39
+
40
+

41
+
42
+
Also, as an additional security measure, we can restrict the token to only be used for the `ai-agents-for-beginners` repository [[Least Privilege Principle](https://en.wikipedia.
Please copy your new token that you have just created, and set it as your `GITHUB_TOKEN` in your `.env` file you have created from `.env-sample` in this course.
39
51
40
52
## Add this to your Environment Variables
41
53
@@ -47,7 +59,8 @@ cp .env.example .env
47
59
48
60
This will copy the example file and create a `.env` in your directory, fill in the values for the environment variables. You can locate the values for each environment variable in the following locations of the [Azure AI Foundry](https://ai.azure.com?WT.mc_id=academic-105485-koreyst) portal:
49
61
50
-
Open that file and paste the token you created into the `GITHUB_TOKEN=` field of the .env file.
62
+
Open that file and paste the token you created into the `GITHUB_TOKEN=` field of the .env file.
63
+
51
64
-`AZURE_SUBSCRIPTION_ID` - On the **Overview** page of your project within **Project details**.
52
65
-`AZURE_AI_PROJECT_NAME` - At the top of the **Overview** page for your project.
53
66
-`AZURE_OPENAI_RESOURCE_GROUP` - On the **Overview** page of the **Management Center** within **Project properties**.
@@ -73,7 +86,7 @@ As a security best practice, we'll use [keyless authentication](https://learn.mi
73
86
74
87
Next, open a terminal and run `az login` to sign in to your Azure account.
75
88
76
-
## Sign in to Azure
89
+
## Keyless Authentication
77
90
78
91
Login with your Azure AI account used to provision the Azure resources.
79
92
@@ -83,7 +96,7 @@ Open a new terminal and enter the following command and follow the instructions
83
96
84
97
Once you've logged in, select your subscription in the terminal.
85
98
86
-
## Access the environment variables.
99
+
## Access the environment variables
87
100
88
101
We'll import `os` and `load_dotenv` so that you can access the environment variables.
0 commit comments