Skip to content

Commit bf1d115

Browse files
authored
Merge pull request #284288 from EdB-MSFT/SFI-autoscale-common-scale-patterns
SFI autoscale common scale patterns
2 parents f1d0c39 + 2448f29 commit bf1d115

File tree

6 files changed

+45
-3
lines changed

6 files changed

+45
-3
lines changed

articles/azure-monitor/autoscale/autoscale-predictive.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Predictive autoscale adheres to the scaling boundaries you've set for your virtu
7171

7272
## Enable using an Azure Resource Manager template
7373

74-
1. Retrieve the virtual machine scale set resource ID and resource group of your virtual machine scale set. For example: /subscriptions/e954e48d-abcd-abcd-abcd-3e0353cb45ae/resourceGroups/patest2/providers/Microsoft.Compute/virtualMachineScaleSets/patest2
74+
1. Retrieve the virtual machine scale set resource ID and resource group of your virtual machine scale set. For example: /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/patest2/providers/Microsoft.Compute/virtualMachineScaleSets/patest2
7575

7676
1. Update the *autoscale_only_parameters* file with the virtual machine scale set resource ID and any autoscale setting parameters.
7777

@@ -81,7 +81,49 @@ Predictive autoscale adheres to the scaling boundaries you've set for your virtu
8181
PS G:\works\kusto_onboard\test_arm_template> new-azurermresourcegroupdeployment -name binzAutoScaleDeploy -resourcegroupname cpatest2 -templatefile autoscale_only.json -templateparameterfile autoscale_only_parameters.json
8282
```
8383

84-
:::image type="content" source="media/autoscale-predictive/powershell-template-7.png" alt-text="Screenshot that shows PowerShell command output from the preceding command when you run Azure Resource Manager templates to deploy predictive autoscale.":::
84+
85+
```powershell
86+
PS C:\works\autoscale\predictive_autoscale\arm_template> new-azurermresourcegroupdeployment -name binzAutoScaleDeploy - resourcegroupname patest2 -templatefile autoscale_only_binz.json -templateparameterfile autoscale_only_parameters_binz.json
87+
88+
DeploymentName : binzAutoScaleDeploy
89+
ResourceGroupName : patest2
90+
ProvisioningState : Succeeded
91+
Timestamp : 3/30/2021 10:11:02 PM
92+
Mode : Incremental
93+
TemplateLink
94+
Parameters :
95+
96+
Name Type Value
97+
================ ============================= ====================
98+
targetVmssResourceld String /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/patest2/providers/Microsoft.Compute/virtualMachineScaleSets/patest2
99+
location String East US
100+
minimumCapacity Int 1
101+
maximumCapacity Int 4
102+
defaultCapacity Int 4
103+
metricThresholdToScaleOut Int 50
104+
metricTimeWindowForScaleOut String PT5M
105+
metricThresholdToScaleln Int 30
106+
metricTimeWindowForScaleln String PT5M
107+
changeCountScaleOut Int 1
108+
changeCountScaleln Int 1
109+
predictiveAutoscaleMode String Enabled
110+
111+
Outputs :
112+
Name Type Value
113+
================ ============================== ====================
114+
115+
targetVmssResourceld String /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/patest2/providers/Microsoft.Compute/virtualMachineScaleSets/patest2
116+
settingLocation String East US
117+
predictiveAutoscaleMode String Enabled
118+
119+
DeloymentDebugLoglevel :
120+
121+
PS C:\works\autoscale\predictive_autoscale\arm_template>
122+
123+
```
124+
125+
126+
85127

86128
**autoscale_only.json**
87129
```json
@@ -253,7 +295,7 @@ PS G:\works\kusto_onboard\test_arm_template> new-azurermresourcegroupdeployment
253295
"contentVersion": "1.0.0.0",
254296
"parameters": {
255297
"targetVmssResourceId": {
256-
"value": "/subscriptions/e954e48d-b252-b252-b252-3e0353cb45ae/resourceGroups/patest2/providers/Microsoft.Compute/virtualMachineScaleSets/patest2"
298+
"value": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/patest2/providers/Microsoft.Compute/virtualMachineScaleSets/patest2"
257299
},
258300
"location": {
259301
"value": "East US"
-1.32 KB
Loading
-875 Bytes
Loading
-807 Bytes
Loading
-1.66 KB
Loading

0 commit comments

Comments
 (0)