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
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].
26
26
27
27
## Create a resource group
28
28
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.
32
30
33
31
The following example creates a resource group named *myAKSCluster* in the *eastus* location.
34
32
@@ -53,10 +51,10 @@ Output:
53
51
54
52
## Create AKS cluster
55
53
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].
57
55
58
56
```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
60
58
```
61
59
62
60
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
65
63
66
64
To manage a Kubernetes cluster, use [kubectl][kubectl], the Kubernetes command-line client.
67
65
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.
69
67
70
68
71
69
```azurecli
72
70
az aks install-cli
73
71
```
74
72
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.
76
74
77
75
```azurecli-interactive
78
76
az aks get-credentials --resource-group myAKSCluster --name myAKSCluster
79
77
```
80
78
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.
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.
97
95
98
96
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.
99
97
@@ -200,6 +198,24 @@ Now browse to the external IP address to see the Azure Vote App.
200
198
201
199

202
200
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
+

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
+

218
+
203
219
## Delete cluster
204
220
205
221
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,
Copy file name to clipboardExpand all lines: articles/automation/automation-solution-vm-management.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: Start/Stop VMs during off-hours solution (preview)
2
+
title: Start/Stop VMs during off-hours solution
3
3
description: This VM management solution starts and stops your Azure Resource Manager virtual machines on a schedule and proactively monitors from Log Analytics.
4
4
services: automation
5
5
ms.service: automation
6
6
ms.component: process-automation
7
7
author: georgewallace
8
8
ms.author: gwallace
9
-
ms.date: 06/11/2018
9
+
ms.date: 07/11/2018
10
10
ms.topic: conceptual
11
11
manager: carmonm
12
12
---
13
-
# Start/Stop VMs during off-hours solution (preview) in Azure Automation
13
+
# Start/Stop VMs during off-hours solution in Azure Automation
14
14
15
15
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.
16
16
@@ -33,9 +33,13 @@ This solution provides a decentralized automation option for users who want to r
33
33
34
34
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.
35
35
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
+

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**.
@@ -64,7 +68,11 @@ Perform the following steps to add the Start/Stop VMs during off-hours solution
64
68
* 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.
65
69
* 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.
66
70
* 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
68
76
69
77
> [!IMPORTANT]
70
78
> 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.
Copy file name to clipboardExpand all lines: articles/azure-stack/asdk/asdk-register.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,7 @@ Follow these steps to register the ASDK with Azure.
41
41
42
42
1. Open a PowerShell console as an administrator.
43
43
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.
47
45
48
46
```PowerShell
49
47
# 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.
58
56
#Register Azure Stack
59
57
$AzureContext = Get-AzureRmContext
60
58
$CloudAdminCred = Get-Credential -UserName AZURESTACK\CloudAdmin -Message "Enter the credentials to access the privileged endpoint."
61
-
$RegistrationName = "<unique-registration-name>"
62
59
Set-AzsRegistration `
63
60
-PrivilegedEndpointCredential $CloudAdminCred `
64
61
-PrivilegedEndpoint AzS-ERCS01 `
65
62
-BillingModel Development
66
-
-RegistrationName $RegistrationName
67
63
```
68
64
3. When the script completes, you should see this message: **Your environment is now registered and activated using the provided parameters.**
0 commit comments