mirror of
https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.git
synced 2026-02-06 16:49:09 +00:00
commit
1d93a2cdba
@ -49,7 +49,6 @@ In this task, you will create an Azure web app.
|
|||||||
| Region | the name of an Azure region where you can provision Azure web apps |
|
| Region | the name of an Azure region where you can provision Azure web apps |
|
||||||
| App service plan | accept the default configuration |
|
| App service plan | accept the default configuration |
|
||||||
|
|
||||||
|
|
||||||
1. Click **Review + create**, and then click **Create**.
|
1. Click **Review + create**, and then click **Create**.
|
||||||
|
|
||||||
>**Note**: Wait until the web app is created before you proceed to the next task. This should take about a minute.
|
>**Note**: Wait until the web app is created before you proceed to the next task. This should take about a minute.
|
||||||
@ -128,20 +127,21 @@ In this task, you will deploy code to the staging deployment slot.
|
|||||||
|
|
||||||
1. From the Cloud Shell pane, run the following to set the current location to the newly created clone of the local repository containing the sample web app code.
|
1. From the Cloud Shell pane, run the following to set the current location to the newly created clone of the local repository containing the sample web app code.
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
Set-Location -Path $HOME/php-docs-hello-world/
|
Set-Location -Path $HOME/php-docs-hello-world/
|
||||||
```
|
```
|
||||||
|
|
||||||
1. From the Cloud Shell pane, run the following to add the remote git (make sure to replace the `[deployment_user_name]` and `[git_clone_url]` placeholders with the value of the **Deployment Credentials** user name and **Git Clone Url**, respectively, which you identified in previous task):
|
1. From the Cloud Shell pane, run the following to add the remote git (make sure to replace the `[deployment_user_name]` and `[git_clone_url]` placeholders with the value of the **Deployment Credentials** user name and **Git Clone Url**, respectively, which you identified in previous task):
|
||||||
|
|
||||||
```
|
```powershell
|
||||||
git remote add [deployment_user_name] [git_clone_url]
|
git remote add [deployment_user_name] [git_clone_url]
|
||||||
```
|
```
|
||||||
|
|
||||||
>**Note**: The value following `git remote add` does not have to match the **Deployment Credentials** user name, but has to be unique
|
>**Note**: The value following `git remote add` does not have to match the **Deployment Credentials** user name, but has to be unique
|
||||||
|
|
||||||
1. From the Cloud Shell pane, run the following to push the sample web app code from the local repository to the Azure web app staging deployment slot (make sure to replace the `[deployment_user_name]` placeholder with the value of the **Deployment Credentials** user name, which you identified in previous task):
|
1. From the Cloud Shell pane, run the following to push the sample web app code from the local repository to the Azure web app staging deployment slot (make sure to replace the `[deployment_user_name]` placeholder with the value of the **Deployment Credentials** user name, which you identified in previous task):
|
||||||
```
|
|
||||||
|
```powershell
|
||||||
git push [deployment_user_name] master
|
git push [deployment_user_name] master
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -261,9 +261,9 @@ In this task, you will configure and test autoscaling of Azure web app.
|
|||||||
|
|
||||||
In this lab, you have:
|
In this lab, you have:
|
||||||
|
|
||||||
- Created an Azure web app
|
+ Created an Azure web app
|
||||||
- Created a staging deployment slot
|
+ Created a staging deployment slot
|
||||||
- Configured web app deployment settings
|
+ Configured web app deployment settings
|
||||||
- Deployed code to the staging deployment slot
|
+ Deployed code to the staging deployment slot
|
||||||
- Swapped the staging slots
|
+ Swapped the staging slots
|
||||||
- Configured and test autoscaling of the Azure web app
|
+ Configured and test autoscaling of the Azure web app
|
||||||
|
|||||||
@ -47,7 +47,6 @@ In this task, you will register resource providers necessary to deploy an Azure
|
|||||||
|
|
||||||
1. Close the Cloud Shell pane.
|
1. Close the Cloud Shell pane.
|
||||||
|
|
||||||
|
|
||||||
#### Task 2: Deploy an Azure Kubernetes Service cluster
|
#### Task 2: Deploy an Azure Kubernetes Service cluster
|
||||||
|
|
||||||
In this task, you will deploy an Azure Kubernetes Services cluster by using the Azure portal.
|
In this task, you will deploy an Azure Kubernetes Services cluster by using the Azure portal.
|
||||||
@ -80,7 +79,6 @@ In this task, you will deploy an Azure Kubernetes Services cluster by using the
|
|||||||
| Service principal | accept the default |
|
| Service principal | accept the default |
|
||||||
| Enable RBAC | **Yes** |
|
| Enable RBAC | **Yes** |
|
||||||
|
|
||||||
|
|
||||||
1. Click **Next: Networking >** and, on the **Networking** tab of the **Create Kubernetes cluster** blade, specify the following settings (leave others with their default values):
|
1. Click **Next: Networking >** and, on the **Networking** tab of the **Create Kubernetes cluster** blade, specify the following settings (leave others with their default values):
|
||||||
|
|
||||||
| Setting | Value |
|
| Setting | Value |
|
||||||
@ -94,7 +92,6 @@ In this task, you will deploy an Azure Kubernetes Services cluster by using the
|
|||||||
|
|
||||||
>**Note**: Wait for the deployment to complete. This should take about 10 minutes.
|
>**Note**: Wait for the deployment to complete. This should take about 10 minutes.
|
||||||
|
|
||||||
|
|
||||||
#### Task 3: Deploy pods into the Azure Kubernetes Service cluster
|
#### Task 3: Deploy pods into the Azure Kubernetes Service cluster
|
||||||
|
|
||||||
In this task, you will deploy a pod into the Azure Kubernetes Service cluster.
|
In this task, you will deploy a pod into the Azure Kubernetes Service cluster.
|
||||||
@ -204,13 +201,13 @@ In this task, you will scale horizontally the number of pods and then number of
|
|||||||
|
|
||||||
1. From the **Cloud Shell** pane, run the following to scale the deployment:
|
1. From the **Cloud Shell** pane, run the following to scale the deployment:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
kubectl scale --replicas=10 deployment/nginx-deployment
|
kubectl scale --replicas=10 deployment/nginx-deployment
|
||||||
```
|
```
|
||||||
|
|
||||||
1. From the **Cloud Shell** pane, run the following to verify the outcome of scaling the deployment:
|
1. From the **Cloud Shell** pane, run the following to verify the outcome of scaling the deployment:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
kubectl get pods
|
kubectl get pods
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -218,7 +215,7 @@ In this task, you will scale horizontally the number of pods and then number of
|
|||||||
|
|
||||||
1. From the **Cloud Shell** pane, run the following to review the pods distribution across cluster nodes:
|
1. From the **Cloud Shell** pane, run the following to review the pods distribution across cluster nodes:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
kubectl get pod -o=custom-columns=NODE:.spec.nodeName,POD:.metadata.name
|
kubectl get pod -o=custom-columns=NODE:.spec.nodeName,POD:.metadata.name
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -226,13 +223,12 @@ In this task, you will scale horizontally the number of pods and then number of
|
|||||||
|
|
||||||
1. From the **Cloud Shell** pane, run the following to delete the deployment:
|
1. From the **Cloud Shell** pane, run the following to delete the deployment:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
kubectl delete deployment nginx-deployment
|
kubectl delete deployment nginx-deployment
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Close the **Cloud Shell** pane.
|
1. Close the **Cloud Shell** pane.
|
||||||
|
|
||||||
|
|
||||||
#### Clean up resources
|
#### Clean up resources
|
||||||
|
|
||||||
>**Note**: Remember to remove any newly created Azure resources that you no longer use. Removing unused resources ensures you will not see unexpected charges.
|
>**Note**: Remember to remove any newly created Azure resources that you no longer use. Removing unused resources ensures you will not see unexpected charges.
|
||||||
@ -257,6 +253,6 @@ In this task, you will scale horizontally the number of pods and then number of
|
|||||||
|
|
||||||
In this lab, you have:
|
In this lab, you have:
|
||||||
|
|
||||||
- Deployed an Azure Kubernetes Service cluster
|
+ Deployed an Azure Kubernetes Service cluster
|
||||||
- Deployed pods into the Azure Kubernetes Service cluster
|
+ Deployed pods into the Azure Kubernetes Service cluster
|
||||||
- Scaled containerized workloads in the Azure Kubernetes service cluster
|
+ Scaled containerized workloads in the Azure Kubernetes service cluster
|
||||||
|
|||||||
@ -256,7 +256,7 @@ In this task, you will configure Azure virtual machine diagnostic settings.
|
|||||||
|
|
||||||
1. From the Command Prompt, run the following to trigger increased CPU utilization on the **az104-11-vm0** Azure VM:
|
1. From the Command Prompt, run the following to trigger increased CPU utilization on the **az104-11-vm0** Azure VM:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
for /l %a in (0,0,1) do echo a
|
for /l %a in (0,0,1) do echo a
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -282,7 +282,7 @@ In this task, you will configure Azure virtual machine diagnostic settings.
|
|||||||
|
|
||||||
1. In the query window, paste the following query, click **Run**, and review the resulting chart:
|
1. In the query window, paste the following query, click **Run**, and review the resulting chart:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
// Virtual Machine available memory
|
// Virtual Machine available memory
|
||||||
// Chart the VM's available memory over the last hour.
|
// Chart the VM's available memory over the last hour.
|
||||||
InsightsMetrics
|
InsightsMetrics
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user