Skip to content

Update-AzAutoScaleSetting fails silently without applying changes #29746

Description

@sgrant-correla

Description

I have an App Service Plan deployed with Autoscale rules.
I am using PowerShell 7.6.2 with modules: Az v16.0.0 and Az.Monitor v8.0.0.

  1. I use Get-AzAutoscaleSetting to fetch the current configuration and then modify it in-memory to change the ScheduleHour and ScheduleMinute properties of the autoscale condition that's part of that autoscale rule.
  2. This works fine (I can see the object has been changed), however when I try to actually update my deployed ASP autoscale rule using Update-AzAutoScaleSetting, the autoscale rule does NOT get updated. No error is given, everything looks like it has worked, except the change has not been applied.
  3. Checking the in-memory autoscale setting shows that it was successfully changed, but the real Azure resource ASP autoscale rule was NOT.

I have been forced to downgrade back to Az v14.6.0, which (I've tested this) is the most recent version without this bug.
This bug was introduced in Az v15.0.0.

Issue script & Debug output

PS> $DebugPreference = 'Continue'
PS>
PS> $environmentName = 'ppte4'
PS> $resourceGroup = "dfp-${environmentName}-rg"
PS> $sharedAspName = "dfp-${environmentName}-shared-1-uks-asp"
PS> $sharedAutoscaleSettingName = "${sharedAspName}-setting"
PS> $defaultConditionName = 'General Running'
PS>
PS> $sharedScale = Get-AzAutoscaleSetting -ResourceGroupName $resourceGroup -Name $sharedAutoscaleSettingName


DEBUG: Initializing ConditionalAssemblyContext. PSEdition is [Core]. PSVersion is [7.6.2].
DEBUG: Initializing ConditionalAssemblyProvider. AssemblyRootPath is [C:\Users\Stefan.Grant\OneDrive - Correla Limited\Documents\PowerShell\Modules\Az.Accounts\5.5.0\StartupScripts\..\lib].
DEBUG: Registering Az shared AssemblyLoadContext.
DEBUG: AssemblyLoadContext registered.
DEBUG: Initializing PSStyle.
DEBUG: Got version 0 of Az
DEBUG: Got version 0 of Az.Accounts
DEBUG: 11:31:48 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:48 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 11:31:48 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Get-AzContext]. Returning default value [True].
DEBUG: 11:31:48 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:48 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:48 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:48 - No authentication telemetry is found for the current cmdlet with Id 1f3e57c9-a42b-4172-86c7-846a02822752.
DEBUG: AzureQoSEvent:  Module: Az.Accounts:5.5.0; CommandName: Get-AzContext; PSVersion: 7.6.2; IsSuccess: True; Duration: 00:00:00.1790434; SanitizeDuration: 00:00:00.0033852
DEBUG: 11:31:48 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - GetAzureRMContextCommand end processing.
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Get-AzContext]. Returning default value [True].
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - GetAzureRMContextCommand end processing.
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing:
DEBUG: CmdletProcessRecordStart:
DEBUG: CmdletGetPipeline:
DEBUG: CmdletBeforeAPICall:
DEBUG: URLCreated: /subscriptions/{subscriptionId}/resourcegroups/dfp-ppte4-rg/providers/Microsoft.Insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting?api-version=2022-10-01
DEBUG: RequestCreated: /subscriptions/{subscriptionId}/resourcegroups/dfp-ppte4-rg/providers/Microsoft.Insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting?api-version=2022-10-01
DEBUG: HeaderParametersAdded:
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/dfp-ppte4-rg/providers/Microsoft.Insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting?api-version=2022-10-01

Headers:
x-ms-unique-id                : 1
x-ms-client-request-id        : 39623363-09cf-4913-8c29-173079da2046
CommandName                   : Get-AzAutoscaleSetting
FullCommandName               : Get-AzAutoscaleSetting_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v16.0.0,PSVersion/v7.6.2,Az.Autoscale/6.0.2

Body:



DEBUG: BeforeCall:
DEBUG: 11:31:49 - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 83284e37-6336-4cf0-8a6c-652fd092a13c
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-correlation-request-id   : 0f11389d-5fe6-4125-912c-9513c7e62159
x-ms-routing-request-id       : UKSOUTH:20260618T103149Z:0f11389d-5fe6-4125-912c-9513c7e62159
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 0E731E1A64C04CDE82F3E348CF17888A Ref B: AMS231032609031 Ref C: 2026-06-18T10:31:49Z
Date                          : Thu, 18 Jun 2026 10:31:48 GMT

Body:
{
  "id": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/microsoft.insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting",
  "name": "dfp-ppte4-shared-1-uks-asp-setting",
  "type": "Microsoft.Insights/autoscaleSettings",
  "location": "Uk South",
  "tags": {},
  "properties": {
    "profiles": [
      {
        "name": "General running",
        "capacity": {
          "minimum": "2",
          "maximum": "16",
          "default": "2"
        },
        "rules": [
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT2M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 90.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "3",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT3M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 70.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "1",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT5M",
              "timeAggregation": "Average",
              "operator": "LessThan",
              "threshold": 30.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Decrease",
              "type": "PercentChangeCount",
              "value": "30",
              "cooldown": "PT8M"
            }
          }
        ],
        "recurrence": {
          "frequency": "Week",
          "schedule": {
            "timeZone": "GMT Standard Time",
            "days": [
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday",
              "Sunday"
            ],
            "hours": [
              17
            ],
            "minutes": [
              30
            ]
          }
        }
      },
      {
        "name": "Gate Closure Pre Scale",
        "capacity": {
          "minimum": "2",
          "maximum": "30",
          "default": "2"
        },
        "rules": [
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT2M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 90.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "3",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT3M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 70.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "1",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT5M",
              "timeAggregation": "Average",
              "operator": "LessThan",
              "threshold": 30.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Decrease",
              "type": "PercentChangeCount",
              "value": "30",
              "cooldown": "PT8M"
            }
          }
        ],
        "recurrence": {
          "frequency": "Week",
          "schedule": {
            "timeZone": "GMT Standard Time",
            "days": [
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday",
              "Sunday"
            ],
            "hours": [
              16
            ],
            "minutes": [
              55
            ]
          }
        }
      }
    ],
    "enabled": true,
    "name": "dfp-ppte4-shared-1-uks-asp-setting",
    "targetResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
    "notifications": null,
    "predictiveAutoscalePolicy": {
      "scaleMode": "Disabled",
      "scaleLookAheadTime": null
    }
  }
}


DEBUG: ResponseCreated:
DEBUG: BeforeResponseDispatch:
DEBUG: Finally:
DEBUG: CmdletAfterAPICall:
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd:
DEBUG: CmdletProcessRecordEnd:
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:49 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Monitor:8.0.0; CommandName: Get-AzAutoscaleSetting; PSVersion: 7.6.2; IsSuccess: True; Duration: 00:00:00.4659322; SanitizeDuration: 00:00:00.0010828


PS>
PS> $autoscaleCondition = $sharedScale.Profile | Where-Object { $_.Name -eq $defaultConditionName }
PS>
PS> $autoscaleCondition.ScheduleHour = 11
PS> $autoscaleCondition.ScheduleMinute = 22
PS>
PS> Update-AzAutoScaleSetting -ResourceGroupName $resourceGroup -Name $sharedAutoscaleSettingName -Profile $sharedScale.Profile


DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Get-AzContext]. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - No authentication telemetry is found for the current cmdlet with Id 6a971fec-6283-4649-b5de-d880faba1629.
DEBUG: AzureQoSEvent:  Module: Az.Accounts:5.5.0; CommandName: Get-AzContext; PSVersion: 7.6.2; IsSuccess: True; Duration: 00:00:00.0042362; SanitizeDuration: 00:00:00.0000500
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - GetAzureRMContextCommand end processing.
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Get-AzContext]. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - GetAzureRMContextCommand end processing.
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - GetAzureRMContextCommand begin processing with ParameterSet 'GetSingleContext'.
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Accounts], Cmdlet = [Get-AzContext]. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:31:51 - GetAzureRMContextCommand end processing.
DEBUG: [CmdletBeginProcessing]: Starting command
DEBUG: CmdletBeginProcessing:
DEBUG: CmdletProcessRecordStart:
DEBUG: CmdletGetPipeline:
DEBUG: CmdletBeforeAPICall:
DEBUG: URLCreated: /subscriptions/{subscriptionId}/resourcegroups/dfp-ppte4-rg/providers/Microsoft.Insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting?api-version=2022-10-01
DEBUG: RequestCreated: /subscriptions/{subscriptionId}/resourcegroups/dfp-ppte4-rg/providers/Microsoft.Insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting?api-version=2022-10-01
DEBUG: HeaderParametersAdded:
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/dfp-ppte4-rg/providers/Microsoft.Insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting?api-version=2022-10-01

Headers:
x-ms-unique-id                : 2
x-ms-client-request-id        : b8e74590-0ca1-4d11-a9a6-6e576b7745fe
CommandName                   : Get-AzAutoscaleSetting
FullCommandName               : Get-AzAutoscaleSetting_Get
ParameterSetName              : __AllParameterSets
User-Agent                    : AzurePowershell/v16.0.0,PSVersion/v7.6.2,Az.Autoscale/6.0.2

Body:



DEBUG: 11:31:51 - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: BeforeCall:
DEBUG: 11:31:51 - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 7fb17d15-6a9e-4b1d-a691-34c558921823
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-correlation-request-id   : 137da801-b039-4b92-b75a-0ff70c7adb53
x-ms-routing-request-id       : UKSOUTH:20260618T103152Z:137da801-b039-4b92-b75a-0ff70c7adb53
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 0A4D3C885D114A7898194B412DE03C64 Ref B: AMS231032609031 Ref C: 2026-06-18T10:31:51Z
Date                          : Thu, 18 Jun 2026 10:31:51 GMT

Body:
{
  "id": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/microsoft.insights/autoscalesettings/dfp-ppte4-shared-1-uks-asp-setting",
  "name": "dfp-ppte4-shared-1-uks-asp-setting",
  "type": "Microsoft.Insights/autoscaleSettings",
  "location": "Uk South",
  "tags": {},
  "properties": {
    "profiles": [
      {
        "name": "General running",
        "capacity": {
          "minimum": "2",
          "maximum": "16",
          "default": "2"
        },
        "rules": [
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT2M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 90.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "3",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT3M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 70.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "1",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT5M",
              "timeAggregation": "Average",
              "operator": "LessThan",
              "threshold": 30.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Decrease",
              "type": "PercentChangeCount",
              "value": "30",
              "cooldown": "PT8M"
            }
          }
        ],
        "recurrence": {
          "frequency": "Week",
          "schedule": {
            "timeZone": "GMT Standard Time",
            "days": [
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday",
              "Sunday"
            ],
            "hours": [
              17
            ],
            "minutes": [
              30
            ]
          }
        }
      },
      {
        "name": "Gate Closure Pre Scale",
        "capacity": {
          "minimum": "2",
          "maximum": "30",
          "default": "2"
        },
        "rules": [
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT2M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 90.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "3",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT3M",
              "timeAggregation": "Average",
              "operator": "GreaterThan",
              "threshold": 70.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Increase",
              "type": "ChangeCount",
              "value": "1",
              "cooldown": "PT5M"
            }
          },
          {
            "metricTrigger": {
              "metricName": "CpuPercentage",
              "metricNamespace": "microsoft.web/serverfarms",
              "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
              "timeGrain": "PT1M",
              "statistic": "Average",
              "timeWindow": "PT5M",
              "timeAggregation": "Average",
              "operator": "LessThan",
              "threshold": 30.0,
              "dimensions": null,
              "dividePerInstance": false
            },
            "scaleAction": {
              "direction": "Decrease",
              "type": "PercentChangeCount",
              "value": "30",
              "cooldown": "PT8M"
            }
          }
        ],
        "recurrence": {
          "frequency": "Week",
          "schedule": {
            "timeZone": "GMT Standard Time",
            "days": [
              "Monday",
              "Tuesday",
              "Wednesday",
              "Thursday",
              "Friday",
              "Saturday",
              "Sunday"
            ],
            "hours": [
              16
            ],
            "minutes": [
              55
            ]
          }
        }
      }
    ],
    "enabled": true,
    "name": "dfp-ppte4-shared-1-uks-asp-setting",
    "targetResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
    "notifications": null,
    "predictiveAutoscalePolicy": {
      "scaleMode": "Disabled",
      "scaleLookAheadTime": null
    }
  }
}


DEBUG: ResponseCreated:
DEBUG: BeforeResponseDispatch:
DEBUG: Finally:
DEBUG: CmdletAfterAPICall:
DEBUG: [CmdletProcessRecordAsyncEnd]: Finish HTTP process
DEBUG: CmdletProcessRecordAsyncEnd:
DEBUG: CmdletProcessRecordEnd:
DEBUG: 11:31:52 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Monitor:8.0.0; CommandName: Update-AzAutoscaleSetting; PSVersion: 7.6.2; IsSuccess: True; Duration: 00:00:00.2117939; SanitizeDuration: 00:00:00


PS> $sharedScale.Profile[0]

CapacityDefault     : 2
CapacityMaximum     : 16
CapacityMinimum     : 2
FixedDateEnd        :
FixedDateStart      :
FixedDateTimeZone   :
Name                : General running
RecurrenceFrequency : Week
Rule                : {{
                        "metricTrigger": {
                          "metricName": "CpuPercentage",
                          "metricNamespace": "microsoft.web/serverfarms",
                          "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
                          "timeGrain": "PT1M",
                          "statistic": "Average",
                          "timeWindow": "PT2M",
                          "timeAggregation": "Average",
                          "operator": "GreaterThan",
                          "threshold": 90,
                          "dividePerInstance": false
                        },
                        "scaleAction": {
                          "direction": "Increase",
                          "type": "ChangeCount",
                          "value": "3",
                          "cooldown": "PT5M"
                        }
                      }, {
                        "metricTrigger": {
                          "metricName": "CpuPercentage",
                          "metricNamespace": "microsoft.web/serverfarms",
                          "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
                          "timeGrain": "PT1M",
                          "statistic": "Average",
                          "timeWindow": "PT3M",
                          "timeAggregation": "Average",
                          "operator": "GreaterThan",
                          "threshold": 70,
                          "dividePerInstance": false
                        },
                        "scaleAction": {
                          "direction": "Increase",
                          "type": "ChangeCount",
                          "value": "1",
                          "cooldown": "PT5M"
                        }
                      }, {
                        "metricTrigger": {
                          "metricName": "CpuPercentage",
                          "metricNamespace": "microsoft.web/serverfarms",
                          "metricResourceUri": "/subscriptions/{subscriptionId}/resourceGroups/dfp-ppte4-rg/providers/Microsoft.Web/serverfarms/dfp-ppte4-shared-1-uks-asp",
                          "timeGrain": "PT1M",
                          "statistic": "Average",
                          "timeWindow": "PT5M",
                          "timeAggregation": "Average",
                          "operator": "LessThan",
                          "threshold": 30,
                          "dividePerInstance": false
                        },
                        "scaleAction": {
                          "direction": "Decrease",
                          "type": "PercentChangeCount",
                          "value": "30",
                          "cooldown": "PT8M"
                        }
                      }}
ScheduleDay         : {Monday, Tuesday, Wednesday, Thursday…}
ScheduleHour        : {11}
ScheduleMinute      : {22}
ScheduleTimeZone    : GMT Standard Time

Environment data

Name                           Value
----                           -----
PSVersion                      7.6.2
PSEdition                      Core
GitCommitId                    7.6.2
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

PS> Get-Module -ListAvailable

    Directory: C:\Users\Stefan.Grant\OneDrive - Correla Limited\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     16.0.0                Az                                  Core,Desk
Script     5.5.0                 Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave…}
Script     3.0.0                 Az.Advisor                          Core,Desk {Disable-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration, Get-AzAdvisorRecommendation…}
Script     7.2.0                 Az.Aks                              Core,Desk {Disable-AzAksAddOn, Enable-AzAksAddOn, Get-AzAksCluster, Get-AzAksNodePool…}
Script     1.3.0                 Az.AnalysisServices                 Core,Desk {Add-AzAnalysisServicesAccount, Export-AzAnalysisServicesInstanceLog, Get-AzAnalysisServicesServer, New-AzAnalysisServicesFirewal…
Script     4.2.0                 Az.ApiManagement                    Core,Desk {Add-AzApiManagementApiToGateway, Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion…}
Script     2.0.1                 Az.App                              Core,Desk {Disable-AzContainerAppRevision, Enable-AzContainerAppRevision, Get-AzContainerApp, Get-AzContainerAppAuthConfig…}
Script     2.1.0                 Az.AppConfiguration                 Core,Desk {Clear-AzAppConfigurationDeletedStore, Get-AzAppConfigurationDeletedStore, Get-AzAppConfigurationKey, Get-AzAppConfigurationKeyVa…
Script     3.0.0                 Az.ApplicationInsights              Core,Desk {Get-AzApplicationInsights, Get-AzApplicationInsightsApiKey, Get-AzApplicationInsightsContinuousExport, Get-AzApplicationInsights…
Script     2.0.0                 Az.ArcResourceBridge                Core,Desk {Get-AzArcResourceBridge, Get-AzArcResourceBridgeApplianceCredential, Get-AzArcResourceBridgeCredential, Get-AzArcResourceBridgeT…
Script     1.0.0                 Az.ArizeAI                          Core,Desk {Get-AzArizeAIOrganization, New-AzArizeAIOrganization, Remove-AzArizeAIOrganization, Update-AzArizeAIOrganization}
Script     3.1.0                 Az.Attestation                      Core,Desk {Add-AzAttestationPolicySigner, Get-AzAttestationPolicy, Get-AzAttestationPolicySigners, Remove-AzAttestationPolicySigner…}
Script     2.0.0                 Az.Automanage                       Core,Desk {Get-AzAutomanageBestPractice, Get-AzAutomanageConfigProfile, Get-AzAutomanageConfigProfileAssignment, Get-AzAutomanageConfigProf…
Script     1.12.0                Az.Automation                       Core,Desk {Export-AzAutomationDscConfiguration, Export-AzAutomationDscNodeReportContent, Export-AzAutomationRunbook, Get-AzAutomationAccoun…
Script     4.1.0                 Az.Batch                            Core,Desk {Disable-AzBatchAutoScale, Disable-AzBatchComputeNodeScheduling, Disable-AzBatchJob, Disable-AzBatchJobSchedule…}
Script     2.3.0                 Az.Billing                          Core,Desk {Get-AzBillingAccount, Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzBillingProfile…}
Script     6.0.2                 Az.Cdn                              Core,Desk {Add-AzCdnEdgeActionAttachment, Clear-AzCdnEndpointContent, Clear-AzFrontDoorCdnEndpointContent, Deploy-AzCdnEdgeActionVersionCod…
Script     3.0.0                 Az.CloudService                     Core,Desk {Get-AzCloudService, Get-AzCloudServiceInstanceView, Get-AzCloudServiceNetworkInterface, Get-AzCloudServiceOSFamily…}
Script     1.17.0                Az.CognitiveServices                Core,Desk {Add-AzCognitiveServicesAccountNetworkRule, Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountCommitmentPlan, Get-AzC…
Script     11.6.0                Az.Compute                          Core,Desk {Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity, Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege, Add-AzGal…
Script     2.0.0                 Az.ConfidentialLedger               Core,Desk {Get-AzConfidentialLedger, New-AzConfidentialLedger, New-AzConfidentialLedgerAADBasedSecurityPrincipalObject, New-AzConfidentialL…
Script     1.1.1                 Az.ConnectedMachine                 Core,Desk {Connect-AzConnectedMachine, Get-AzConnectedExtensionMetadata, Get-AzConnectedLicense, Get-AzConnectedLicenseProfile…}
Script     5.0.0                 Az.ContainerInstance                Core,Desk {Add-AzContainerInstanceOutput, Get-AzContainerGroup, Get-AzContainerInstanceCachedImage, Get-AzContainerInstanceCapability…}
Script     5.1.0                 Az.ContainerRegistry                Core,Desk {Connect-AzContainerRegistry, Get-AzContainerRegistryManifest, Get-AzContainerRegistryRepository, Get-AzContainerRegistryTag…}
Script     1.21.0                Az.CosmosDB                         Core,Desk {Get-AzCosmosDBAccount, Get-AzCosmosDBAccountKey, Get-AzCosmosDBCassandraKeyspace, Get-AzCosmosDBCassandraKeyspaceThroughput…}
Script     1.3.0                 Az.DataBoxEdge                      Core,Desk {Get-AzDataBoxEdgeBandwidthSchedule, Get-AzDataBoxEdgeDevice, Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeOrder…}
Script     2.0.0                 Az.Databricks                       Core,Desk {Get-AzDatabricksAccessConnector, Get-AzDatabricksOutboundNetworkDependenciesEndpoint, Get-AzDatabricksVNetPeering, Get-AzDatabri…
Script     1.20.0                Az.DataFactory                      Core,Desk {Add-AzDataFactoryV2DataFlowDebugSessionPackage, Add-AzDataFactoryV2TriggerSubscription, Get-AzDataFactory, Get-AzDataFactoryActi…
Script     1.2.0                 Az.DataLakeAnalytics                Core,Desk {Add-AzDataLakeAnalyticsDataSource, Add-AzDataLakeAnalyticsFirewallRule, Get-AzDataLakeAnalyticsAccount, Get-AzDataLakeAnalyticsC…
Script     1.6.0                 Az.DataLakeStore                    Core,Desk {Add-AzDataLakeStoreFirewallRule, Add-AzDataLakeStoreItemContent, Add-AzDataLakeStoreTrustedIdProvider, Add-AzDataLakeStoreVirtua…
Script     1.1.0                 Az.DataMigration                    Core,Desk {Get-AzDataMigrationProject, Get-AzDataMigrationService, Get-AzDataMigrationTask, Invoke-AzDataMigrationCommand…}
Script     3.0.0                 Az.DataProtection                   Core,Desk {Backup-AzDataProtectionBackupInstanceAdhoc, Edit-AzDataProtectionPolicyRetentionRuleClientObject, Edit-AzDataProtectionPolicyTag…
Script     1.2.0                 Az.DataShare                        Core,Desk {Get-AzDataShare, Get-AzDataShareAccount, Get-AzDataShareDataSet, Get-AzDataShareDataSetMapping…}
Script     1.0.0                 Az.DataTransfer                     Core,Desk {Approve-AzDataTransferConnection, Deny-AzDataTransferConnection, Disable-AzDataTransferConnection, Disable-AzDataTransferFlow…}
Script     6.0.0                 Az.DesktopVirtualization            Core,Desk {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdAppAttachPackage, Get-AzWvdApplication…}
Script     3.0.0                 Az.DevCenter                        Core,Desk {Approve-AzDevCenterUserDevBox, Build-AzDevCenterAdminProjectCatalogImageDefinitionImage, Connect-AzDevCenterAdminCatalog, Connec…
Script     1.0.0                 Az.DeviceRegistry                   Core,Desk {Get-AzDeviceRegistryAsset, Get-AzDeviceRegistryAssetEndpointProfile, Get-AzDeviceRegistryBillingContainer, Get-AzDeviceRegistryN…
Script     1.2.0                 Az.DevTestLabs                      Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy…}
Script     2.1.0                 Az.Dns                              Core,Desk {Add-AzDnsRecordConfig, Get-AzDnsRecordSet, Get-AzDnsZone, New-AzDnsRecordConfig…}
Script     2.0.0                 Az.DnsResolver                      Core,Desk {Get-AzDnsForwardingRuleset, Get-AzDnsForwardingRulesetForwardingRule, Get-AzDnsForwardingRulesetVirtualNetworkLink, Get-AzDnsRes…
Script     1.7.0                 Az.ElasticSan                       Core,Desk {Add-AzElasticSanVolumeGroupNetworkRule, Get-AzElasticSan, Get-AzElasticSanSkuList, Get-AzElasticSanVolume…}
Script     2.2.0                 Az.EventGrid                        Core,Desk {Disable-AzEventGridPartnerTopic, Enable-AzEventGridPartnerDestination, Enable-AzEventGridPartnerTopic, Get-AzEventGridCaCertific…
Script     5.5.0                 Az.EventHub                         Core,Desk {New-AzEventHubAuthorizationRuleSASToken, Approve-AzEventHubPrivateEndpointConnection, Deny-AzEventHubPrivateEndpointConnection, …
Script     1.0.0                 Az.Fabric                           Core,Desk {Get-AzFabricCapacity, Get-AzFabricCapacitySku, New-AzFabricCapacity, Remove-AzFabricCapacity…}
Script     1.0.0                 Az.FileShare                        Core,Desk {Get-AzFileShare, Get-AzFileShareLimit, Get-AzFileShareProvisioningRecommendation, Get-AzFileShareSnapshot…}
Script     1.0.0                 Az.FirmwareAnalysis                 Core,Desk {Get-AzFirmwareAnalysisBinaryHardening, Get-AzFirmwareAnalysisCryptoCertificate, Get-AzFirmwareAnalysisCryptoKey, Get-AzFirmwareA…
Script     2.2.0                 Az.FrontDoor                        Core,Desk {Disable-AzFrontDoorCustomDomainHttps, Enable-AzFrontDoorCustomDomainHttps, Get-AzFrontDoor, Get-AzFrontDoorFrontendEndpoint…}
Script     5.0.0                 Az.Functions                        Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppFlexConsumptionRuntime, Get-AzFunctionAppPlan…}
Script     6.5.0                 Az.HDInsight                        Core,Desk {Add-AzHDInsightClusterIdentity, Add-AzHDInsightComponentVersion, Add-AzHDInsightConfigValue, Add-AzHDInsightMetastore…}
Script     3.0.0                 Az.HealthcareApis                   Core,Desk {Get-AzHealthcareApisService, Get-AzHealthcareApisWorkspace, Get-AzHealthcareDicomService, Get-AzHealthcareFhirDestination…}
Script     1.0.0                 Az.HealthDataAIServices             Core,Desk {Get-AzDeidService, New-AzDeidService, Remove-AzDeidService, Update-AzDeidService}
Script     2.9.0                 Az.IotHub                           Core,Desk {Add-AzIotHubCertificate, Add-AzIotHubConfiguration, Add-AzIotHubDeployment, Add-AzIotHubDevice…}
Script     6.5.0                 Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Add-AzKeyVaultCertificateContact, Add-AzKeyVaultKey, Add-AzKeyVaultManagedStorageAccount…}
Script     3.0.0                 Az.Kusto                            Core,Desk {Add-AzKustoClusterCalloutPolicy, Add-AzKustoClusterLanguageExtension, Add-AzKustoDatabasePrincipal, Get-AzKustoAttachedDatabaseC…
Script     1.0.0                 Az.LambdaTest                       Core,Desk {Get-AzLambdaTestOrganization, New-AzLambdaTestOrganization, Remove-AzLambdaTestOrganization, Update-AzLambdaTestOrganization}
Script     2.0.0                 Az.LoadTesting                      Core,Desk {Get-AzLoad, New-AzLoad, Remove-AzLoad, Update-AzLoad}
Script     1.7.0                 Az.LogicApp                         Core,Desk {Get-AzIntegrationAccount, Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConf…
Script     1.3.0                 Az.MachineLearning                  Core,Desk {Add-AzMlWebServiceRegionalProperty, Export-AzMlWebService, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlan…}
Script     2.0.0                 Az.MachineLearningServices          Core,Desk {Get-AzMLServiceQuota, Get-AzMLServiceUsage, Get-AzMLServiceVMSize, Get-AzMLWorkspace…}
Script     1.6.0                 Az.Maintenance                      Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenancePublicConfiguration…}
Script     2.0.0                 Az.ManagedServiceIdentity           Core,Desk {Get-AzFederatedIdentityCredential, Get-AzSystemAssignedIdentity, Get-AzUserAssignedIdentity, Get-AzUserAssignedIdentityAssociate…
Script     4.0.0                 Az.ManagedServices                  Core,Desk {Get-AzManagedServicesAssignment, Get-AzManagedServicesDefinition, Get-AzManagedServicesMarketplaceDefinition, New-AzManagedServi…
Script     2.2.0                 Az.MarketplaceOrdering              Core,Desk {Get-AzMarketplaceTerms, Invoke-AzMarketplaceSignTerms, Set-AzMarketplaceTerms, Stop-AzMarketplaceTerms}
Script     3.0.0                 Az.Migrate                          Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMigrateJob, Get-AzMigrateLocalJob, Get-AzMigrateLocalReplicationFabric…}
Script     8.0.0                 Az.Monitor                          Core,Desk {Add-AzLogProfile, Add-AzMetricAlertRule, Add-AzMetricAlertRuleV2, Add-AzWebtestAlertRule…}
Script     2.0.0                 Az.MySql                            Core,Desk {Get-AzMySqlFlexibleServer, Get-AzMySqlFlexibleServerAdvancedThreatProtectionSetting, Get-AzMySqlFlexibleServerConfiguration, Get…
Script     1.3.0                 Az.NetAppFiles                      Core,Desk {Approve-AzNetAppFilesReplication, Get-AzNetAppFilesAccount, Get-AzNetAppFilesActiveDirectory, Get-AzNetAppFilesBackup…}
Script     8.0.0                 Az.Network                          Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-AzApplicationGatewayBackendHt…
Script     3.0.0                 Az.NetworkCloud                     Core,Desk {Deploy-AzNetworkCloudCluster, Disable-AzNetworkCloudStorageApplianceRemoteVendorManagement, Enable-AzNetworkCloudStorageApplianc…
Script     2.0.0                 Az.Nginx                            Core,Desk {Get-AzNginxCertificate, Get-AzNginxConfiguration, Get-AzNginxDeployment, Invoke-AzNginxAnalysisConfiguration…}
Script     1.3.0                 Az.NotificationHubs                 Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential…}
Script     3.4.0                 Az.OperationalInsights              Core,Desk {Disable-AzOperationalInsightsIISLogCollection, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperationalInsig…
Script     2.0.0                 Az.Oracle                           Core,Desk {Add-AzOracleCloudVMClusterVM, Get-AzOracleAutonomousDatabase, Get-AzOracleAutonomousDatabaseBackup, Get-AzOracleAutonomousDataba…
Script     2.0.0                 Az.PolicyInsights                   Core,Desk {Get-AzPolicyAttestation, Get-AzPolicyEvent, Get-AzPolicyMetadata, Get-AzPolicyRemediation…}
Script     2.2.0                 Az.PowerBIEmbedded                  Core,Desk {Get-AzPowerBIEmbeddedCapacity, New-AzPowerBIEmbeddedCapacity, Remove-AzPowerBIEmbeddedCapacity, Resume-AzPowerBIEmbeddedCapacity…
Script     1.3.0                 Az.PrivateDns                       Core,Desk {Add-AzPrivateDnsRecordConfig, Get-AzPrivateDnsRecordSet, Get-AzPrivateDnsVirtualNetworkLink, Get-AzPrivateDnsZone…}
Script     7.12.0                Az.RecoveryServices                 Core,Desk {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disabl…
Script     1.12.0                Az.RedisCache                       Core,Desk {Export-AzRedisCache, Get-AzRedisCache, Get-AzRedisCacheFirewallRule, Get-AzRedisCacheKey…}
Script     2.0.0                 Az.RedisEnterpriseCache             Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCache, Get-AzRedisEnterpriseCacheAccessPolicyAssignment, Get-AzRedisEnterpri…
Script     3.0.0                 Az.Relay                            Core,Desk {Get-AzRelayAuthorizationRule, Get-AzRelayHybridConnection, Get-AzRelayKey, Get-AzRelayNamespace…}
Script     1.3.0                 Az.ResourceGraph                    Core,Desk {Search-AzGraph, Get-AzResourceGraphQuery, New-AzResourceGraphQuery, Remove-AzResourceGraphQuery…}
Script     2.0.0                 Az.ResourceMover                    Core,Desk {Add-AzResourceMoverMoveResource, Get-AzResourceMoverMoveCollection, Get-AzResourceMoverMoveResource, Get-AzResourceMoverRequired…
Script     10.0.0                Az.Resources                        Core,Desk {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script     1.9.0                 Az.Security                         Core,Desk {Add-AzSecurityAdaptiveNetworkHardening, Add-AzSecuritySqlVulnerabilityAssessmentBaseline, Confirm-AzSecurityAutomation, Disable-…
Script     4.0.0                 Az.SecurityInsights                 Core,Desk {Get-AzSentinelAlertRule, Get-AzSentinelAlertRuleAction, Get-AzSentinelAlertRuleTemplate, Get-AzSentinelAutomationRule…}
Script     4.2.0                 Az.ServiceBus                       Core,Desk {New-AzServiceBusAuthorizationRuleSASToken, Test-AzServiceBusNameAvailability, Approve-AzServiceBusPrivateEndpointConnection, Com…
Script     5.2.0                 Az.ServiceFabric                    Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricManagedClusterClientCertificate, Add-AzServiceFabricManagedClusterNetwo…
Script     3.0.0                 Az.SignalR                          Core,Desk {Add-AzSignalRNetworkIpRule, Get-AzSignalR, Get-AzSignalRCustomCertificate, Get-AzSignalRCustomDomain…}
Script     7.0.0                 Az.Sql                              Core,Desk {Add-AzSqlDatabaseToFailoverGroup, Add-AzSqlElasticJobStep, Add-AzSqlElasticJobTarget, Add-AzSqlInstanceKeyVaultKey…}
Script     3.0.0                 Az.SqlVirtualMachine                Core,Desk {Assert-AzSqlVMEntraAuth, Get-AzAvailabilityGroupListener, Get-AzSqlVM, Get-AzSqlVMGroup…}
Script     3.0.0                 Az.StackHCI                         Core,Desk {Add-AzStackHCIVMAttestation, Disable-AzStackHCIAttestation, Disable-AzStackHCIRemoteSupport, Enable-AzStackHCIAttestation…}
Script     2.0.0                 Az.StackHCIVM                       Core,Desk {Add-AzStackHCIVMVirtualMachineDataDisk, Add-AzStackHCIVMVirtualMachineNetworkInterface, Get-AzStackHCIVMImage, Get-AzStackHCIVML…
Script     9.7.0                 Az.Storage                          Core,Desk {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountNetworkRule, Close-AzStorageF…
Script     2.0.0                 Az.StorageAction                    Core,Desk {Get-AzStorageActionTask, Get-AzStorageActionTaskAssignment, Get-AzStorageActionTasksReport, Invoke-AzStorageActionTaskPreviewAct…
Script     1.0.0                 Az.StorageDiscovery                 Core,Desk {Get-AzStorageDiscoveryWorkspace, New-AzStorageDiscoveryScopeObject, New-AzStorageDiscoveryWorkspace, Remove-AzStorageDiscoveryWo…
Script     2.1.0                 Az.StorageMover                     Core,Desk {Get-AzStorageMover, Get-AzStorageMoverAgent, Get-AzStorageMoverConnection, Get-AzStorageMoverEndpoint…}
Script     2.6.0                 Az.StorageSync                      Core,Desk {Get-AzStorageSyncCloudEndpoint, Get-AzStorageSyncGroup, Get-AzStorageSyncServer, Get-AzStorageSyncServerEndpoint…}
Script     3.0.0                 Az.StreamAnalytics                  Core,Desk {Get-AzStreamAnalyticsCluster, Get-AzStreamAnalyticsClusterStreamingJob, Get-AzStreamAnalyticsDefaultFunctionDefinition, Get-AzSt…
Script     2.1.0                 Az.Support                          Core,Desk {Get-AzSupportChatTranscript, Get-AzSupportChatTranscriptsNoSubscription, Get-AzSupportCommunication, Get-AzSupportCommunications…
Script     3.3.0                 Az.Synapse                          Core,Desk {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynapseSqlPoolVulnerabilityAssessmentRuleBas…
Script     1.4.0                 Az.TrafficManager                   Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Add-AzTrafficManagerEndpointConfig, Add-A…
Script     4.0.0                 Az.Websites                         Core,Desk {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Get-AzAppServiceEnvironment…}
Script     2.0.0                 Az.Workloads                        Core,Desk {Get-AzWorkloadsMonitor, Get-AzWorkloadsProviderInstance, Get-AzWorkloadsSapApplicationInstance, Get-AzWorkloadsSapCentralInstanc…

    Directory: C:\program files\powershell\7\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   7.0.0.0               CimCmdlets                          Core      {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession…}
Manifest   1.2.5                 Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expand-Archive}
Manifest   7.0.0.0               Microsoft.PowerShell.Diagnostics    Core      {Get-WinEvent, New-WinEvent, Get-Counter}
Manifest   7.0.0.0               Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop-Transcript}
Manifest   7.0.0.0               Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Content, Get-Clipboard, Set-Clipboard…}
Binary     1.2.0                 Microsoft.PowerShell.PSResourceGet  Core,Desk {Compress-PSResource, Find-PSResource, Get-InstalledPSResource, Get-PSResourceRepository…}
Manifest   7.0.0.0               Microsoft.PowerShell.Security       Core      {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential…}
Binary     2.2.0                 Microsoft.PowerShell.ThreadJob      Desk      Start-ThreadJob
Manifest   7.0.0.0               Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Manifest   7.0.0.0               Microsoft.WSMan.Management          Core      {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig…}
Script     1.4.8.1               PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script     7.0.0.0               PSDiagnostics                       Core      {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace…}
Script     2.4.5                 PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.0.1                 Microsoft.PowerShell.Operation.Val… Desk      {Get-OperationValidation, Invoke-OperationValidation}
Binary     1.0.0.1               PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     3.4.0                 Pester                              Desk      {Describe, Context, It, Should…}
Script     1.0.0.1               PowerShellGet                       Desk      {Install-Module, Find-Module, Save-Module, Update-Module…}
Script     2.0.0                 PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}

    Directory: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   1.0.0.0               AppBackgroundTask                   Core,Desk {Disable-AppBackgroundTaskDiagnosticLog, Enable-AppBackgroundTaskDiagnosticLog, Set-AppBackgroundTaskResourcePolicy, Unregister-A…
Manifest   2.0.1.0               Appx                                Core,Desk {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageAutoUpdateSettings, Get-AppxPackageManifest…}
Script     1.0.0.0               AssignedAccess                      Core,Desk {Clear-AssignedAccess, Get-AssignedAccess, Set-AssignedAccess}
Manifest   1.0.0.0               BitLocker                           Core,Desk {Unlock-BitLocker, Suspend-BitLocker, Resume-BitLocker, Remove-BitLockerKeyProtector…}
Script     2.0.0.0               BitsTransfer                        Core,Desk {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer…}
Manifest   1.0.0.0               BranchCache                         Core,Desk {Add-BCDataCacheExtension, Clear-BCCache, Disable-BC, Disable-BCDowngrading…}
Manifest   1.0                   ConfigDefenderPerformance           Core,Desk {New-MpPerformanceRecording, Get-MpPerformanceReport}
Manifest   1.0                   DefenderPerformance                 Core,Desk {New-MpPerformanceRecording, Get-MpPerformanceReport}
Manifest   1.0.3.0               DeliveryOptimization                Core,Desk {Get-DeliveryOptimizationLog, Get-DeliveryOptimizationLogAnalysis, Delete-DeliveryOptimizationCache, Disable-DeliveryOptimization…
Manifest   1.0.0.0               DirectAccessClientComponents        Core,Desk {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguration, Get-DAEntryPointTa…
Script     3.0                   Dism                                Core,Desk {Add-AppProvisionedSharedPackageContainer, Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability…}
Manifest   1.0.0.0               DnsClient                           Core,Desk {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache…}
Manifest   1.0.0.0               EventTracingManagement              Core,Desk {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession…}
Script     2023.2.7.…            Get-NetView                         Core,Desk Get-NetView
Manifest   2.1.0.0               International                       Core,Desk {Copy-UserInternationalSettingsToSystem, Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocatio…
Manifest   1.0.0.0               Kds                                 Core,Desk {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration…}
Manifest   1.0                   LanguagePackManagement              Core,Desk {Install-Language, Uninstall-Language, Get-InstalledLanguage, Set-SystemPreferredUILanguage…}
Script     1.0.0.0               LAPS                                Core,Desk {Find-LapsADExtendedRights, Get-LapsADPassword, Invoke-LapsPolicyProcessing, Reset-LapsPassword…}
Manifest   1.0.0.0               Microsoft.PowerShell.LocalAccounts  Core,Desk {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup…}
Manifest   1.0.0                 Microsoft.Windows.Bcd.Cmdlets       Core,Desk {Copy-BcdEntry, Disable-BcdElementBootDebug, Disable-BcdElementBootEms, Disable-BcdElementDebug…}
Manifest   1.0                   MMAgent                             Core,Desk {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent…}
Manifest   2.0.0.0               NetAdapter                          Core,Desk {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsulatedPacketTaskOffloa…
Manifest   2.0.0.0               NetConnection                       Core,Desk {Get-NetConnectionProfile, Set-NetConnectionProfile}
Manifest   1.0.0.0               NetEventPacketCapture               Core,Desk {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession…}
Manifest   2.0.0.0               NetLbfo                             Core,Desk {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember…}
Manifest   1.0.0.0               NetNat                              Core,Desk {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession…}
Manifest   2.0.0.0               NetQos                              Core,Desk {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}
Manifest   2.0.0.0               NetSecurity                         Core,Desk {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCryptoProposal…}
Manifest   1.0.0.0               NetSwitchTeam                       Core,Desk {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam…}
Manifest   1.0.0.0               NetTCPIP                            Core,Desk {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol…}
Manifest   1.0.0.0               NetworkConnectivityStatus           Core,Desk {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfiguration}
Manifest   1.0.0.0               NetworkSwitchManager                Core,Desk {Disable-NetworkSwitchEthernetPort, Enable-NetworkSwitchEthernetPort, Get-NetworkSwitchEthernetPort, Remove-NetworkSwitchEthernet…
Manifest   1.0.0.0               NetworkTransition                   Core,Desk {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNatTransitionConfigurati…
Binary     1.2.0.0               OsConfiguration                     Core,Desk {Get-OsConfigurationDocument, Get-OsConfigurationDocumentContent, Get-OsConfigurationDocumentResult, Get-OsConfigurationProperty…}
Manifest   1.0.0.0               PcsvDevice                          Core,Desk {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice…}
Manifest   1.0.0.0               PKI                                 Core,Desk {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnrollmentPolicy…}
Manifest   1.0.0.0               PnpDevice                           Core,Desk {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}
Manifest   1.1                   PrintManagement                     Core,Desk {Add-Printer, Add-PrinterDriver, Add-PrinterPort, Get-PrintConfiguration…}
Binary     1.0.12                ProcessMitigations                  Core,Desk {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}
Script     3.0                   Provisioning                        Core,Desk {Install-ProvisioningPackage, Export-ProvisioningPackage, Install-TrustedProvisioningCertificate, Export-Trace…}
Manifest   1.0.0.0               ScheduledTasks                      Core,Desk {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask…}
Manifest   2.0.0.0               SecureBoot                          Core,Desk {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Get-SecureBootSVN…}
Manifest   2.0.0.0               SmbShare                            Core,Desk {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess…}
Manifest   2.0.0.0               SmbWitness                          Core,Desk {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw…}
Manifest   1.0.0.1               StartLayout                         Core,Desk {Export-StartLayout, Import-StartLayout, Export-StartLayoutEdgeAssets, Get-StartApps}
Manifest   2.0.0.0               Storage                             Core,Desk {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain…}
Manifest   2.0.0.0               TLS                                 Core,Desk {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKey…}
Manifest   1.0.0.0               TroubleshootingPack                 Core,Desk {Get-TroubleshootingPack, Invoke-TroubleshootingPack}
Manifest   2.0.0.0               TrustedPlatformModule               Core,Desk {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm…}
Binary     2.1.639.0             UEV                                 Core,Desk
Manifest   2.0.0.0               VpnClient                           Core,Desk {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection…}
Manifest   1.0.0.0               Wdac                                Core,Desk {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn…}
Manifest   2.0.0.0               Whea                                Core,Desk {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}
Manifest   1.0.0.0               WindowsDeveloperLicense             Core,Desk {Get-WindowsDeveloperLicense, Unregister-WindowsDeveloperLicense, Show-WindowsDeveloperLicenseRegistration}
Script     1.0                   WindowsErrorReporting               Core,Desk {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}
Manifest   1.0.0.0               WindowsSearch                       Core,Desk {Get-WindowsSearchSetting, Set-WindowsSearchSetting}
Manifest   1.0.0.0               WindowsUpdate                       Core,Desk Get-WindowsUpdateLog

Error output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions