Skip to content

Commit 2eecb3f

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/learn-pr (branch live)
2 parents cb29db9 + acfaf9d commit 2eecb3f

11 files changed

Lines changed: 51 additions & 216 deletions

File tree

learn-pr/achievements/microsoft-higher-education-badge.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.
36.6 KB
Loading

learn-pr/achievements/microsoft-higher-education.svg

Lines changed: 4 additions & 0 deletions
Loading

learn-pr/device-partner-university/microsoft-higher-education/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract: |
2222
2323
prerequisites: |
2424
- None
25-
iconUrl: /training/achievements/microsoft-higher-education-badge.svg
25+
iconUrl: /training/achievements/microsoft-higher-education.svg
2626
ratingEnabled: false
2727
levels:
2828
- beginner
Lines changed: 12 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,21 @@
11
This guided project consists of the following exercises:
22

3-
- **Create storage account and enable hosting**
4-
- Upload and verify site content
5-
- Update the site content
3+
- **Exercise 1: Create storage account and enable hosting**
4+
- Exercise 2: Upload and verify site content
5+
- Exercise 3: Update the site content
6+
- Clean up resources
67

7-
In this exercise, you create a resource group, set up a storage account, and turn on the static website hosting feature. By the end, you have a public URL ready to serve web content—even though you haven't uploaded any files yet.
8+
In this exercise, you create a resource group, set up a storage account, and turn on the static website hosting feature. By the end, you have a public URL ready to serve web content.
89

9-
This exercise includes the following tasks:
10+
The exercise consists of the following tasks:
1011

11-
- Prepare the environment
12-
- Create the storage account
13-
- Enable static website hosting
12+
- Prepare the environment
13+
- Create the storage account
14+
- Enable static website hosting
1415

15-
**Outcome:** A storage account with static website hosting enabled and a public endpoint ready to serve content.
16-
17-
> [!TIP]
18-
> Pause after each major action and confirm the page status before moving on. This habit prevents compounding mistakes.
19-
20-
## Task 1: Prepare the environment
21-
22-
Set up your Azure environment before you begin. You create a resource group to organize all the resources for this project together, which makes cleanup easier when you finish.
23-
24-
> [!WARNING]
25-
> This project creates Azure resources that may incur charges. Complete the clean-up unit when you're done to avoid unintended expenses.
26-
27-
1. Sign in to the [Azure portal](https://portal.azure.com) with an account that has permissions to create storage resources.
28-
2. In the portal search bar, search for **Resource groups** and select **Resource groups**.
29-
3. Select **+ Create**. Name the resource group **rg-gp-static-website**, choose your preferred region, and select **Review + create** then **Create**.
30-
31-
## Task 2: Create the storage account
32-
33-
Create a general-purpose storage account that will host your website files. Azure Blob Storage can serve static HTML, CSS, and image files directly to browsers without requiring a web server.
34-
35-
1. In the portal search bar, search for **Storage accounts** and select **Storage accounts**.
36-
2. Select **+ Create**.
37-
3. On the Basics tab, select **rg-gp-static-website** as the resource group.
38-
4. For **Storage account name**, enter a globally unique name (for example, **stgpstaticsite** followed by your initials and a number). Storage account names must be 3-24 characters, lowercase letters and numbers only.
39-
5. For **Region**, choose the same region as the resource group.
40-
6. For **Preferred Storage Type**, select **Azure Blob Storage or Azure Data Lake Storage Gen 2**.
41-
7. For **Performance**, select **Standard**.
42-
8. For **Redundancy**, select **Locally-redundant storage (LRS)**.
43-
9. Select **Review + create** and then select **Create**.
44-
10. When deployment finishes, select **Go to resource**.
45-
46-
## Task 3: Enable static website hosting
47-
48-
Turn on the built-in static website feature. This creates a special container named **$web** where you upload your site files, and provides a public URL that serves those files to visitors.
49-
50-
1. In the storage account left menu, under **Data management**, select **Static website**.
51-
2. Set Static website to **Enabled**.
52-
3. For **Index document name**, enter **index.html**.
53-
4. For **Error document path**, enter **404.html**.
54-
5. Select **Save**.
55-
6. Note the **Primary endpoint** URL that appears after saving. This is the public URL for your website.
16+
Launch the exercise and follow the instructions. When you're done, be sure to return to this page so you can continue learning.
5617

5718
> [!NOTE]
58-
> **Validation step:** Confirm that static website hosting shows **Enabled**, and that a Primary endpoint URL is displayed.
19+
> To complete this lab you will need an [Azure subscription](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn).
5920
60-
> [!NOTE]
61-
> Each exercise includes validation steps like this one. Track your results as you go—you'll review them all in the validation unit at the end of this module.
21+
[:::image type="content" source="../media/launch-exercise-button.png" alt-text="Button to launch exercise.":::](https://microsoftlearning.github.io/Deploy-a-static-website-with-Azure-Blob-Storage/Instructions/Labs/2-exercise-create-storage-enable-hosting.html)

0 commit comments

Comments
 (0)