Skip to content

Commit 4afb3dc

Browse files
committed
Merge branch 'master' of https://github.com/Microsoft/azure-docs-pr into dec-sec
2 parents fb30211 + f9e3a60 commit 4afb3dc

30 files changed

+643
-179
lines changed

articles/aks/kubernetes-walkthrough.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: jeconnoc
77

88
ms.service: container-service
99
ms.topic: quickstart
10-
ms.date: 06/13/2018
10+
ms.date: 07/31/2018
1111
ms.author: iainfou
1212
ms.custom: H1Hack27Feb2017, mvc, devcenter
1313
---
@@ -22,13 +22,11 @@ This quickstart assumes a basic understanding of Kubernetes concepts, for detail
2222

2323
[!INCLUDE [cloud-shell-try-it.md](../../includes/cloud-shell-try-it.md)]
2424

25-
If you choose to install and use the CLI locally, this quickstart requires that you are running the Azure CLI version 2.0.27 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][azure-cli-install].
25+
If you choose to install and use the CLI locally, this quickstart requires that you are running the Azure CLI version 2.0.43 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][azure-cli-install].
2626

2727
## Create a resource group
2828

29-
Create a resource group with the [az group create][az-group-create] command. An Azure resource group is a logical group in which Azure resources are deployed and managed.
30-
31-
When creating a resource group you are asked to specify a location, this is where your resources will live in Azure.
29+
Create a resource group with the [az group create][az-group-create] command. An Azure resource group is a logical group in which Azure resources are deployed and managed. When you create a resource group, you are asked to specify a location. This location is where your resources run in Azure.
3230

3331
The following example creates a resource group named *myAKSCluster* in the *eastus* location.
3432

@@ -53,10 +51,10 @@ Output:
5351

5452
## Create AKS cluster
5553

56-
Use the [az aks create][az-aks-create] command to create an AKS cluster. The following example creates a cluster named *myAKSCluster* with one node. When deploying an AKS cluster, the container health monitoring solution can also be enabled. For more information on enabling the container health monitoring solution, see [Monitor Azure Kubernetes Service health][aks-monitor].
54+
Use the [az aks create][az-aks-create] command to create an AKS cluster. The following example creates a cluster named *myAKSCluster* with one node. Container health monitoring is also enabled using the *--enable-addons monitoring* parameter. For more information on enabling the container health monitoring solution, see [Monitor Azure Kubernetes Service health][aks-monitor].
5755

5856
```azurecli-interactive
59-
az aks create --resource-group myAKSCluster --name myAKSCluster --node-count 1 --generate-ssh-keys
57+
az aks create --resource-group myAKSCluster --name myAKSCluster --node-count 1 --enable-addons monitoring --generate-ssh-keys
6058
```
6159

6260
After several minutes, the command completes and returns JSON-formatted information about the cluster.
@@ -65,20 +63,20 @@ After several minutes, the command completes and returns JSON-formatted informat
6563

6664
To manage a Kubernetes cluster, use [kubectl][kubectl], the Kubernetes command-line client.
6765

68-
If you're using Azure Cloud Shell, kubectl is already installed. If you want to install it locally, use the [az aks install-cli][az-aks-install-cli] command.
66+
If you're using Azure Cloud Shell, `kubectl` is already installed. If you want to install it locally, use the [az aks install-cli][az-aks-install-cli] command.
6967

7068

7169
```azurecli
7270
az aks install-cli
7371
```
7472

75-
To configure kubectl to connect to your Kubernetes cluster, use the [az aks get-credentials][az-aks-get-credentials] command. This step downloads credentials and configures the Kubernetes CLI to use them.
73+
To configure `kubectl` to connect to your Kubernetes cluster, use the [az aks get-credentials][az-aks-get-credentials] command. This step downloads credentials and configures the Kubernetes CLI to use them.
7674

7775
```azurecli-interactive
7876
az aks get-credentials --resource-group myAKSCluster --name myAKSCluster
7977
```
8078

81-
To verify the connection to your cluster, use the [kubectl get][kubectl-get] command to return a list of the cluster nodes. Note that this can take a few minutes to appear.
79+
To verify the connection to your cluster, use the [kubectl get][kubectl-get] command to return a list of the cluster nodes. It can take a few minutes for the nodes to appear.
8280

8381
```azurecli-interactive
8482
kubectl get nodes
@@ -93,7 +91,7 @@ k8s-myAKSCluster-36346190-0 Ready agent 2m v1.7.7
9391

9492
## Run the application
9593

96-
A Kubernetes manifest file defines a desired state for the cluster, including what container images should be running. For this example, a manifest is used to create all objects needed to run the Azure Vote application. This includes two [Kubernetes deployments][kubernetes-deployment], one for the Azure Vote Python applications, and the other for a Redis instance. Also, two [Kubernetes Services][kubernetes-service] are created, an internal service for the Redis instance, and an external service for accessing the Azure Vote application from the internet.
94+
A Kubernetes manifest file defines a desired state for the cluster, including what container images should be running. For this example, a manifest is used to create all objects needed to run the Azure Vote application. This manifest includes two [Kubernetes deployments][kubernetes-deployment], one for the Azure Vote Python applications, and the other for a Redis instance. Also, two [Kubernetes Services][kubernetes-service] are created, an internal service for the Redis instance, and an external service for accessing the Azure Vote application from the internet.
9795

9896
Create a file named `azure-vote.yaml` and copy into it the following YAML code. If you are working in Azure Cloud Shell, this file can be created using vi or Nano as if working on a virtual or physical system.
9997

@@ -200,6 +198,24 @@ Now browse to the external IP address to see the Azure Vote App.
200198

201199
![Image of browsing to Azure Vote](media/container-service-kubernetes-walkthrough/azure-vote.png)
202200

201+
## Monitor health and logs
202+
203+
When the AKS cluster was created, monitoring was enabled to capture health metrics for both the cluster nodes and pods. These health metrics are available in the Azure portal. For more information on container health monitoring, see [Monitor Azure Kubernetes Service health][aks-monitor].
204+
205+
To see current status, uptime, and resource usage for the Azure Vote pods, complete the following steps:
206+
207+
1. Open a web browser to the Azure portal [https://portal.azure.com][azure-portal].
208+
1. Select your resource group, such as *myResourceGroup*, then select your AKS cluster, such as *myAKSCluster*.
209+
1. Choose **Monitor container health** > select the **default** namespace > then select **Containers**.
210+
211+
It may take a few minutes for this data to populate in the Azure portal, as shown in the following example:
212+
213+
![Create AKS cluster one](media/kubernetes-walkthrough/view-container-health.png)
214+
215+
To see logs for the `azure-vote-front` pod, select the **View Logs** link on the right-hand side of the list of containers. These logs include the *stdout* and *stderr* streams from the container.
216+
217+
![Create AKS cluster one](media/kubernetes-walkthrough/view-container-logs.png)
218+
203219
## Delete cluster
204220

205221
When the cluster is no longer needed, use the [az group delete][az-group-delete] command to remove the resource group, container service, and all related resources.
@@ -246,3 +262,4 @@ To learn more about AKS, and walk through a complete code to deployment example,
246262
[az-group-delete]: /cli/azure/group#az_group_delete
247263
[azure-cli-install]: /cli/azure/install-azure-cli
248264
[sp-delete]: kubernetes-service-principal.md#additional-considerations
265+
[azure-portal]: https://portal.azure.com
62 KB
Loading
185 KB
Loading

articles/automation/automation-solution-vm-management.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Start/Stop VMs during off-hours solution (preview)
2+
title: Start/Stop VMs during off-hours solution
33
description: This VM management solution starts and stops your Azure Resource Manager virtual machines on a schedule and proactively monitors from Log Analytics.
44
services: automation
55
ms.service: automation
66
ms.component: process-automation
77
author: georgewallace
88
ms.author: gwallace
9-
ms.date: 06/11/2018
9+
ms.date: 07/11/2018
1010
ms.topic: conceptual
1111
manager: carmonm
1212
---
13-
# Start/Stop VMs during off-hours solution (preview) in Azure Automation
13+
# Start/Stop VMs during off-hours solution in Azure Automation
1414

1515
The Start/Stop VMs during off-hours solution starts and stops your Azure virtual machines on user-defined schedules, provides insights through Azure Log Analytics, and sends optional emails by using [action groups](../monitoring-and-diagnostics/monitoring-action-groups.md). It supports both Azure Resource Manager and classic VMs for most scenarios.
1616

@@ -33,9 +33,13 @@ This solution provides a decentralized automation option for users who want to r
3333

3434
Perform the following steps to add the Start/Stop VMs during off-hours solution to your Automation account, and then configure the variables to customize the solution.
3535

36-
1. In the Azure portal, click **Create a resource**.
37-
1. In the Marketplace page, type a keyword such as **Start** or **Start/Stop**. As you begin typing, the list filters based on your input. Alternatively, you can type in one or more keywords from the full name of the solution and then press Enter. Select **Start/Stop VMs during off-hours [Preview]** from the search results.
38-
1. In the **Start/Stop VMs during off-hours [Preview]** page for the selected solution, review the summary information and then click **Create**.
36+
1. From an Automation Account select **Start/Stop VM** under **Related Resources**. From here you can click **Learn more about and enable the solution**. If you already have a Start/Stop VM solution deployed, you can click **Manage the solution** to be taken to a list of the deployed solutions and select it from there.
37+
38+
![Enable from automation account](./media/automation-solution-vm-management/enable-from-automation-account.png)
39+
40+
> [!NOTE]
41+
> You can also create it from anywhere in the Azure portal, by clicking **Create a resource**. In the Marketplace page, type a keyword such as **Start** or **Start/Stop**. As you begin typing, the list filters based on your input. Alternatively, you can type in one or more keywords from the full name of the solution and then press Enter. Select **Start/Stop VMs during off-hours** from the search results.
42+
1. In the **Start/Stop VMs during off-hours** page for the selected solution, review the summary information and then click **Create**.
3943

4044
![Azure portal](media/automation-solution-vm-management/azure-portal-01.png)
4145

@@ -64,7 +68,11 @@ Perform the following steps to add the Start/Stop VMs during off-hours solution
6468
* Specify the **Target ResourceGroup Names**. These are resource group names that contain VMs to be managed by this solution. You can enter more than one name and separate each by using a comma (values are not case-sensitive). Using a wildcard is supported if you want to target VMs in all resource groups in the subscription. This value is stored in the **External_Start_ResourceGroupNames** and **External_Stop_ResourceGroupNames** variables.
6569
* Specify the **VM Exclude List (string)**. This is the name of one or more virtual machines from the target resource group. You can enter more than one name and separate each by using a comma (values are not case-sensitive). Using a wildcard is supported. This value is stored in the **External_ExcludeVMNames** variable.
6670
* Select a **Schedule**. This is a recurring date and time for starting and stopping the VMs in the target resource groups. By default, the schedule is configured for 30 minutes from now. Selecting a different region is not available. To configure the schedule to your specific time zone after configuring the solution, see [Modifying the startup and shutdown schedule](#modify-the-startup-and-shutdown-schedule).
67-
* To receive **Email notifications** from an action group, accept the default value of **Yes** and provide a valid email address. If you select **No** but decide at a later date that you want to receive email notifications, you can update the [action group](../monitoring-and-diagnostics/monitoring-action-groups.md) that is created with valid email addresses separated by a comma.
71+
* To receive **Email notifications** from an action group, accept the default value of **Yes** and provide a valid email address. If you select **No** but decide at a later date that you want to receive email notifications, you can update the [action group](../monitoring-and-diagnostics/monitoring-action-groups.md) that is created with valid email addresses separated by a comma. You also need to enable the following alert rules:
72+
73+
* AutoStop_VM_Child
74+
* Scheduled_StartStop_Parent
75+
* Sequenced_StartStop_Parent
6876

6977
> [!IMPORTANT]
7078
> The default value for **Target ResourceGroup Names** is a *****. This targets all VMs in a subscription. If you do not want the solution to target all the VMs in your subscription this value needs to be updated to a list of resource group names prior to enabling the schedules.
109 KB
Loading
124 KB
Loading

articles/azure-stack/asdk/asdk-register.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ Follow these steps to register the ASDK with Azure.
4141
4242
1. Open a PowerShell console as an administrator.
4343

44-
2. Run the following PowerShell commands to register your ASDK installation with Azure. You will need to sign in to both your Azure subscription and the local ASDK installation. If you don’t have an Azure subscription yet, you can [create a free Azure account here](https://azure.microsoft.com/free/?b=17.06). Registering Azure Stack incurs no cost on your Azure subscription.
45-
46-
If you are running the registration script on more than one instance of Azure Stack using the same Azure Subscription ID, set a unique name for the registration when you run the **Set-AzsRegistration** cmdlet. The **RegistrationName** parameter has a default value of **AzureStackRegistration**. However, if you use the same name on more than one instance of Azure Stack, the script will fail.
44+
2. Run the following PowerShell commands to register your ASDK installation with Azure. You will need to sign in to both your Azure subscription and the local ASDK installation. If you don’t have an Azure subscription yet, you can [create a free Azure account here](https://azure.microsoft.com/free/?b=17.06). Registering Azure Stack incurs no cost on your Azure subscription.
4745

4846
```PowerShell
4947
# Add the Azure cloud subscription environment name. Supported environment names are AzureCloud or, if using a China Azure Subscription, AzureChinaCloud.
@@ -58,12 +56,10 @@ Follow these steps to register the ASDK with Azure.
5856
#Register Azure Stack
5957
$AzureContext = Get-AzureRmContext
6058
$CloudAdminCred = Get-Credential -UserName AZURESTACK\CloudAdmin -Message "Enter the credentials to access the privileged endpoint."
61-
$RegistrationName = "<unique-registration-name>"
6259
Set-AzsRegistration `
6360
-PrivilegedEndpointCredential $CloudAdminCred `
6461
-PrivilegedEndpoint AzS-ERCS01 `
6562
-BillingModel Development
66-
-RegistrationName $RegistrationName
6763
```
6864
3. When the script completes, you should see this message: **Your environment is now registered and activated using the provided parameters.**
6965

0 commit comments

Comments
 (0)