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
Copy file name to clipboardExpand all lines: articles/azure-monitor/autoscale/autoscale-using-powershell.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,18 +27,19 @@ This article shows you how to configure autoscale for a Virtual Machine Scale Se
27
27
28
28
To configure autoscale using PowerShell, you need an Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free).
29
29
30
-
31
-
## Create a Virtual Machine Scale Set
32
-
33
-
Create a scale set using the following cmdlets. Set the `$resourceGroupName` and `$vmssName` variables to suite your environment.
30
+
## Set up your environemnt
34
31
35
32
```azurepowershell
36
-
#Set the VMSS name and resource group name
37
-
33
+
#Set the subscription Id, VMSS name, and resource group name
38
34
$subscriptionId = (Get-AzContext).Subscription.Id
39
35
$resourceGroupName="rg-powershell-autoscale"
40
36
$vmssName="vmss-001"
37
+
```
38
+
## Create a Virtual Machine Scale Set
41
39
40
+
Create a scale set using the following cmdlets. Set the `$resourceGroupName` and `$vmssName` variables to suite your environment.
Configure the notification using the webhook and set up email notification using the [`New-AzAutoscaleNotificationObject`](https://learn.microsoft.com/powershell/module/az.monitor/new-azautoscalenotificationobject) cmdlet:
@@ -294,6 +293,8 @@ Update-AzAutoscaleSetting `
294
293
295
294
```
296
295
296
+
For more information on scheduled profiles, see [Autoscale with multiple profiles](./autoscale-multiprofile.md)
297
+
297
298
## Other autoscale commands
298
299
299
300
For a complete list of PowerShell cmdlets for autoscale, see the [PowerShell Module Browser](https://learn.microsoft.com/powershell/module/?term=azautoscale)
0 commit comments