|
5 | 5 | --- |
6 | 6 |
|
7 | 7 | # Lab 00: Validate lab environment |
| 8 | + |
8 | 9 | # Student lab manual |
9 | 10 |
|
10 | 11 | ## Instructions |
11 | 12 |
|
12 | | -1. Get a new **Azure Pass promocode** (valid for 30 days) from the instructor or other source. |
13 | | -2. Use a private browser session to get a new **Microsoft Account (MSA)** at [Microsoft account](https://account.microsoft.com) or use an existing one. |
14 | | -3. Using the same browser session, go to [Microsoft Azure Pass](https://www.microsoftazurepass.com) to redeem your Azure Pass using your Microsoft Account (MSA). Fore details, see [Redeem a Microsoft Azure Pass](https://www.microsoftazurepass.com/Home/HowTo?Length=5). Follow the instructions for redemption. |
15 | | -4. Using the same browser session, go to [Microsoft Azure](https://portal.azure.com), then search at the top of the portal screen for **Azure DevOps**. In the resulting page, click **Azure DevOps organizations**. |
16 | | -5. Next, click on the link labelled **My Azure DevOps Organizations** or navigate directly to [My Information](https://aex.dev.azure.com). |
| 13 | +> **Note**: Start at step 4, if you do already have a **personal Microsoft Account** setup and an active Microsoft Azure Pass subscription linked to that account. |
| 14 | +
|
| 15 | +1. Get a new **Azure Pass promocode** from the instructor or other source. |
| 16 | +2. Use a private browser session to get a new **personal Microsoft Account (MSA)** at [https://account.microsoft.com](https://account.microsoft.com). |
| 17 | +3. Using the same browser session, go to [https://www.microsoftazurepass.com](https://www.microsoftazurepass.com) to redeem your Azure Pass using your Microsoft Account (MSA). For details, see [Redeem a Microsoft Azure Pass](https://www.microsoftazurepass.com/Home/HowTo?Length=5). Follow the instructions for redemption. |
| 18 | + |
| 19 | +4. Open a browser and navigate to [https://portal.azure.com](https://portal.azure.com), then search at the top of the Azure portal screen for **Azure DevOps**. In the resulting page, click **Azure DevOps organizations**. |
| 20 | +5. Next, click on the link labelled **My Azure DevOps Organizations** or navigate directly to [https://aex.dev.azure.com](https://aex.dev.azure.com). |
17 | 21 | 6. On the **We need a few more details** page, select **Continue**. |
18 | 22 | 7. In the drop-down box on the left, choose **Default Directory**, instead of “Microsoft Account”. |
19 | 23 | 8. If prompted (*"We need a few more details"*), provide your name, e-mail address, and location and click **Continue**. |
20 | | -9. Back at [My Information](https://aex.dev.azure.com) with **Default Directory** selected click the blue button **Create new organization**. |
| 24 | +9. Back at [https://aex.dev.azure.com](https://aex.dev.azure.com) with **Default Directory** selected click the blue button **Create new organization**. |
21 | 25 | 10. Accept the *Terms of Service* by clicking **Continue**. |
22 | 26 | 11. If prompted (*"Almost done"*), leave the name for the Azure DevOps organization at default (it needs to be a globally unique name) and pick a hosting location close to you from the list. |
23 | 27 | 12. Once the newly created organization opens in **Azure DevOps**, click **Organization settings** in the bottom left corner. |
24 | 28 | 13. At the **Organization settings** screen click **Billing** (opening this screen takes a few seconds). |
25 | 29 | 14. Click **Setup billing** and on the right-hand side of the screen select the **Azure Pass - Sponsorship** subscription and click **Save** to link the subscription with the organization. |
26 | 30 | 15. Once the screen shows the linked Azure Subscription ID at the top, change the number of **Paid parallel jobs** for **MS Hosted CI/CD** from 0 to **1**. Then click the **SAVE** button at the bottom. |
27 | | -16. **Wait at least 3 hours before using the CI/CD capabilities** so that the new settings are reflected in the back end. Otherwise, you will still see the message *"This agent is not running because you have reached the maximum number of requests…"*. |
28 | | -17. OPTIONAL: you can validate this new setting has been successfully applied by creating and triggering a build pipeline. To do this either talk to the instructor or create a demo project into the newly created organization with billing enabled, using [Azure DevOps Demo Generator](https://azuredevopsdemogenerator.azurewebsites.net). |
| 31 | +16. In **Organization Settings**, go to section **Security** and click **Policies**. |
| 32 | +17. Toggle the switch to **On** for **Third-party application access via OAuth** |
| 33 | + > Note: The OAuth setting helps enable tools such as the DemoDevOpsGenerator to register extensions. Without this, several labs may fail due to a lack of the required extensions. |
| 34 | +18. Toggle the switch to **On** for **Allow public projects** |
| 35 | + > Note: Extensions used in some labs might require a public project to allow using the free version. |
| 36 | +19. **Wait at least 3 hours before using the CI/CD capabilities** so that the new settings are reflected in the backend. Otherwise, you will still see the message *"No hosted parallelism has been purchased or granted"*. |
| 37 | +20. OPTIONAL: you can validate these new settings have been successfully applied by creating and triggering a build pipeline. To do this either talk to the instructor or create a demo project into the newly created organization with billing enabled, using [Azure DevOps Demo Generator](https://azuredevopsdemogenerator.azurewebsites.net). |
0 commit comments